/* ==========================================================================
   Montana Location — Airbnb-styled redesign
   Adapted from getdesign.md/airbnb DESIGN.md
   Rausch (#ff385c) → EPSS brand green (#2CA660)
   White canvas, photo-first hero, modest type, sticky right rail.
   Scoped to .airbnb-* classes so the other 9 location pages are unaffected.
   ========================================================================== */

.airbnb-page {
  --rausch:           #2CA660;          /* EPSS brand green stands in for Airbnb Rausch */
  --rausch-active:    #1E7A52;
  --rausch-disabled:  rgba(44,166,96,0.18);
  --on-primary:       #ffffff;
  --canvas:           #ffffff;
  --surface-soft:     #f7f7f7;
  --surface-strong:   #f2f2f2;
  --ink:              #222222;
  --body:             #3f3f3f;
  --muted:            #6a6a6a;
  --muted-soft:       #929292;
  --hairline:         #dddddd;
  --hairline-soft:    #ebebeb;
  --border-strong:    #c1c1c1;
  --rad-sm:           8px;
  --rad-md:           14px;
  --rad-xl:           32px;
  --rad-full:         9999px;
  --pad-section:      64px;
  --pad-card:         24px;
  --shadow-card:
    rgba(0,0,0,0.02) 0 0 0 1px,
    rgba(0,0,0,0.04) 0 2px 6px 0,
    rgba(0,0,0,0.10) 0 4px 8px 0;
  /* Typography uses Roboto (already loaded by parent theme); Airbnb Cereal would be ideal but we don't ship it */
  font-family: 'Roboto', -apple-system, system-ui, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.airbnb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.airbnb-breadcrumb a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.airbnb-breadcrumb a:hover { color: var(--rausch); }
.airbnb-breadcrumb__current { color: var(--muted); }

/* Title block */
.airbnb-titlebar {
  padding: 4px 0 16px;
}
.airbnb-title {
  font-family: 'Roboto', sans-serif !important;
  color: var(--ink) !important;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  paint-order: normal !important;
}
.airbnb-title__theme {
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
}
.airbnb-titlebar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}
.airbnb-titlebar__meta .airbnb-dot { color: var(--muted); }
.airbnb-meta-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.airbnb-meta-link:hover { color: var(--rausch); }
.airbnb-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}
.airbnb-rating svg { color: var(--ink); }
.airbnb-rating a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.airbnb-rating a:hover { color: var(--rausch); }
.airbnb-reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.airbnb-reviews-head .airbnb-h2 { margin-bottom: 0; }
.airbnb-rating--h2 { font-size: 15px; font-weight: 600; }

/* Structured "What we carry" — h3 per category + bulleted brand list */
.airbnb-carry .airbnb-lede { margin-bottom: 20px; }
.airbnb-carry__cat {
  padding: 16px 0;
  border-top: 1px solid #e7e7e7;
}
.airbnb-carry__cat:first-of-type { border-top: 0; padding-top: 0; }
.airbnb-carry__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.airbnb-carry__brands {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}
.airbnb-carry__brands li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.airbnb-carry__brands li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1E7A52;
}
.airbnb-carry__note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 640px) {
  .airbnb-carry__brands { grid-template-columns: 1fr; }
  .airbnb-carry__title  { font-size: 16px; }
}

/* Photo grid hero — Airbnb listing-detail pattern */
.airbnb-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--rad-md);
  overflow: hidden;
  margin: 8px 0 32px;
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 540px;
}
.airbnb-photo {
  display: block;
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
  cursor: pointer;
}
.airbnb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.airbnb-photo:hover img { transform: scale(1.02); }
.airbnb-photo--main {
  grid-column: 1;
  grid-row: 1 / 3;
}
.airbnb-photo--small-1 { grid-column: 2; grid-row: 1; }
.airbnb-photo--small-2 { grid-column: 3; grid-row: 1; }
.airbnb-photo--small-3 { grid-column: 2; grid-row: 2; }
.airbnb-photo--small-4 { grid-column: 3; grid-row: 2; }
.airbnb-photo-grid__show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--rad-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease;
}
.airbnb-photo-grid__show-all:hover { background: var(--surface-soft); }

/* Two-column body */
.airbnb-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 64px;
  align-items: start;
  padding: 32px 0 80px;
}
.airbnb-body__main { min-width: 0; }

/* Sections */
.airbnb-section {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}
.airbnb-section:first-child { border-top: 0; padding-top: 0; }
.airbnb-section--otherlocs {
  text-align: center;
  padding: 56px 0;
}
.airbnb-h2 {
  font-family: 'Roboto', sans-serif !important;
  color: var(--ink) !important;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  paint-order: normal !important;
}
.airbnb-lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 16px;
}
.airbnb-prose {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}
.airbnb-prose p { margin: 0 0 16px; }
.airbnb-prose p:last-child { margin-bottom: 0; }
.airbnb-prose strong { color: var(--ink); font-weight: 600; }

/* Amenities (used for "What we carry" + "Where you'll be") */
.airbnb-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.airbnb-amenities li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.airbnb-amenities li:last-child { border-bottom: 0; }
.airbnb-amenities li svg {
  flex: 0 0 22px;
  color: var(--ink);
  margin-top: 2px;
}
.airbnb-amenities--landmarks svg { color: var(--rausch); }

/* FAQs — disclosure rows with hairline dividers */
.airbnb-faqs { display: flex; flex-direction: column; }
.airbnb-faq {
  border-bottom: 1px solid var(--hairline);
}
.airbnb-faq:first-child { border-top: 1px solid var(--hairline); }
.airbnb-faq summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.airbnb-faq summary::-webkit-details-marker { display: none; }
.airbnb-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 200ms ease;
  flex: 0 0 10px;
}
.airbnb-faq[open] summary::after { transform: rotate(-135deg); }
.airbnb-faq__answer {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}
.airbnb-faq__answer p:first-child { margin-top: 0; }

/* Sticky right rail "Visit this store" card */
.airbnb-rail {
  position: sticky;
  top: 96px;
}
.airbnb-visit-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-card);
  padding: var(--pad-card);
}
.airbnb-visit-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 16px;
}
.airbnb-visit-card__row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.airbnb-visit-card__row:last-of-type { border-bottom: 0; }
.airbnb-visit-card__row svg { flex: 0 0 20px; color: var(--ink); margin-top: 2px; }
.airbnb-visit-card__row-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.airbnb-visit-card__row-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.airbnb-visit-card__row-link:hover { color: var(--rausch); }
.airbnb-visit-card__phone { font-size: 18px; font-weight: 700; }
.airbnb-visit-card__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.airbnb-visit-card__fineprint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

/* Pill (Open / Closed status) */
.airbnb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--rad-full);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid var(--hairline-soft);
}
.airbnb-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rausch);
  box-shadow: 0 0 0 3px rgba(44,166,96,0.18);
  animation: airbnb-pulse 2s ease-in-out infinite;
}
.airbnb-pill.is-closed { color: #8a1d1d; }
.airbnb-pill.is-closed .airbnb-pill__dot {
  background: #c92a2a;
  box-shadow: 0 0 0 3px rgba(201,42,42,0.16);
  animation: none;
}
@keyframes airbnb-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(44,166,96,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(44,166,96,0); }
}

/* Buttons — Airbnb spec: 8px radius, 48px height, 500 weight */
.airbnb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--rad-sm);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 100ms ease;
  border: 1px solid transparent;
  line-height: 1;
}
.airbnb-btn:active { transform: translateY(1px); }
.airbnb-btn--primary {
  background: var(--rausch);
  color: var(--on-primary) !important;
  border-color: var(--rausch);
}
.airbnb-btn--primary:hover {
  background: var(--rausch-active);
  border-color: var(--rausch-active);
  color: var(--on-primary) !important;
}
.airbnb-btn--secondary {
  background: var(--canvas);
  color: var(--ink) !important;
  border-color: var(--ink);
}
.airbnb-btn--secondary:hover {
  background: var(--surface-soft);
}

/* Map section — full bleed below the fold */
.airbnb-mapsection {
  margin: 24px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--hairline);
}
.airbnb-mapsection__inner { padding-bottom: 16px; }
.airbnb-mapsection__iframe {
  width: 100%;
  height: 480px;
  border: 0;
  border-radius: var(--rad-md);
  display: block;
}

/* Mobile sticky bottom CTA bar — Airbnb listing-detail pattern */
.airbnb-mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  align-items: center;
  gap: 12px;
}
.airbnb-mobile-cta__left {
  flex: 1;
  min-width: 0;
}
.airbnb-mobile-cta__addr {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airbnb-btn--mobile-cta {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* ==========================================================================
   Responsive — Airbnb breakpoints (744 / 1128 / 1440)
   ========================================================================== */
@media (max-width: 1128px) {
  .airbnb-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .airbnb-rail {
    position: static;
    order: -1; /* rail appears before main content on tablet */
  }
  .airbnb-photo-grid { aspect-ratio: 16 / 9; }
}

@media (max-width: 744px) {
  .airbnb-page { padding: 0 16px; }
  .airbnb-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 4 / 3;
    margin: 8px 0 24px;
  }
  .airbnb-photo--main {
    grid-column: 1;
    grid-row: 1;
  }
  .airbnb-photo--small-1,
  .airbnb-photo--small-2,
  .airbnb-photo--small-3,
  .airbnb-photo--small-4 { display: none; }
  .airbnb-photo-grid__show-all { bottom: 12px; right: 12px; }

  .airbnb-title { font-size: 22px; }
  .airbnb-h2 { font-size: 20px; }

  .airbnb-amenities { grid-template-columns: 1fr; }

  /* On mobile: show the rail (so the Leaflet map renders) but HIDE the visit-card inside it.
     The sticky bottom CTA bar already covers address/phone/hours/Call/Directions, so the visit
     card would be redundant and crowd the page (caused prior "smushing" complaint). */
  .airbnb-rail .airbnb-visit-card { display: none; }
  .airbnb-mobile-cta { display: flex; }

  .airbnb-mapsection__iframe { height: 320px; }

  /* Keep room above the sticky bottom CTA */
  .airbnb-page { padding-bottom: 80px; }
}

/* ==========================================================================
   Photo viewer — full-screen single-photo modal (Airbnb listing-detail pattern).
   Topbar (close + title + counter) • Stage (single photo, prev/next arrows on edges)
   • Thumb strip at bottom • Keyboard + swipe nav.
   ========================================================================== */
.airbnb-viewer[hidden] { display: none !important; }
.airbnb-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: grid;
  grid-template-rows: 64px 1fr 100px;
  overflow: hidden;
  animation: airbnb-viewer-in 200ms ease-out;
}
@keyframes airbnb-viewer-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Topbar */
.airbnb-viewer__topbar {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}
.airbnb-viewer__close {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}
.airbnb-viewer__close:hover { background: rgba(255, 255, 255, 0.18); }
.airbnb-viewer__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.airbnb-viewer__title {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airbnb-viewer__counter {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Prev / Next arrows (overlay on stage) */
.airbnb-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  transition: background 120ms ease, transform 120ms ease;
}
.airbnb-viewer__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.airbnb-viewer__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.airbnb-viewer__nav--prev { left: 24px; }
.airbnb-viewer__nav--next { right: 24px; }

/* Stage — single slide visible at a time, others hidden */
.airbnb-viewer__stage {
  position: relative;
  background: #000;
  overflow: hidden;
  padding: 24px 96px; /* leave room for prev/next arrows */
}
.airbnb-viewer__slide {
  position: absolute;
  inset: 24px 96px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}
.airbnb-viewer__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.airbnb-viewer__slide img {
  max-width: 100%;
  max-height: calc(100% - 48px); /* leave room for caption */
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #111;
}
.airbnb-viewer__caption {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  max-width: 760px;
  margin: 0;
  padding: 0 16px;
}

/* Thumbnail strip */
.airbnb-viewer__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scroll-snap-type: x mandatory;
}
.airbnb-viewer__thumbs::-webkit-scrollbar { height: 6px; }
.airbnb-viewer__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.airbnb-viewer__thumb {
  flex: 0 0 96px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 120ms ease, transform 120ms ease, opacity 120ms ease;
  opacity: 0.6;
}
.airbnb-viewer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.airbnb-viewer__thumb:hover { opacity: 1; transform: translateY(-2px); }
.airbnb-viewer__thumb.is-active {
  border-color: #fff;
  opacity: 1;
}
.airbnb-viewer__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Mobile — tighter padding, smaller arrows, smaller thumbs */
@media (max-width: 744px) {
  .airbnb-viewer { grid-template-rows: 56px 1fr 84px; }
  .airbnb-viewer__topbar { padding: 0 12px; gap: 8px; grid-template-columns: 40px 1fr auto; }
  .airbnb-viewer__close { width: 36px; height: 36px; }
  .airbnb-viewer__title { font-size: 13px !important; }
  .airbnb-viewer__counter { font-size: 12px; padding: 5px 10px; }
  .airbnb-viewer__stage { padding: 12px 12px; }
  .airbnb-viewer__slide { inset: 12px 12px; }
  .airbnb-viewer__caption { font-size: 13px; }
  /* Hide on-edge arrows on mobile — swipe + thumb tap is the primary nav */
  .airbnb-viewer__nav { display: none; }
  .airbnb-viewer__thumbs { padding: 8px 12px; }
  .airbnb-viewer__thumb { flex: 0 0 72px; height: 54px; }
}

/* ==========================================================================
   Photo grid — single-photo (solo) variant for stores with <5 curated photos
   or fallback to featured image only.
   ========================================================================== */
.airbnb-photo-grid--solo {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  aspect-ratio: 16 / 9;
}
.airbnb-photo-grid--solo .airbnb-photo--main {
  grid-column: 1 !important;
  grid-row: 1 !important;
}
.airbnb-photo-grid--solo .airbnb-photo--small { display: none; }

/* ==========================================================================
   Admin in-page photo tools — visible only when current_user_can('edit_post')
   ========================================================================== */
.airbnb-photo__editbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  pointer-events: none;
  letter-spacing: 0.02em;
}
.airbnb-photo-grid__manage {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 120ms ease;
  z-index: 5;
}
.airbnb-photo-grid__manage:hover { background: rgba(0,0,0,0.92); color: #fff; }

/* Edit bar inside each viewer slide (admin-only) */
.airbnb-viewer__editbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  border-radius: 9999px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  z-index: 6;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 48px);
}
.airbnb-viewer__edit-btn {
  background: transparent;
  border: 0;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 120ms ease;
  white-space: nowrap;
}
.airbnb-viewer__edit-btn:hover  { background: rgba(0,0,0,0.06); color: #222; }
.airbnb-viewer__edit-btn:focus-visible { outline: 2px solid var(--rausch, #2CA660); outline-offset: 2px; }
.airbnb-viewer__edit-btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 744px) {
  .airbnb-viewer__editbar { bottom: 8px; padding: 4px; gap: 4px; }
  .airbnb-viewer__edit-btn { font-size: 12px; padding: 5px 10px; }
}

/* ==========================================================================
   Locations archive — Airbnb-styled card grid for /locations/
   ========================================================================== */
.airbnb-page--archive { padding-bottom: 64px; }
.airbnb-archive-intro { max-width: 760px; margin: 0 auto 32px; padding: 0 4px; }
.airbnb-locations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
@media (max-width: 1128px) { .airbnb-locations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .airbnb-locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .airbnb-locations-grid { grid-template-columns: 1fr; } }
.airbnb-loc-card { display: block; text-decoration: none !important; color: var(--ink, #222) !important; border-radius: 14px; transition: transform 200ms ease; }
.airbnb-loc-card:hover { transform: translateY(-2px); }
.airbnb-loc-card__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--surface-soft, #f7f7f7); }
.airbnb-loc-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.airbnb-loc-card:hover .airbnb-loc-card__photo img { transform: scale(1.04); }
.airbnb-loc-card__photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #2CA660 0%, #03735B 100%); }
.airbnb-pill--card { position: absolute; top: 12px; left: 12px; font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,0.94); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.airbnb-pill--card .airbnb-pill__dot { width: 6px; height: 6px; }
.airbnb-loc-card__body { padding: 12px 4px 4px; }
.airbnb-loc-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.airbnb-loc-card__name { font-size: 16px !important; font-weight: 600 !important; margin: 0 !important; line-height: 1.25 !important; color: var(--ink, #222) !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; paint-order: normal !important; }
.airbnb-loc-card__rating { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; color: var(--ink, #222); flex: 0 0 auto; }
.airbnb-loc-card__theme { font-size: 14px; color: var(--muted, #6a6a6a); font-style: italic; margin-top: 2px; }
.airbnb-loc-card__nbhd, .airbnb-loc-card__addr { font-size: 14px; color: var(--muted, #6a6a6a); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.airbnb-loc-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--ink, #222); }
.airbnb-loc-card__reviews { color: var(--muted, #6a6a6a); }

/* ==========================================================================
   Admin: in-place caption editor + drag-drop reorder + remove
   ========================================================================== */
.airbnb-viewer__caption[contenteditable="true"] { background: rgba(255,255,255,0.96); color: #111; padding: 12px 16px; border-radius: 8px; outline: 2px solid var(--rausch, #2CA660); text-align: left; min-height: 48px; cursor: text; }
.airbnb-viewer__caption-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.airbnb-viewer__caption-actions button { background: var(--rausch, #2CA660); color: #fff; border: 0; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.airbnb-viewer__caption-actions button.is-cancel { background: rgba(255,255,255,0.16); color: #fff; }

.airbnb-viewer__thumb { position: relative; }
.airbnb-viewer__thumb.is-dragging { opacity: 0.4; }
.airbnb-viewer__thumb.is-drop-target { outline: 2px solid var(--rausch, #2CA660); outline-offset: 2px; }
.airbnb-viewer__thumb-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 9999px; background: rgba(0,0,0,0.7); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; }
.airbnb-viewer[data-can-edit="1"] .airbnb-viewer__thumb-remove { display: flex; }
.airbnb-viewer__thumb-remove:hover { background: #c92a2a; }

/* Archive map section */
.airbnb-archive-map { padding: 32px 0 64px; }
.airbnb-archive-map__iframe { width: 100%; height: 480px; border: 0; border-radius: 14px; display: block; }
@media (max-width: 744px) { .airbnb-archive-map__iframe { height: 320px; } }

/* ==========================================================================
   Visit-this-store rail map — compact map embedded in right quadrant
   replacing the old full-bleed bottom map.
   ========================================================================== */
.airbnb-visit-card__map {
  display: block;
  position: relative;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  background: var(--surface-soft, #f7f7f7);
  border: 1px solid var(--hairline-soft, #ebebeb);
  cursor: pointer;
}
.airbnb-visit-card__map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none; /* let the parent <a> handle the click → opens GBP */
}
.airbnb-visit-card__map-overlay {
  position: absolute; inset: 0;
  background: transparent;
  transition: background 120ms ease;
}
.airbnb-visit-card__map:hover .airbnb-visit-card__map-overlay {
  background: rgba(44,166,96,0.06);
}

/* Mobile sticky CTA bar — Call + Directions side-by-side (replaces the parent-theme stacking bar) */
.airbnb-mobile-cta__btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.airbnb-mobile-cta .airbnb-btn--mobile-cta {
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
  gap: 4px;
}
@media (max-width: 380px) {
  /* very small screens — only show Call (Directions in the rail/desc instead) */
  .airbnb-mobile-cta__btns .airbnb-btn--secondary { display: none; }
}

/* When .airbnb-mobile-cta is active on a location page, also belt-and-suspenders kill any
   parent-theme sticky bar that might still slip through. */
.single-locations #epssMobileCta,
.single-locations .epss-mobile-cta { display: none !important; }

/* ==========================================================================
   Right-rail map — its own card, sits ABOVE the visit-this-store info card.
   Hidden on mobile (rail is display:none below 744px).
   ========================================================================== */
/* Rail map — Leaflet + CARTO Voyager.
   Half-height on full desktop so the visit-card (≈505px) is the dominant visual,
   not the map. Map is a quick "where" reference, not the focal point of the rail. */
.airbnb-rail-map {
  display: block;
  position: relative;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  height: 250px; /* ~half of visit-card height on full browser */
  background: var(--surface-soft, #f7f7f7);
  border: 1px solid var(--hairline, #ddd);
  box-shadow: var(--shadow-card, rgba(0,0,0,0.04) 0 2px 6px 0);
  cursor: pointer;
}
/* Iframe is the fallback base layer — absolutely positioned so it ALWAYS fills the box,
   regardless of any intrinsic iframe sizing the browser tries to give it. */
.airbnb-rail-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}
/* Leaflet layer — sits on top of the iframe. Hidden by default; fades in once initialized. */
.airbnb-rail-map__leaflet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms ease;
  background: #f7f7f7; /* until tiles load, soft surface — not transparent (would show iframe red pin) */
}
.airbnb-rail-map__leaflet.is-ready {
  opacity: 1;
}
.airbnb-rail-map__overlay {
  position: absolute; inset: 0;
  background: transparent;
  transition: background 120ms ease;
  z-index: 4;   /* sits ABOVE both iframe (z:1) AND Leaflet (z:2) so the parent <a> catches taps */
  pointer-events: auto;
}
.airbnb-rail-map__hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(255,255,255,0.95);
  color: var(--ink, #222);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: none;
}
.airbnb-rail-map:hover .airbnb-rail-map__overlay { background: rgba(44,166,96,0.06); }
/* Mobile: shorter rail map since the rail moves above content (order:-1 at ≤1128px) */
@media (max-width: 1128px) { .airbnb-rail-map { height: 320px; } }
@media (max-width: 540px)  { .airbnb-rail-map { height: 240px; } }
/* Leaflet's attribution control — make subtle so it doesn't fight the design */
.airbnb-rail-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255,255,255,0.85);
  padding: 1px 6px;
}

/* ==========================================================================
   Mobile-only map — appears in body flow when rail is hidden (≤744px).
   Hidden on desktop (rail-map handles it).
   ========================================================================== */
.airbnb-mobile-map { display: none; }
@media (max-width: 1128px) {
  /* tablet + mobile: rail moves above main, but on TABLET (745–1128) the rail still
     shows so we don't need the body-flow map there. Keep mobile-only. */
}
@media (max-width: 744px) {
  .airbnb-mobile-map {
    display: block;
    position: relative;
    margin: 16px 0;
    border-radius: 14px;
    overflow: hidden;
    height: 280px;
    background: var(--surface-soft, #f7f7f7);
    border: 1px solid var(--hairline, #ddd);
    box-shadow: var(--shadow-card, rgba(0,0,0,0.04) 0 2px 6px 0);
    cursor: pointer;
  }
}
.airbnb-mobile-map__iframe {
  width: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  margin-top: -46px;       /* clip MyMaps title bar */
  height: calc(100% + 46px);
}
.airbnb-mobile-map__overlay {
  position: absolute; inset: 0;
  background: transparent;
  transition: background 120ms ease;
}
.airbnb-mobile-map:hover .airbnb-mobile-map__overlay { background: rgba(44,166,96,0.06); }
.airbnb-mobile-map__hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--ink, #222);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* ==========================================================================
   Brand heading style restored — green fill + thick black stroke on the
   Airbnb-template H1/H2/H3. Plain text in <h*> tags is unchanged for SEO/AI;
   only the visual presentation is brand-stamped.
   ========================================================================== */
.airbnb-page .airbnb-title,
.airbnb-page .airbnb-h2,
.airbnb-page .airbnb-titlebar h1,
.airbnb-page .airbnb-section h2,
.airbnb-reviews h2,
.airbnb-page--archive .airbnb-title {
  color: #34C26E !important;          /* --epss-green-light */
  font-weight: 800 !important;
  letter-spacing: 0.005em !important;
  -webkit-text-stroke: 2px #000 !important;
  paint-order: stroke fill !important;
  text-shadow: none !important;
}
.airbnb-page .airbnb-title { -webkit-text-stroke: 3px #000 !important; }
@supports not (paint-order: stroke fill) {
  .airbnb-page .airbnb-title,
  .airbnb-page .airbnb-h2,
  .airbnb-page .airbnb-titlebar h1,
  .airbnb-page .airbnb-section h2,
  .airbnb-reviews h2,
  .airbnb-page--archive .airbnb-title {
    -webkit-text-stroke: 0 !important;
    text-shadow:
      -2px -2px 0 #000, 2px -2px 0 #000,
      -2px  2px 0 #000, 2px  2px 0 #000,
      -2px 0 0 #000,    2px 0 0 #000,
       0   -2px 0 #000, 0    2px 0 #000 !important;
  }
}

/* ==========================================================================
   Mobile-only map — appears in body flow when rail is hidden (≤744px)
   ========================================================================== */
.airbnb-mobile-map { display: none; }
@media (max-width: 744px) {
  .airbnb-mobile-map {
    display: block;
    position: relative;
    margin: 16px 0;
    border-radius: 14px;
    overflow: hidden;
    height: 280px;
    background: var(--surface-soft, #f7f7f7);
    border: 1px solid var(--hairline, #ddd);
    box-shadow: var(--shadow-card, rgba(0,0,0,0.04) 0 2px 6px 0);
    cursor: pointer;
  }
}
.airbnb-mobile-map__iframe {
  width: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  margin-top: -46px;
  height: calc(100% + 46px);
}
.airbnb-mobile-map__overlay {
  position: absolute; inset: 0;
  background: transparent;
  transition: background 120ms ease;
}
.airbnb-mobile-map:hover .airbnb-mobile-map__overlay { background: rgba(44,166,96,0.06); }
.airbnb-mobile-map__hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--ink, #222);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* ==========================================================================
   Brand heading style restored — green fill + thick black stroke on Airbnb
   template headings. Text content is unchanged for SEO/AI extraction; only
   visual presentation is brand-stamped.
   ========================================================================== */
.airbnb-page .airbnb-title,
.airbnb-page .airbnb-h2,
.airbnb-page .airbnb-titlebar h1,
.airbnb-page .airbnb-section h2,
.airbnb-reviews h2,
.airbnb-page--archive .airbnb-title {
  color: #34C26E !important;
  font-weight: 800 !important;
  letter-spacing: 0.005em !important;
  -webkit-text-stroke: 2px #000 !important;
  paint-order: stroke fill !important;
  text-shadow: none !important;
}
.airbnb-page .airbnb-title,
.airbnb-page--archive .airbnb-title { -webkit-text-stroke: 3px #000 !important; }
@supports not (paint-order: stroke fill) {
  .airbnb-page .airbnb-title,
  .airbnb-page .airbnb-h2,
  .airbnb-page .airbnb-titlebar h1,
  .airbnb-page .airbnb-section h2,
  .airbnb-reviews h2,
  .airbnb-page--archive .airbnb-title {
    -webkit-text-stroke: 0 !important;
    text-shadow:
      -2px -2px 0 #000, 2px -2px 0 #000,
      -2px  2px 0 #000, 2px  2px 0 #000,
      -2px 0 0 #000,    2px 0 0 #000,
       0   -2px 0 #000, 0    2px 0 #000 !important;
  }
}

/* ==========================================================================
   Leaflet pin — actual EPSS logo wordmark inside a brand-green badge
   ========================================================================== */
.airbnb-leaflet-marker { background: transparent !important; border: 0 !important; }
.epss-leaflet-pin {
  position: relative;
  width: 40px;
  height: 56px;
}
.epss-leaflet-pin__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Hookah image — actual EPSS favicon, layered ON TOP of the SVG pin background.
   Bigger size + explicit z-index so it sits visibly inside the white head circle. */
.epss-leaflet-pin__bg { z-index: 1; }
.epss-leaflet-pin__hookah {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* Reviews H2 — keep the rating star but smaller, no static review count
   (the widget below shows the live count from Google) */
.airbnb-h2__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85em;
  color: var(--ink, #222) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 700;
}
.airbnb-h2__rating svg { color: #f5b400; }
