/*
Theme Name: OttawaEats
Theme URI: https://ottawaeats.ca
Author: OttawaEats
Description: A bold food directory theme for Ottawa restaurants.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ottawaeats
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --fire: #E8380D;
  --gold: #F5A623;
  --dark: #0E0D0D;
  --charcoal: #1A1818;
  --mid: #252222;
  --card: #1E1C1C;
  --muted: #6B6464;
  --warm: #C8B8A8;
  --light: #F7F2ED;
  --white: #FDFBF9;
  --green: #4CAF50;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* =====================
   UTILITIES
===================== */
.hidden { display: none !important; }

/* =====================
   NAV DROPDOWN
===================== */
.oe-nav-group { position: relative; }
.oe-nav-group > .oe-nav-trigger {
  font-size: 13px; font-weight: 500; color: var(--warm);
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap; user-select: none;
}
.oe-nav-group > .oe-nav-trigger:hover,
.oe-nav-group.open > .oe-nav-trigger { background: var(--mid); color: var(--white); }
.oe-nav-group > .oe-nav-trigger svg { width:10px;height:10px;opacity:.6; }
.oe-nav-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--charcoal); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px; min-width: 180px; z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.oe-nav-group.open .oe-nav-dropdown { display: block; }
.oe-nav-dropdown a {
  display: block; padding: 8px 12px; font-size: 13px;
  color: var(--warm); border-radius: 5px; text-decoration: none;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.oe-nav-dropdown a:hover { background: var(--mid); color: var(--white); }
.oe-nav-sign-in {
  font-size: 12px; padding: 7px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15); color: var(--warm) !important;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.oe-nav-sign-in:hover { border-color: rgba(255,255,255,0.4); color: var(--white) !important; }

/* ---- Food Tour Planner nav button ---- */
.oe-nav-tour-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.oe-nav-tour-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--warm) !important; text-decoration: none;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  position: relative;
}
.oe-nav-tour-btn:hover { border-color: var(--fire); color: var(--white) !important; background: rgba(232,56,13,0.08); }
.oe-tour-label { letter-spacing: 0.2px; }
.oe-tour-badge {
  background: var(--fire); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 17px; height: 17px; border-radius: 9px;
  padding: 0 4px; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 1px;
}

/* Tooltip popup */
.oe-tour-tip {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 230px; background: var(--charcoal);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999; pointer-events: none; opacity: 0;
  transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s;
  text-align: center;
}
.oe-tour-tip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.oe-tour-tip strong { color: var(--white); font-size: 14px; display: block; margin-bottom: 6px; }
.oe-tour-tip p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.oe-tour-tip-heart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(232,56,13,0.15); border: 1px solid rgba(232,56,13,0.35);
  color: var(--fire); font-size: 13px; vertical-align: middle; margin: 0 1px;
}
.oe-tour-tip-link {
  display: inline-block; color: var(--fire) !important;
  font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 7px 14px; border: 1px solid rgba(232,56,13,0.4); border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.oe-tour-tip-link:hover { background: rgba(232,56,13,0.1); border-color: var(--fire); }
.oe-tour-tip-link--go {
  background: var(--fire); color: #fff !important; border-color: var(--fire);
}
.oe-tour-tip-link--go:hover { opacity: 0.88; background: var(--fire); }

@media (max-width: 768px) {
  .oe-nav-group { width: 100%; }
  .oe-nav-dropdown { position: static; border: none; background: var(--mid); box-shadow: none; border-radius: 6px; }
  .oe-nav-group > .oe-nav-trigger { width: 100%; justify-content: center; }
  .oe-tour-label { display: none; }
  .oe-tour-tip { right: auto; left: 50%; transform: translateX(-50%) translateY(-6px); }
  .oe-tour-tip.visible { transform: translateX(-50%) translateY(0); }
}

/* =====================
   LAYOUT
===================== */
.oe-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.oe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.oe-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.oe-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .oe-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .oe-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .oe-grid-4, .oe-grid-3, .oe-grid-2 { grid-template-columns: 1fr; }
  .oe-container { padding: 0 16px; }
}

/* =====================
   HEADER / NAV
===================== */
.oe-header {
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9999;  /* Must exceed Leaflet's highest pane (popup = 700) */
}

.oe-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.oe-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--white) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.oe-logo span { color: var(--fire); }

.oe-nav { display: flex; align-items: center; gap: 6px; }

.oe-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--warm);
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.oe-nav a:hover { background: var(--mid); color: var(--white); }

.oe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none !important;
  letter-spacing: 0.3px;
}

.oe-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.oe-btn-primary {
  background: var(--fire);
  color: #fff !important;
}

.oe-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--warm) !important;
}

.oe-btn-outline:hover { border-color: rgba(255,255,255,0.3); color: var(--white) !important; }

.oe-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--warm);
  font-size: 22px;
  padding: 6px;
}

@media (max-width: 768px) {
  .oe-nav { display: none; }
  .oe-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
    z-index: 999;
  }
  .oe-hamburger { display: block; }
}

/* =====================
   HERO
===================== */
.oe-hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
  background: var(--charcoal);
  text-align: center;
}

.oe-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,56,13,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.12) 0%, transparent 60%),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
}

.oe-hero-content { position: relative; z-index: 1; }

.oe-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 4px 40px rgba(232,56,13,0.3);
}

.oe-hero h1 span { color: var(--fire); }

.oe-hero p {
  font-size: 16px;
  color: var(--warm);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* SEARCH BAR */
.oe-search-bar {
  display: flex;
  max-width: 620px;
  margin: 0 auto 24px;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 5px;
  gap: 8px;
  position: relative;
}

.oe-search-bar input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 40px 0 0 40px;
}

.oe-search-bar input::placeholder { color: var(--muted); }

.oe-search-bar button {
  background: var(--fire);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.oe-hero-cats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.oe-cat-pill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--warm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.oe-cat-pill:hover, .oe-cat-pill.active {
  background: rgba(232,56,13,0.15);
  border-color: rgba(232,56,13,0.5);
  color: var(--white);
  text-decoration: none;
}

/* =====================
   DIRECTORY PAGE LAYOUT
===================== */
.oe-directory {
  padding: 40px 0 60px;
}

.oe-directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.oe-directory-layout > div {
  min-width: 0;
}

/* Ensure sidebar is always visible on desktop */
@media (min-width: 901px) {
  .oe-sidebar {
    display: block !important;
    position: sticky !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .oe-directory-layout { grid-template-columns: 1fr; }
  .oe-sidebar {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 340px;
    border-radius: 0;
    border-right: 1px solid var(--border);
    border-top: none; border-left: none; border-bottom: none;
    padding-bottom: 80px;
  }
  .oe-sidebar.open {
    transform: translateX(0);
  }
  /* Overlay behind open sidebar */
  .oe-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .oe-sidebar-overlay.open { display: block; }
  /* Prevent body scroll while filter drawer is open */
  body.oe-filter-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* =====================
   SIDEBAR / FILTERS
===================== */
.oe-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.oe-filter-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oe-filter-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
}

.oe-filter-reset {
  font-size: 11px;
  color: var(--fire);
  background: none;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.oe-filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.oe-filter-section:last-child { border-bottom: none; }

.oe-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.oe-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  cursor: pointer;
}

.oe-check-item:last-child { margin-bottom: 0; }

.oe-filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--warm);
  transition: color 0.15s;
}

.oe-filter-option:hover { color: var(--white); }

.oe-filter-option input[type="checkbox"],
.oe-filter-option input[type="radio"] {
  accent-color: var(--fire);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.oe-check-item input[type="checkbox"],
.oe-check-item input[type="radio"] {
  accent-color: var(--fire);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.oe-check-item label {
  font-size: 13px;
  color: var(--warm);
  cursor: pointer;
  transition: color 0.15s;
}

.oe-check-item:hover label { color: var(--white); }

.oe-price-btns {
  display: flex;
  gap: 6px;
}

.oe-price-btn {
  flex: 1;
  padding: 7px 4px;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.oe-price-btn.active, .oe-price-btn:hover {
  background: rgba(232,56,13,0.15);
  border-color: var(--fire);
  color: var(--white);
}

/* =====================
   LISTING RESULTS
===================== */
.oe-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.oe-results-count {
  font-size: 13px;
  color: var(--muted);
}

.oe-results-count strong { color: var(--white); }

.oe-sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 12px;
  outline: none;
}

/* Ensure browser-native dropdown options are readable on dark backgrounds */
select option,
.oe-sort-select option {
  background: #1E1C1C;
  color: #c8b8a8;
}

.oe-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--warm);
  font-size: 13px;
  padding: 7px 14px;
}

@media (max-width: 900px) { .oe-mobile-filter-btn { display: flex; } }

/* =====================
   LISTING CARD
===================== */
.oe-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  min-width: 0;
}

@media (max-width: 640px) { .oe-listing-grid { grid-template-columns: 1fr; } }

.oe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.oe-card:hover {
  border-color: rgba(232,56,13,0.35);
  transform: translateY(-3px);
  text-decoration: none;
}

.oe-card-img {
  height: 160px;
  background: var(--mid);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.oe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.oe-card:hover .oe-card-img img { transform: scale(1.04); }

.oe-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.oe-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.oe-badge-fire { background: var(--fire); color: #fff; }
.oe-badge-gold { background: var(--gold); color: #000; }
.oe-badge-reddit { background: #ff4500; color: #fff; }
.oe-badge-outline {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.oe-card-save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: var(--warm);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: color 0.2s, background 0.2s;
}

.oe-card-save:hover { background: var(--fire); color: #fff; }

.oe-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.oe-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fire);
}

.oe-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.oe-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.oe-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.oe-rating { font-weight: 700; font-size: 13px; color: var(--gold); }
.oe-review-count { font-size: 11px; color: var(--muted); }
.oe-price { font-size: 12px; font-weight: 600; color: var(--warm); }
.oe-dot { color: var(--muted); font-size: 10px; }

.oe-card-addr {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.oe-card-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }

.oe-card-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--mid);
  border: 1px solid var(--border);
  color: var(--warm);
}

.oe-open { color: var(--green); font-size: 11px; font-weight: 600; }
.oe-closed { color: #E57373; font-size: 11px; font-weight: 600; }

/* =====================
   SINGLE LISTING PAGE
===================== */
.oe-single-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
}

.oe-single-hero .oe-hero-bg { opacity: 0.7; }

.oe-single-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.oe-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,13,13,0.95) 0%, transparent 60%);
}

.oe-single-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 36px;
  width: 100%;
}

.oe-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 36px 0 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .oe-single-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  /* Sidebar (second child) floats to the top on mobile */
  .oe-single-layout > div:first-child  { order: 2; }
  .oe-single-layout > div:last-child   { order: 1; }
}

/* =====================
   REVIEWS
===================== */
.oe-review-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.oe-review-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.oe-form-group { margin-bottom: 16px; }

.oe-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.oe-form-group input,
.oe-form-group textarea,
.oe-form-group select {
  width: 100%;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.oe-form-group input:focus,
.oe-form-group textarea:focus,
.oe-form-group select:focus {
  border-color: rgba(232,56,13,0.5);
}

.oe-form-group textarea { resize: vertical; min-height: 100px; }

.oe-star-rating { display: flex; gap: 6px; margin-bottom: 4px; }
.oe-star-rating input { display: none; }
.oe-star-rating label {
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.oe-star-rating label:hover,
.oe-star-rating label:hover ~ label,
.oe-star-rating input:checked ~ label { color: var(--gold) !important; }
.oe-star-rating { flex-direction: row-reverse; }
.oe-star-rating label:hover,
.oe-star-rating label:hover ~ label { color: var(--gold); }

/* =====================
   SUBMIT LISTING FORM
===================== */
.oe-submit-page {
  padding: 60px 0;
  max-width: 720px;
  margin: 0 auto;
}

.oe-submit-page h1 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.oe-submit-page h1 span { color: var(--fire); }
.oe-submit-page > p { color: var(--warm); margin-bottom: 36px; }

.oe-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.oe-form-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--warm);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.oe-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .oe-form-row { grid-template-columns: 1fr; } }

.oe-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.oe-checkbox-grid .oe-check-item label { font-size: 13px; }

/* =====================
   MAP VIEW
===================== */
#oe-map {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.oe-map-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.oe-map-toggle button {
  flex: 1;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--warm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.oe-map-toggle button.active {
  background: var(--fire);
  color: #fff;
}

/* =====================
   SIDEBAR INFO CARD (single listing)
===================== */
.oe-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.oe-info-card-map {
  height: 180px;
  background: linear-gradient(135deg, #1a1f2e, #1e2535);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .oe-info-card-map { height: 120px; }
}

.oe-order-btn {
  display: block;
  margin: 16px;
  background: linear-gradient(135deg, var(--fire), #c42d00);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  text-align: center;
  padding: 13px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(232,56,13,0.3);
  transition: opacity 0.2s, transform 0.2s;
}

.oe-order-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.oe-info-rows { padding: 4px 16px 16px; }

.oe-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--warm);
}

.oe-info-row:last-child { border-bottom: none; }
.oe-info-row .icon { width: 20px; text-align: center; flex-shrink: 0; }
.oe-info-row strong { color: var(--white); display: block; }
.oe-info-row a { color: var(--gold); }

/* =====================
   SECTION HEADINGS
===================== */
.oe-section { padding: 56px 0; }
.oe-section-alt { background: var(--charcoal); }

.oe-section-head {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.oe-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 1.5px;
  line-height: 1;
}

.oe-section-head h2 span { color: var(--fire); }
.oe-section-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.oe-view-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--fire);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* =====================
   STATS BAR
===================== */
.oe-stats-bar {
  background: var(--fire);
  padding: 16px 0;
}

.oe-stats-inner {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.oe-stat { text-align: center; }

.oe-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
}

.oe-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* =====================
   NEIGHBOURHOOD CARDS
===================== */
.oe-hood-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
  display: block;
}

.oe-hood-card:hover {
  border-color: rgba(232,56,13,0.4);
  transform: translateY(-3px);
}

.oe-hood-icon { font-size: 28px; margin-bottom: 8px; }

.oe-hood-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}

.oe-hood-count { font-size: 11px; color: var(--muted); }

/* =====================
   PAGINATION
===================== */
.oe-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.oe-page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.oe-page-btn.active, .oe-page-btn:hover {
  background: var(--fire);
  border-color: var(--fire);
  color: #fff;
  text-decoration: none;
}

/* =====================
   FOOTER
===================== */
.oe-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.oe-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .oe-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .oe-footer-grid { grid-template-columns: 1fr; }
}

.oe-footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 12px;
}

.oe-footer-logo span { color: var(--fire); }
.oe-footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.oe-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.oe-footer-col ul { list-style: none; }
.oe-footer-col li { margin-bottom: 8px; }
.oe-footer-col a { font-size: 13px; color: var(--warm); text-decoration: none; transition: color 0.2s; }
.oe-footer-col a:hover { color: var(--white); }

.oe-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* =====================
   SOCIAL SHARE BUTTONS
===================== */
.oe-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warm);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}

.oe-share-btn:hover { color: var(--white); text-decoration: none; }


.oe-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.oe-notice-success { background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3); color: #81C784; }
.oe-notice-error { background: rgba(232,56,13,0.1); border: 1px solid rgba(232,56,13,0.3); color: #EF9A9A; }
.oe-notice-info { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); color: var(--gold); }

/* =====================
   UTILITIES
===================== */
.oe-text-fire { color: var(--fire); }
.oe-text-gold { color: var(--gold); }
.oe-text-muted { color: var(--muted); }
.oe-text-warm { color: var(--warm); }
.oe-mt-8 { margin-top: 8px; }
.oe-mt-16 { margin-top: 16px; }
.oe-mt-24 { margin-top: 24px; }
.oe-mb-16 { margin-bottom: 16px; }
.oe-mb-24 { margin-bottom: 24px; }
.oe-hidden { display: none !important; }
.oe-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ============================================================
   COMPREHENSIVE MOBILE OPTIMISATIONS
   All breakpoints consolidated here.
   Target: phones (≤480px) and small tablets (≤640px / ≤768px)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .oe-hero {
    padding: 40px 0 36px;   /* was 80px/70px — saves ~74px */
  }
  .oe-hero p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  /* Cuisine pill row: tighten and allow 2-col wrap */
  .oe-hero-cats {
    gap: 6px;
  }
  .oe-cat-pill {
    font-size: 11px;
    padding: 5px 11px;
  }
}

/* ── Stats bar ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .oe-stats-inner {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 across, then 2 below */
    text-align: center;
    row-gap: 14px;
  }
  .oe-stat-num { font-size: 24px; }
  .oe-stat-lbl { font-size: 10px; }
  .oe-stats-bar { padding: 14px 0; }
}

/* ── Section padding ──────────────────────────────────────── */
@media (max-width: 640px) {
  .oe-section          { padding: 32px 0; }
  .oe-section-head     { margin-bottom: 20px; }
  /* Keep "View all →" visible — shrink font if needed */
  .oe-section-head { flex-wrap: wrap; gap: 8px; align-items: center; }
  .oe-view-all { font-size: 11px; }
}

/* ── Listing card image height ─────────────────────────────── */
@media (max-width: 480px) {
  .oe-card-img { height: 130px; }
  .oe-card-body { padding: 12px; gap: 6px; }
  .oe-card-name { font-size: 14px; }
}

/* ── Single listing hero ──────────────────────────────────── */
@media (max-width: 640px) {
  .oe-single-hero {
    height: 220px;   /* was 340px */
  }
  .oe-single-hero-content {
    padding-bottom: 20px;
  }
  .oe-single-hero h1 {
    font-size: clamp(26px, 7vw, 42px) !important;
    letter-spacing: 1px !important;
  }
}

/* ── Taxonomy page hero (cuisine / neighbourhood / venue) ─── */
@media (max-width: 640px) {
  /* Stack the big emoji + heading vertically */
  .oe-taxonomy-hero-inner {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  .oe-taxonomy-hero-icon {
    font-size: 40px !important;
  }
}

/* ── Homepage venue-type & neighbourhood grids ────────────── */
@media (max-width: 480px) {
  /* Venue type cards: 2-col on phone */
  .oe-venue-type-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  /* Neighbourhood pills: 2-col */
  .oe-hood-pill-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ── Archive / directory page ─────────────────────────────── */
@media (max-width: 640px) {
  /* Sort row: stack count above controls */
  .oe-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  /* View-toggle + sort side by side */
  .oe-results-header > div:last-child {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .oe-sort-select {
    flex: 1;
  }
  /* Tighten the top bar padding */
  .oe-directory { padding: 24px 0 40px; }
}

/* ── Map page: collapse filter bar on mobile ──────────────── */
@media (max-width: 768px) {
  /* Stack all map controls vertically in a scrollable bar */
  #oe-map-topbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 14px !important;
  }
  #oe-map-topbar input,
  #oe-map-topbar select {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
  }
  #oe-map-topbar > div:first-child { /* count label */
    width: 100%;
    font-size: 12px !important;
  }
  #oe-map-reset,
  #oe-map-topbar > a:last-child {
    flex: 1 1 auto !important;
    text-align: center;
    font-size: 12px !important;
  }
  /* Shrink the map height a touch so filters + map both fit without scrolling */
  #oe-map-full { min-height: 0; }
}

/* ── Page-level hero sections (neighbourhoods, cuisines etc) ─ */
@media (max-width: 640px) {
  .oe-page-hero { padding: 32px 0 24px !important; }
  .oe-page-hero h1 { margin-bottom: 8px !important; }
  .oe-page-hero p  { font-size: 13px !important; }
}

/* ── Footer ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .oe-footer { padding: 32px 0 20px; }
  .oe-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Order/Visit button on single listing ─────────────────── */
@media (max-width: 640px) {
  .oe-order-btn {
    font-size: 15px !important;
    letter-spacing: 1px;
    padding: 11px;
  }
}

/* ── Info rows on single listing sidebar ─────────────────── */
@media (max-width: 640px) {
  .oe-info-rows { padding: 4px 12px 12px; }
  .oe-info-row  { font-size: 12px; padding: 8px 0; }
}

/* ── Gallery strip on single listing ─────────────────────── */
@media (max-width: 640px) {
  #oe-gallery-main { max-height: 220px !important; }
  #oe-gallery-img  { max-height: 220px !important; }
  #oe-gallery-strip img { width: 80px !important; height: 56px !important; }
}

/* ── Submit / form pages ──────────────────────────────────── */
@media (max-width: 640px) {
  .oe-submit-page { padding: 32px 0; }
  .oe-form-card   { padding: 20px 16px; }
  .oe-checkbox-grid { grid-template-columns: 1fr; }
}

/* ── Share buttons on single listing ─────────────────────── */
@media (max-width: 640px) {
  /* 2-col already, but give them more breathing room */
  .oe-share-btn { font-size: 11px; padding: 9px 6px; }
}

/* ============================================================
   BOOKMARK BUTTON & DRAWER
   ============================================================ */

/* Nav bookmark button — visible on all screen sizes */
.oe-bm-nav-btn:hover {
  border-color: var(--fire) !important;
  color: var(--white) !important;
}

/* On desktop the nav already has the button injected via JS;
   keep it tucked neatly next to the hamburger zone on mobile */
@media (max-width: 768px) {
  /* Show both hamburger + bookmark side by side */
  .oe-header-inner {
    gap: 10px;
  }
}

/* Bookmark drawer slide-in animation */
#oe-bm-drawer {
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(100%);
}
#oe-bm-drawer[style*="flex"] {
  transform: translateX(0) !important;
}

/* ============================================================
   COLLAPSIBLE FILTER SECTIONS
   ============================================================ */
.oe-section-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.oe-section-toggle:hover { color: var(--white); }
.oe-collapse-icon {
  font-size: 10px;
  opacity: 0.6;
  flex-shrink: 0;
}
.oe-section-body {
  padding-top: 10px;
}
/* Scrollable lists inside sections */
#oe-cuisine-list, #oe-hood-list {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
#oe-cuisine-list::-webkit-scrollbar,
#oe-hood-list::-webkit-scrollbar { width: 4px; }
#oe-cuisine-list::-webkit-scrollbar-thumb,
#oe-hood-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
