/* =========================================================
   Menü Tipp – style.css
   ========================================================= */

/* ---- Variables ---- */
:root {
  --primary:       #c0392b;
  --primary-dark:  #96281b;
  --secondary:     #2c3e50;
  --accent:        #e67e22;
  --bg:            #f7f7f7;
  --bg-card:       #ffffff;
  --text:          #333333;
  --text-light:    #666666;
  --border:        #e0e0e0;
  --shadow:        0 2px 8px rgba(0,0,0,.10);
  --shadow-hover:  0 6px 18px rgba(0,0,0,.18);
  --radius:        8px;
  --transition:    .25s ease;
  --header-h:      64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* Index page uses one full-page background image by device size. */
.home-page {
  background-image: url('../img/pc_bacgkround.png');
  background-position: 63% 62%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-page .hero {
  background: transparent;
}

.home-page .hero::after {
  display: none;
}

.home-page .counties-preview {
  background: transparent;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  background: var(--secondary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: var(--header-h);
}
.site-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .35rem;
  letter-spacing: -.5px;
}
.site-logo:hover { color: #fff; }
.site-logo .accent { color: var(--accent); }

.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85);
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO BANNER
   ========================================================= */
.hero {
  background:
    linear-gradient(120deg, rgba(35, 76, 130, .28) 0%, rgba(52, 139, 214, .18) 55%, rgba(255, 255, 255, .05) 100%),
    url('../img/banner.png') center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 3.4rem 1.25rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  display: block;
  background: #0f4b86;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .05em;
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
  padding: .34em .74em;
  margin: 0 auto .48rem;
  box-shadow: 0 8px 22px rgba(9, 39, 72, .35);
}

.hero-strip {
  display: block;
  background: #f8b22e;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.02rem, 2.05vw, 1.72rem);
  font-weight: 700;
  line-height: 1.15;
  width: max-content;
  max-width: 100%;
  padding: .2em .48em;
  margin: 0 auto 1.55rem;
  position: relative;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

.hero-subtitle {
  display: inline-block;
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  background: rgba(0,0,0,.58);
  padding: .35rem .7rem;
  border-radius: 6px;
  margin: 0 auto 2.2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.hero-buttons .btn {
  padding: .7rem 1.45rem;
  font-size: .97rem;
}

.btn-icon {
  width: 2em;
  height: 2em;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #d35400; color: #fff; border-color: #d35400; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.btn-outline { background: #6b7280; color: #fff; border-color: #6b7280; }
.btn-outline:hover { background: #4b5563; color: #fff; border-color: #4b5563; }

/* =========================================================
   FEATURES SECTION
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-card h3 { font-family: 'Raleway', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-light); }

/* =========================================================
   MAIN CONTENT WRAPPER
   ========================================================= */
.page-content { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.page-content:empty { display: none; }

/* Counties preview section with background – Full width */
.counties-preview {
  width: 100%;
  background: url('../img/restaurant_desk_background.jpg') center / cover no-repeat;
  padding: 3rem 0;
  margin: 0;
  min-height: 450px;
}

.counties-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.counties-preview .section-title {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

/* Counties page full-width background */
.counties-page-section {
  width: 100%;
  background: url('../img/restaurant_desk_background.jpg') center / cover no-repeat;
  margin: 0;
  padding: 2rem 0;
}

.counties-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.counties-list-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.counties-list-page .counties-page-section {
  flex: 1;
}

.counties-list-page .page-content {
  flex: 1;
}

.county-detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.county-detail-page .page-content {
  flex: 1;
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}
section + section { margin-top: 3rem; }

/* Legal pages */
.legal-document {
  max-width: 900px;
}

.legal-document section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.legal-document section + section {
  margin-top: 1.15rem;
}

.legal-document .section-title {
  font-size: 1.25rem;
  margin-bottom: .85rem;
}

.legal-document p + p {
  margin-top: .35rem;
}

.legal-document ul {
  margin: .5rem 0 .5rem 1.25rem;
  padding-left: .4rem;
}

.legal-document li + li {
  margin-top: .2rem;
}

/* =========================================================
   COUNTY GRID
   ========================================================= */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1rem;
}
.county-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.county-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); color: var(--primary); }
.county-icon { font-size: 1.8rem; }

.county-mini-map {
  width: 78px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.county-mini-map svg {
  width: 100%;
  height: 100%;
}
.county-mini-map .map-shape {
  fill: #f79b00;
  stroke: #9c300a;
  stroke-width: 2.2;
}

.county-mini-map .map-lines {
  fill: none;
  stroke: #9c300a;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.county-mini-map .map-highlight {
  fill: #c43d16;
  stroke: #fff;
  stroke-width: 1.6;
}

.county-mini-map .map-highlight-dot {
  fill: #ffde91;
}
.county-card:hover .county-mini-map .map-shape {
  fill: #f3a821;
}

.county-card:hover .county-mini-map .map-lines {
  stroke: #8b2a08;
}
.county-card:hover .county-mini-map .map-highlight {
  fill: #a73012;
}

/* =========================================================
   PAGE HEADER (megyek / megye page top banner)
   ========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--secondary), #3d5166);
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.page-header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .4rem;
}
.page-header p { opacity: .85; font-size: 1rem; }

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: .7rem 1.25rem;
  font-size: .875rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); font-weight: 600; }

.county-social-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 1.25rem 0;
}

.county-facebook-btn {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.county-facebook-btn:hover {
  background: #0f66d6;
  color: #fff;
  border-color: #0f66d6;
}

/* =========================================================
   RESTAURANT CARDS
   ========================================================= */
.restaurant-list { display: flex; flex-direction: column; gap: 2.5rem; }

.restaurant-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.restaurant-card.is-featured {
  border: 3px solid #d62828;
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.18), var(--shadow);
}

.restaurant-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, var(--secondary), #3d5166);
  color: #fff;
}
.restaurant-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.restaurant-id {
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: .55rem;
}
.partner-badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #d62828;
  color: #fff;
  border-radius: 999px;
  padding: .22rem .55rem;
  margin-bottom: .6rem;
}
.restaurant-info {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .75rem;
  font-size: .9rem;
  opacity: .9;
}
.restaurant-info a { color: var(--accent); font-weight: 700; }
.restaurant-info span { display: flex; align-items: center; gap: .3rem; }

.menu-images {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu-image-item img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.menu-placeholder {
  background: #f5f5f5;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: .95rem;
}

@media (min-width: 1024px) {
  .restaurant-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
  }
}

/* =========================================================
   LOADER / SPINNER
   ========================================================= */
.loader { text-align: center; padding: 3rem; color: var(--text-light); }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   MAP PAGE
   ========================================================= */
.map-page-body { overflow: hidden; }

.map-container {
  display: flex;
  height: calc(100dvh - var(--header-h));
}

.map-sidebar {
  width: 300px;
  min-width: 280px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,.08);
  z-index: 10;
  flex-shrink: 0;
}
.map-sidebar-inner {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.map-mobile-actions,
.map-mobile-toggle,
.map-mobile-locate,
.map-panel-backdrop,
.map-mobile-close { display: none; }

#map { flex: 1; }

/* Map controls */
.control-group { display: flex; flex-direction: column; gap: .4rem; }
.control-label {
  font-weight: 700;
  font-size: .78rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.search-row { display: flex; gap: .4rem; }
.search-row input { flex: 1; }

input[type="text"],
input[type="search"] {
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
  font-family: 'Lato', sans-serif;
}
input[type="text"]:focus,
input[type="search"]:focus { border-color: var(--primary); }

input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }

.radius-value { font-size: .85rem; color: var(--text-light); text-align: right; }

.search-btn {
  padding: .55rem .8rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }
.search-btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: all var(--transition);
}
.btn-control:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-control.btn-location { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-control.btn-location:hover { background: var(--primary); border-color: var(--primary); }
.btn-control.active { background: #27ae60; color: #fff; border-color: #27ae60; }
.btn-control:disabled { opacity: .6; cursor: not-allowed; }

.restaurant-count {
  font-size: .82rem;
  color: var(--text-light);
  background: #f5f5f5;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  text-align: center;
}

.nearby-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}
.nearby-item {
  padding: .6rem .75rem;
  background: #f9f9f9;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-size: .82rem;
}
.nearby-item:hover { background: #fef0ee; border-color: var(--primary); }
.nearby-item strong { display: block; color: var(--secondary); margin-bottom: .15rem; font-size: .85rem; }
.nearby-item span { color: var(--text-light); }

/* Leaflet popup custom */
.map-popup { font-family: 'Lato', sans-serif; min-width: 180px; }
.map-popup strong { font-size: 1rem; color: var(--secondary); display: block; margin-bottom: .2rem; }
.popup-megye { font-size: .75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.popup-cim { font-size: .85rem; margin-bottom: .4rem; }
.popup-link {
  display: inline-block;
  margin-top: .5rem;
  padding: .3rem .75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  transition: background var(--transition);
}
.popup-link:hover { background: var(--primary-dark); color: #fff; }

.map-popup-actions {
  margin-top: .55rem;
  display: grid;
  gap: .45rem;
}

.map-popup-btn {
  display: block;
  text-align: center;
  padding: .5rem .7rem;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.map-popup a.map-popup-btn,
.leaflet-container .map-popup a.map-popup-btn,
.leaflet-container .map-popup a.map-popup-btn:hover,
.leaflet-container .map-popup a.map-popup-btn:visited {
  color: #fff;
}

.map-popup-btn.menu-btn {
  background: #1f4d7a;
}

.map-popup-btn.menu-btn:hover {
  background: #163b5f;
  color: #fff;
}

.map-popup-btn.nav-btn {
  background: #1f8f5c;
}

.map-popup-btn.nav-btn:hover {
  background: #176c45;
  color: #fff;
}

/* Custom map markers */
.user-marker {
  width: 22px;
  height: 22px;
  background: #e53935;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  position: relative;
}

.user-marker::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1rem .75rem;
  font-size: .8rem;
  margin-top: 3.5rem;
}
.home-page .site-footer { margin-top: auto; }
.counties-list-page .site-footer { margin-top: 0; }
.county-detail-page .site-footer { margin-top: 0; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: #f39c12; }

.footer-developed {
  margin-top: .35rem;
  font-size: .66rem;
  letter-spacing: .03em;
  text-align: center;
}

.footer-developed a {
  color: #c9ced6;
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition), filter var(--transition);
}

.footer-developed a:hover {
  color: #f2f5fa;
  text-shadow: 0 0 8px rgba(255,255,255,.45), 0 0 16px rgba(194,203,214,.55);
  filter: brightness(1.12);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 769px) and (max-width: 1100px) {
  .home-page {
    background-position: center center;
  }
}

@media (max-width: 768px) {
  .home-page {
    background-image: url('../img/mobile_background.png');
    background-position: center 36%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .hero {
    padding: 2.35rem 1rem 1.45rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7.2vw, 2.5rem);
    margin-bottom: .4rem;
  }

  .hero-strip {
    font-size: clamp(.95rem, 4.05vw, 1.28rem);
    margin-bottom: 1.05rem;
  }

  .hero-buttons .btn {
    font-size: .9rem;
    padding: .66rem 1rem;
    min-height: 3.15rem;
  }

  /* Hamburger */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: .75rem;
    gap: .15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .7rem 1rem; }

  .county-facebook-btn {
    width: 100%;
    justify-content: center;
  }

  /* Map */
  .map-container {
    position: relative;
    height: calc(100dvh - var(--header-h));
    min-height: 420px;
  }
  #map {
    height: 100%;
    min-height: 0;
  }

  .map-mobile-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    align-items: center;
    position: absolute;
    left: 50%;
    bottom: calc(.9rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 820;
    width: calc(100% - 1.25rem);
  }

  .map-mobile-locate,
  .map-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--secondary);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
  }

  .map-mobile-locate {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border-radius: 999px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .map-mobile-locate.active { background: #27ae60; }

  .map-mobile-toggle {
    flex: 1;
    border-radius: 999px;
    padding: .7rem 1.1rem;
  }

  .map-panel-backdrop {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,.35);
    z-index: 890;
  }
  .map-panel-backdrop[hidden] { display: none; }

  .map-sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - var(--header-h) - .5rem);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.2);
    transform: translateY(102%);
    transition: transform .25s ease;
    z-index: 900;
  }
  .map-sidebar.open { transform: translateY(0); }

  .leaflet-control-container .leaflet-top,
  .leaflet-control-container .leaflet-bottom {
    z-index: 700;
  }

  .map-container.panel-open .leaflet-control-zoom {
    display: none;
  }

  .map-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: .9rem;
    overflow-y: auto;
  }

  .map-mobile-close {
    display: block;
    align-self: flex-end;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .8rem;
    font-weight: 700;
  }

  .nearby-list { max-height: 200px; }

  .county-card {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 1.95rem .85rem 1.15rem; }
  .hero-title { letter-spacing: .02em; }
  .hero-strip {
    font-size: 1rem;
    width: 100%;
    max-width: 640px;
    margin-bottom: .9rem;
  }
  .hero-buttons { margin-top: 0.4rem; }
  .hero-buttons .btn {
    font-size: .88rem;
    padding: .62rem .9rem;
    height: 3rem;
    min-height: 3rem;
  }
  .county-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .restaurant-header { padding: 1rem; }
  .menu-images { padding: 1rem; }
  .map-mobile-actions { gap: .45rem; }
}
