/* ================================================================
   BEYOND MADEIRA — Design System v4
   Montserrat · #0e5259 primary · #d75d5c accent
   ================================================================ */

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

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

/* ---- Fix: All rounded cards clip their content ---- */
[class*="card"], [class*="banner"], [class*="promo"] { overflow: hidden; }
[class*="card"] img, [class*="banner"] img, [class*="promo"] img { object-fit: cover; width: 100%; display: block; }
[class*="card-img"], [class*="featured-img"] { overflow: hidden; }

/* ---- Fix: Maps never overlap header/nav/tabs ---- */
.leaflet-container, .map-container, #rdMap, #sidebarMap, [id*="Map"] { position: relative; z-index: 0 !important; isolation: isolate; }
.leaflet-pane { z-index: 0 !important; }
.leaflet-tile-pane { z-index: 0 !important; }
.leaflet-overlay-pane { z-index: 1 !important; }
.leaflet-marker-pane { z-index: 2 !important; }
.leaflet-popup-pane { z-index: 3 !important; }
.leaflet-control-container { z-index: 4 !important; }
.leaflet-top, .leaflet-bottom, .leaflet-control-zoom { z-index: 4 !important; }

/* ---- Tokens ---- */
:root {
  /* Primary — #0e5259 is the dominant brand colour (312+ uses across site) */
  --primary:       #0e5259;
  --primary-dark:  #0a3d42;
  --primary-light: #1a7a6e;
  --primary-bg:    rgba(14,82,89,0.06);
  --accent:        #d75d5c;
  --accent-bg:     rgba(215,93,92,0.08);

  /* Neutrals */
  --white:         #ffffff;
  --bg:            #ffffff;
  --bg-alt:        #f8f8f6;
  --bg-hover:      #f0faf8;
  --sand:          #f8f8f6;
  --title:         #111111;
  --text:          #1a1a1a;
  --text-secondary:#555555;
  --text-muted:    #888888;
  --muted:         #6b7280;
  --border:        #e0e0e0;
  --border-light:  #f0f0f0;
  --overlay-light: rgba(0,0,0,0.35);
  --overlay-heavy: rgba(0,0,0,0.58);

  /* Status */
  --success:       #16a34a;
  --error:         #dc2626;
  --warning:       #f59e0b;
  --info:          #0284c7;

  /* Typography */
  --font: 'Montserrat', sans-serif;
  --text-sm:   0.875rem;
  --text-base: 0.9375rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --max-width:   1280px;
  --gutter:      24px;
  --section-y:   48px;
  --section-y-m: 32px;

  /* Radius */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-pill: 99px;

  /* Elevation */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow:       0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.13);
  --shadow-nav:   0 1px 12px rgba(0,0,0,0.06);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.3s;
  --transition: var(--dur) var(--ease);
}

/* ---- Base ---- */
/* Fluid root font-size: scales from 14px on narrow viewports to 16px on large.
   This makes every rem-based size adapt so 13" MacBooks stop feeling "zoomed". */
html { scroll-behavior: smooth; font-size: clamp(14px, 12.2px + 0.28vw, 16px); }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--title);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p { color: var(--text); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Label / uppercase utility — Geneva.com style */
.label,
.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ================================================================
   NAVIGATION — legacy styles removed.
   The live header is injected by /js/header.js + /css/header.css.
   Any .nav / #nav markup in HTML is hidden by header.css.
   Only Cart Drawer styles remain here (still used by /js/cart.js).
   ================================================================ */

/* ─── Legacy nav block removed 2026-04-19 ─── */

/* ---- Cart Drawer ---- */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1100; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: 420px; max-width: 100vw; height: 100vh; background: var(--white); z-index: 1101; display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: -8px 0 40px rgba(0,0,0,0.12); }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.cart-close:hover { color: var(--title); background: var(--sand); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); text-align: center; padding: 40px 24px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 16px; }
.cart-summary-row strong { font-weight: 800; font-size: 1.1rem; }
.cart-checkout { width: 100%; padding: 16px; font-size: 0.95rem; }
.cart-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; color: var(--muted); margin-top: 10px; }

/* Cart items */
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--sand); border-radius: 12px; }
.cart-item-img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-type { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.cart-item-name { font-size: 0.88rem; font-weight: 700; color: var(--title); margin: 2px 0 4px; line-height: 1.3; }
.cart-item-meta { display: flex; gap: 8px; font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; }
.cart-item-price { font-weight: 800; font-size: 0.95rem; color: var(--title); margin-top: 4px; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; flex-shrink: 0; }
.cart-item-remove:hover { color: var(--accent); }

/* Toast */
.cart-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--title); color: var(--white); padding: 12px 20px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: 0; transition: all 0.3s ease; z-index: 2000; white-space: nowrap; }
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Legacy nav user icon styles removed ---- */


/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
}
.btn-ghost svg { transition: transform var(--transition); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost:hover { opacity: 0.75; }

/* Arrow icon reusable */
.icon-arrow {
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: middle;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: clamp(560px, 78vh, 820px);
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.beyondmadeira.com/site/ponta-sao-lourenco-product-gallery-1600.webp') center/cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero .eyebrow {
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--white);
  line-height: 1.08;
  max-width: 650px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.08rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  line-height: 1.7;
}

/* ---- Search widget (floats over hero bottom) ---- */
.search-widget {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  max-width: 820px;
  margin: -56px auto 0;
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.search-tab {
  flex: 1;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.015em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  min-height: 44px;
}
.search-tab:hover { color: var(--title); }
.search-tab.active { color: var(--primary); }
.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.search-body {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 16px;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-field label {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field input,
.search-field select {
  border: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--title);
  padding: 4px 0;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.search-body .btn { flex-shrink: 0; padding: 14px 28px; }


/* ================================================================
   SECTIONS
   ================================================================ */
.section {
  padding: var(--section-y) 0;
}
.section-sand { background: var(--white); border-top: 1px solid #f1f3f5; }

.section-header {
  margin-bottom: 44px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 460px;
  line-height: 1.6;
}

/* Site-wide rule: section headers left-align always. Centered titles felt off
   for editorial layout; centring is reserved for short banners/CTAs only. */
.section-header-center { text-align: left; }
.section-header-center p { margin-left: 0; margin-right: 0; max-width: 540px; }


/* ================================================================
   FILTER CHIPS (horizontal scroll)
   ================================================================ */
.filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  margin-bottom: 32px;
}
.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}


/* ================================================================
   CAROUSEL — horizontal scroll + snap
   Used on mobile for tours, guides, reviews
   On desktop ≥ 769px we override to grid where needed
   ================================================================ */
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 20px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Desktop: tour carousel becomes 3-col grid */
@media (min-width: 769px) {
  .carousel--grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 4px 0;
  }
  .carousel--grid-3 > * { width: auto !important; }
}


/* ================================================================
   TOUR CARDS — Geneva.com style
   ================================================================ */
.tour-card { display:flex; flex-direction:column; background:white; border-radius:12px; overflow:hidden; border:none; box-shadow:0 2px 12px rgba(0,0,0,0.06); transition:transform 0.2s, box-shadow 0.2s; text-decoration:none; cursor:pointer; }
.tour-card:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(0,0,0,0.12); }

/* Photo */
.tour-card-img { position:relative; height:220px; overflow:hidden; background:#eef2f1; }
.tour-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s ease; }
.tour-card:hover .tour-card-img img { transform:scale(1.04); }
.tour-card-img::after { content:''; position:absolute; bottom:0; left:0; right:0; height:60px; background:linear-gradient(to top, rgba(0,0,0,0.15), transparent); pointer-events:none; }
.tour-card-img-placeholder { position:absolute; inset:0; background:linear-gradient(135deg,#0e5259 0%,#3a8b8f 60%,#7bbac0 100%); }
/* Universal fallback — any <img> that fails to load triggers main.js to add
   .img-failed to its parent. Paints a teal gradient instead of a broken icon.
   Works for tour cards, see-do, eat-drink, hotels, articles — any container. */
.img-failed { background:linear-gradient(135deg,#0e5259 0%,#3a8b8f 60%,#7bbac0 100%) !important; }
.img-failed::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.15), transparent); pointer-events:none; }
/* <picture> wrappers from bmResponsiveImg() are layout-invisible so the inner
   <img> inherits the parent's flex/grid slot — required for srcset to work
   without breaking card layouts that style .xxx-card-img directly. */
picture { display: contents; }
.tour-card-trust { margin-top:.4rem; font-size:.72rem; color:#64748b; font-weight:500; letter-spacing:.01em; }

/* Badge */
.tour-card-badges { position:absolute; top:12px; left:12px; z-index:2; display:flex; gap:6px; flex-wrap:wrap; }

/* ---- Favorite heart button — unified 40px, NO size transition ---- */
.wishlist-btn, .btn-favorite, .tour-card-fav, .sd-card-fav, .ed-card-fav, .article-card-fav, .hotel-card-fav {
  position:absolute !important; top:12px !important; right:12px !important; z-index:10;
  width:40px !important; height:40px !important; min-width:40px !important; min-height:40px !important;
  border-radius:50% !important; background:white !important; border:none !important;
  box-shadow:0 2px 8px rgba(0,0,0,0.12) !important;
  cursor:pointer !important; display:flex !important; align-items:center !important; justify-content:center !important;
  padding:0; line-height:1; flex-shrink:0 !important;
  transition:none !important; transform:none !important;
}
.wishlist-btn:hover, .btn-favorite:hover, .tour-card-fav:hover, .sd-card-fav:hover, .ed-card-fav:hover, .article-card-fav:hover, .hotel-card-fav:hover {
  transform:none !important; width:40px !important; height:40px !important;
}
.wishlist-btn:active, .btn-favorite:active, .tour-card-fav:active { transform:none !important; }
.wishlist-btn svg, .btn-favorite svg, .tour-card-fav svg, .sd-card-fav svg, .ed-card-fav svg, .article-card-fav svg, .hotel-card-fav svg {
  width:20px !important; height:20px !important; min-width:20px !important; min-height:20px !important;
  stroke:#999 !important; fill:none !important; stroke-width:2;
  display:block; pointer-events:none !important;
  transition:stroke 0.15s ease, fill 0.15s ease !important;
}
.wishlist-btn svg *, .btn-favorite svg *, .tour-card-fav svg * { pointer-events:none !important; }
.wishlist-btn.saved svg, .wishlist-btn.active svg, .wishlist-btn[data-saved="true"] svg,
.btn-favorite.liked svg, .tour-card-fav.liked svg, .sd-card-fav.liked svg, .ed-card-fav.liked svg, .article-card-fav.liked svg, .hotel-card-fav.liked svg,
.btn-fav.liked svg, .btn-fav.is-fav svg { stroke:#ef4444 !important; fill:#ef4444 !important; }

/* See & Do card image wrapper — position:relative so heart can overlay */
.bm-seedo-card-media { position:relative; overflow:hidden; width:100%; height:200px; flex:0 0 auto; }
.bm-seedo-card-media > picture { display:block; width:100%; height:100%; }
/* Hotel card image wrapper */
.bm-hotel-card-media { position:relative; overflow:hidden; }

/* Header heart — no background, match other nav icons */
.header-wishlist-btn, .header-heart-btn, a.nav-fav, #navFav {
  background:none !important; box-shadow:none !important; padding:0 !important;
  width:36px !important; height:36px !important; min-width:36px !important; min-height:36px !important;
  position:relative !important; border:none !important;
}

/* ---- Card badges — multi-badge, pill style ---- */
.card-badge {
  padding:4px 10px; border-radius:99px;
  font-size:10px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color:white; white-space:nowrap; line-height:1.3;
  display:inline-block;
}
.badge-popular    { background:#f95956; }
.badge-smallgroup { background:#7c3aed; }
.badge-family     { background:#0e9f6e; }
.badge-fun        { background:#f59e0b; }
.badge-new        { background:var(--primary); }
.badge-fullday    { background:#1d4ed8; }
.badge-bestseller { background:#f95956; }
.badge-fullday    { background:#374151; }
.badge-info       { background:#0891b2; }

/* Body */
.tour-card-body { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }

/* Rating + island row */
.tour-card-rating-row { display:flex; align-items:center; gap:6px; font-size:0.82rem; margin-bottom:6px; flex-wrap:wrap; }
.tour-card-rating-row .star-icon { color:#f5a623; font-size:0.85rem; }
.tour-card-rating-row .rating-score { font-weight:700; color:var(--title); }
.tour-card-rating-row .rating-count { color:var(--muted); font-weight:400; }
.tour-card-rating-row .rating-dot { color:var(--muted); }
.tour-card-rating-row .rating-island { color:var(--muted); font-weight:500; }

/* Title — max 2 lines */
.tour-card-title { font-size:1rem; font-weight:700; color:var(--title); line-height:1.35; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tour-card-desc { display:none !important; }

/* Tags row: duration + group */
.tour-card-tags { display:flex; align-items:center; gap:6px; font-size:0.8rem; color:var(--muted); margin-bottom:10px; }
.tour-card-tags .tag-dot { font-size:0.6rem; }

/* Free cancellation */
.tour-free-cancel { display:flex; align-items:center; gap:5px; font-size:0.8rem; color:var(--success); font-weight:600; margin-bottom:12px; }

/* Price row */
.tour-card-price { margin-top:auto; display:flex; align-items:baseline; gap:4px; }
.price-from { font-size:0.72rem; color:var(--muted); }
.tour-card-price strong { font-size:1.25rem; font-weight:800; color:var(--title); }
.price-per { font-size:0.72rem; color:var(--muted); }

/* Grid — 4 columns desktop (GetYourGuide style) */
.tour-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }

@media (max-width: 1280px) { .tour-grid { grid-template-columns:repeat(3, 1fr); } }
@media (max-width: 1024px) { .tour-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 640px) {
  .tour-grid { display:flex; overflow-x:auto; gap:16px; padding-bottom:16px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .tour-grid::-webkit-scrollbar { display:none; }
  .tour-grid .tour-card { min-width:280px; scroll-snap-align:start; flex-shrink:0; }
}
@media (max-width: 640px) {
  .tour-grid { grid-template-columns:1fr; gap:16px; }
  .tour-card-img { height:200px; }
  .tour-card-title { font-size:0.95rem; }
}


/* ================================================================
   ISLAND MOSAIC
   Desktop: 1 large left + 2×2 small right
   Mobile: horizontal carousel
   ================================================================ */
.island-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 540px;
}

.island-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.island-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.island-card--large { grid-row: 1 / -1; }

.island-card-bg {
  position: absolute;
  inset: 0;
  background: var(--sand) center/cover no-repeat;
  transition: transform 0.6s var(--ease);
}
.island-card:hover .island-card-bg { transform: scale(1.05); }

.island-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.04) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.island-card-overlay .label {
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.island-card-overlay h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.island-card--large .island-card-overlay h3 { font-size: 1.75rem; }

.island-card-count {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Simple grid for islands listing page */
.island-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.island-grid .island-card { height: 280px; }


/* ================================================================
   GUIDE / ARTICLE CARDS
   ================================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.guide-card-img {
  height: 195px;
  background: var(--sand) center/cover no-repeat;
  overflow: hidden;
}
.guide-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.guide-card:hover .guide-card-img img {
  transform: scale(1.04);
}

.guide-card-body { padding: 22px 24px 24px; }

.guide-card-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.guide-card-body h3 {
  font-size: 1.02rem;
  color: var(--title);
  line-height: 1.35;
  margin-bottom: 8px;
}

.guide-card-body p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Article grid (listing page) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.article-card-img {
  height: 200px;
  background: var(--sand) center/cover no-repeat;
}
.article-card-body { padding: 24px; }
.article-card-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-card-body h3 {
  font-size: 1.08rem;
  color: var(--title);
  margin-bottom: 8px;
  line-height: 1.35;
}
.article-card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}


/* ================================================================
   REVIEWS
   ================================================================ */
.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 20px;
}
.reviews-carousel::-webkit-scrollbar { display: none; }

.review-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  min-width: 340px;
  max-width: 400px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.review-stars {
  color: #f5a623;
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.88rem; color: var(--title); }
.review-origin { font-size: 0.78rem; color: var(--muted); }


/* ================================================================
   STATS ROW
   ================================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0;
  max-width: 1120px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 8px 12px;
}
.stat-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stat-stars {
  font-size: 1.35rem;
  color: #F5A623;
  letter-spacing: 3px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}
@media(max-width:640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 24px 0; }
  .stat { padding: 8px 6px; }
  .stat-number { font-size: 1rem; margin-bottom: 4px; }
  .stat-stars { font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 4px; }
  .stat-label { font-size: 0.78rem; }
}


/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.cta-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  max-width: 420px;
}


/* ================================================================
   FOOTER — Geneva.com style
   ================================================================ */
.footer { background:#0d5257; color:white; padding:64px 0 0; }
.footer-top { display:grid; grid-template-columns:280px 1fr; gap:64px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-logo { text-decoration:none; display:block; margin-bottom:12px; }
.footer-logo img { height: 48px; width: auto; }
.footer-tagline { font-size:0.85rem; color:rgba(255,255,255,0.65); line-height:1.6; margin-bottom:20px; }
.footer-socials { display:flex; gap:12px; }
.footer-socials a { color:rgba(255,255,255,0.6); transition:color 0.2s; }
.footer-socials a:hover { color:white; }
.footer-links-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.footer-col h5 { font-size:0.72rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.7); margin-bottom:14px; }
.footer-col a { display:block; font-size:0.85rem; color:rgba(255,255,255,0.75); margin-bottom:8px; text-decoration:none; transition:color 0.2s; }
.footer-col a:hover { color:white; }
.footer-trust { display:flex; align-items:center; justify-content:center; gap:40px; padding:24px 0; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-trust-item { display:flex; align-items:center; gap:8px; font-size:0.82rem; color:rgba(255,255,255,0.7); font-weight:500; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; padding:20px 0; font-size:0.78rem; color:rgba(255,255,255,0.7); }
.footer-bottom a { color:rgba(255,255,255,0.7); text-decoration:none; }
.footer-bottom a:hover { color:white; }
.footer-payments { display:flex; gap:6px; align-items:center; }

@media(max-width:1024px) {
  .footer-top { grid-template-columns:1fr; gap:40px; }
}
@media(max-width:640px) {
  .footer-links-grid { grid-template-columns:repeat(2,1fr); gap:24px; }
  .footer-trust { flex-wrap:wrap; gap:16px; justify-content:flex-start; }
  .footer-bottom { flex-direction:column; gap:12px; text-align:center; }
}


/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--title);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--title);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}


/* ================================================================
   PAGE HERO — consistent across all internal pages
   ================================================================ */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.page-hero-title {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  max-width: 500px;
}
@media(max-width:640px) {
  .page-hero { height: 40vh; min-height: 240px; max-height: 360px; padding-bottom: 28px; }
  .page-hero-title { font-size: 1.8rem; }
}

/* Photo hero (tour detail, island detail, article) */
.photo-hero {
  height: 50vh;
  min-height: 360px;
  background: var(--sand) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.photo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 55%);
}
.photo-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 40px;
}
.photo-hero .container { color: var(--white); }
.photo-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.photo-hero .eyebrow { color: rgba(255,255,255,0.7); }

/* Also support .page-hero-inner for simplified hero markup */
.page-hero-inner {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.page-hero-inner .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
}
.page-hero-inner p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 500px; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb { padding:20px 32px; font-size:0.82rem; color:var(--muted); max-width:1280px; margin:0 auto; }
.breadcrumb a { color:var(--primary); text-decoration:none; font-weight:500; }
.breadcrumb a:hover { text-decoration:underline; }

/* ================================================================
   SHARE BUTTONS
   ================================================================ */
.share-buttons { display:flex; gap:8px; flex-wrap:wrap; margin:24px 0; }
.share-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:99px; font-size:0.82rem; font-weight:600; text-decoration:none; border:1.5px solid var(--border); color:var(--text); background:white; cursor:pointer; transition:border-color 0.15s, color 0.15s; font-family:var(--font); }
.share-btn:hover { border-color:var(--primary); color:var(--primary); }

/* ================================================================
   PROMO CARDS — editorial style (photo + text side by side)
   ================================================================ */
.promo-card { display:flex; align-items:stretch; border-radius:16px; overflow:hidden; isolation:isolate; margin-bottom:20px; background:var(--bg-alt); text-decoration:none; transition:box-shadow 0.2s, transform 0.2s; border:1px solid var(--border); }
.promo-card:hover { box-shadow:0 8px 32px rgba(0,0,0,0.08); transform:translateY(-2px); }
.promo-card--reverse { flex-direction:row-reverse; background:#e8f5f2; border-color:#c3e8e0; }
.promo-card-img { width:320px; min-height:220px; flex-shrink:0; background-size:cover; background-position:center; }
.promo-card:hover .promo-card-img { opacity:0.95; }
.promo-card-body { flex:1; padding:32px 36px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.promo-card-label { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--primary); }
.promo-card-title { font-size:1.4rem; font-weight:800; color:#111; line-height:1.2; }
.promo-card-desc { font-size:14px; color:#6b7280; line-height:1.6; }
.promo-card-btn { display:inline-block; margin-top:8px; padding:10px 22px; background:var(--primary); color:#fff; border-radius:var(--radius); font-size:13px; font-weight:700; width:fit-content; transition:all 0.2s ease; }
.promo-card-btn:hover { transform:translateY(-1px); }
.promo-card:hover .promo-card-btn { background:var(--primary-dark); }
@media(max-width:768px) {
  .promo-card, .promo-card--reverse { flex-direction:column; }
  .promo-card-img { width:100%; min-height:180px; }
  .promo-card-body { padding:24px; }
}

/* Article-inline promo banners (used inside blog articles) */
.article-promo-banner { display:flex; align-items:stretch; border-radius:16px; overflow:hidden; margin:48px 0; background:#f4f5f7; border:1px solid var(--border); }
.article-promo-banner--alt { flex-direction:row-reverse; background:#e8f5f2; border-color:#c3e8e0; }
.article-promo-banner .promo-banner-photo { width:240px; flex-shrink:0; }
.article-promo-banner .promo-banner-photo img { width:100%; height:100%; object-fit:cover; }
.article-promo-banner .promo-banner-content { padding:28px 32px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
.article-promo-banner .promo-banner-label { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--primary); }
.article-promo-banner .promo-banner-content h3 { font-size:20px; font-weight:800; color:#111; line-height:1.2; }
.article-promo-banner .promo-banner-content p { font-size:14px; color:#6b7280; line-height:1.5; }
.article-promo-banner .promo-banner-btn { display:inline-block; margin-top:8px; padding:10px 20px; background:var(--primary); color:white; border-radius:var(--radius); font-size:13px; font-weight:700; text-decoration:none; width:fit-content; transition:all 0.2s ease; }
.article-promo-banner .promo-banner-btn:hover { background:var(--primary-dark); }
@media(max-width:640px) {
  .article-promo-banner, .article-promo-banner--alt { flex-direction:column; }
  .article-promo-banner .promo-banner-photo { width:100%; height:180px; }
}

/* ================================================================
   MEGA-MENU — 3-column Geneva.com style
   ================================================================ */
.mega-dropdown { position:fixed; top:64px; left:0; right:0; background:white; box-shadow:0 8px 40px rgba(0,0,0,0.12); border-top:3px solid var(--primary); z-index:9999; display:none; }
.mega-inner { max-width:1280px; margin:0 auto; padding:40px 60px; display:grid; grid-template-columns:240px 1fr 300px; min-height:380px; }
.mega-col-cats { border-right:1px solid #f0f0f0; padding-right:40px; }
.mega-explore { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#9ca3af; text-decoration:none; display:flex; align-items:center; gap:4px; margin-bottom:24px; }
.mega-explore:hover { color:var(--primary); }
.mega-cat { display:block; font-size:20px; font-weight:800; color:#111; text-decoration:none; padding:10px 0; line-height:1.2; cursor:pointer; transition:color 0.15s; border:none; background:none; font-family:var(--font); width:100%; text-align:left; }
.mega-cat:hover, .mega-cat.active { color:var(--primary); text-decoration:underline; text-underline-offset:5px; }
.mega-col-links { padding:0 40px; border-right:1px solid #f0f0f0; }
.mega-col-links a { display:block; font-size:15px; font-weight:500; color:#374151; text-decoration:none; padding:10px 0; border-bottom:1px solid #f9f9f9; transition:color 0.15s; }
.mega-col-links a:hover { color:var(--primary); }
.mega-col-featured { padding-left:40px; }
.mega-featured-img { width:100%; height:180px; object-fit:cover; border-radius:12px; margin-bottom:12px; }
.mega-featured-desc { font-size:14px; color:#6b7280; line-height:1.6; }
@media(max-width:768px) {
  .mega-dropdown { display:none !important; }
}

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter-section { background:var(--sand); padding:64px 32px; text-align:center; }
.newsletter-section h2 { font-size:1.5rem; font-weight:800; color:var(--title); margin-bottom:8px; }
.newsletter-section p { font-size:0.92rem; color:var(--muted); margin-bottom:24px; }
.newsletter-form { display:flex; gap:8px; max-width:440px; margin:0 auto; }
.newsletter-form input { flex:1; padding:14px 18px; border:1.5px solid var(--border); border-radius:var(--radius); font-family:var(--font); font-size:0.88rem; outline:none; }
.newsletter-form input:focus { border-color:var(--primary); }
.newsletter-form button { padding:14px 28px; background:var(--primary); color:white; border:none; border-radius:var(--radius); font-family:var(--font); font-size:0.88rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:all 0.2s ease; }
.newsletter-form button:hover { background:var(--primary-dark); transform:translateY(-1px); }
@media(max-width:480px) {
  .newsletter-form { flex-direction:column; }
  .newsletter-form input, .newsletter-form button { width:100%; }
}

/* ================================================================
   "YOU MAY ALSO LIKE" SECTION
   ================================================================ */
.also-like { padding:64px 0; }
.also-like h2 { font-size:1.3rem; font-weight:800; color:var(--title); margin-bottom:24px; }
.also-like-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
@media(max-width:768px) { .also-like-grid { grid-template-columns:1fr; } }

/* ================================================================
   ARTICLE CARD — Geneva.com style (used in travel guide + directories)
   ================================================================ */
.article-card { display:flex; flex-direction:column; background:white; border-radius:12px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.06); transition:transform 0.2s, box-shadow 0.2s; text-decoration:none; }
.article-card:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(0,0,0,0.12); }
.article-card-img { height:220px; overflow:hidden; position:relative; }
.article-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.article-card:hover .article-card-img img { transform:scale(1.04); }
.article-card-fav.liked { color:var(--primary); }
.article-card-body { padding:16px 18px 20px; display:flex; flex-direction:column; flex:1; }
.article-card-cat { font-size:0.68rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--primary); margin-bottom:6px; }
.article-card-body h3 { font-size:1rem; font-weight:700; color:var(--title); line-height:1.35; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.article-card-body p { font-size:0.85rem; color:var(--muted); line-height:1.5; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.article-card-more { font-size:0.82rem; font-weight:700; color:var(--primary); margin-top:auto; }

/* Tour detail layout */
.tour-info {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 56px;
  padding-top: 56px;
}
.tour-sidebar {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.tour-detail-meta {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

/* Article detail body */
/* ================================================================
   DETAIL PAGES — sticky tabs with scroll spy
   ================================================================ */
.detail-tabs-bar { position:sticky; top:0; background:white; z-index:200; border-bottom:1px solid var(--border); }
.detail-tabs-inner { max-width:1200px; margin:0 auto; padding:0 40px; display:flex; gap:0; }
.detail-tab { padding:18px 24px; font-size:14px; font-weight:600; color:#6b7280; text-decoration:none; border-bottom:3px solid transparent; margin-bottom:-1px; transition:color 0.2s, border-color 0.2s; white-space:nowrap; cursor:pointer; }
.detail-tab:hover { color:#111; }
.detail-tab.active { color:#111; border-bottom-color:var(--primary); }
.detail-section { scroll-margin-top:140px; }
@media(max-width:768px) {
  .detail-tabs-inner { padding:0 16px; overflow-x:auto; scrollbar-width:none; }
  .detail-tabs-inner::-webkit-scrollbar { display:none; }
  .detail-tab { padding:14px 16px; font-size:13px; }
}

/* Detail hero — starts behind navbar (transparent nav) */
.detail-hero { margin-top:0; }
@media(max-width:768px) { .detail-hero { margin-top:0; } }

/* ================================================================
   ARTICLE BODY — Geneva.com editorial style
   ================================================================ */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 {
  margin: 2.5em 0 0.8em;
  font-size: 1.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}
.article-body h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.2rem;
}
.article-body img {
  border-radius: 12px;
  margin: 2em 0;
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.article-body .img-caption {
  font-size: 13px;
  font-style: italic;
  color: #9ca3af;
  text-align: center;
  margin-top: -1.5em;
  margin-bottom: 2em;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.2em;
}
.article-body li {
  margin-bottom: 0.6em;
}
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 2em 0;
  color: var(--muted);
  font-style: italic;
}
/* Article intro — larger first paragraph */
.article-body .article-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #111;
  max-width: 680px;
  margin: 0 auto 2em;
}
/* Article share section */
.article-share { max-width: 760px; margin: 48px auto; padding: 0 20px; }
.article-share h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.article-share-btns { display: flex; gap: 16px; }
.article-share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #374151; font-size: 11px; font-weight: 600; }
.article-share-icon { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.article-share-btn:hover .article-share-icon { border-color: #111; }
/* Article "you may also like" */
.article-related { max-width: 1200px; margin: 0 auto; padding: 48px 20px 60px; }
.article-related h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:768px) { .article-related-grid { grid-template-columns: 1fr; } }

/* Article CTA buttons */
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font);
  transition: all 0.2s ease;
}
.article-cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Article promo banners */
.article-promo-banner,
.article-inline-cta,
.article-cta-box {
  border: 1.5px solid #c3e8e0;
  border-radius: 16px;
  background: #f0faf8;
  padding: 28px 32px;
  text-align: center;
  margin: 40px 0;
}
.article-promo-banner p,
.article-inline-cta p,
.article-cta-box p {
  margin-bottom: 16px;
}

/* Article photo breaks */
.article-photo-break {
  margin: 40px -40px;
  position: relative;
}
.article-photo-break img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.article-photo-break figcaption {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}
@media(max-width:768px) {
  .article-photo-break { margin: 32px -16px; }
  .article-photo-break img { height: 260px; border-radius: 0; }
}

/* Article gallery */
.article-gallery { margin: 48px 0; }
.article-gallery-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}
.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
}
.article-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}
.article-gallery-grid img:hover { transform: scale(1.03); }
.article-gallery-grid img:first-child {
  grid-column: span 2;
  height: 300px;
}
@media(max-width:640px) {
  .article-gallery-grid { grid-template-columns: 1fr 1fr; }
  .article-gallery-grid img:first-child { grid-column: span 2; height: 200px; }
  .article-gallery-grid img { height: 150px; }
}

/* Special deal box (restaurants) */
.special-deal-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fef9e7;
  border: 1.5px solid #f5d76e;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  color: #92400e;
}

/* Booking page */
.booking-wrap { max-width: 560px; margin: 0 auto; }
.booking-success {
  text-align: center;
  padding: 48px;
  background: var(--sand);
  border-radius: var(--radius);
}
.booking-success h2 {
  color: var(--primary);
  margin-bottom: 12px;
}


/* ================================================================
   RENT-A-CAR PAGE — old .car-card styles removed.
   All rent-a-car card styles are now inline in rent-a-car.html
   to prevent CSS conflicts.
   ================================================================ */


/* ================================================================
   AUS-GRID — australia.com inspired grid system
   4 cols desktop, 2 tablet, horizontal scroll mobile
   ================================================================ */
.aus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.aus-grid-item--wide {
  grid-column: span 2;
}

.aus-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.aus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.aus-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.aus-card-img img,
.aus-card-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.aus-card:hover .aus-card-img img,
.aus-card:hover .aus-card-img-bg {
  transform: scale(1.03);
}

.aus-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.aus-card-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  color: var(--title);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aus-card-body {
  padding: 16px 20px 20px;
}

.aus-card-location {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.aus-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 6px;
  line-height: 1.3;
}

.aus-card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.aus-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aus-card-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--title);
}

.aus-card-price span {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
}

.aus-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.aus-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* Filter chips — left-aligned, wraps on desktop, horizontal scroll on mobile */
.filter-chips-center {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Island card center text variant */
.aus-card-center .aus-card-body {
  text-align: center;
}

.aus-card-center .aus-card-body h3 {
  font-size: 1.05rem;
}

.aus-card-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.aus-card-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* Category pills with colors */
.pill-planning { background: rgba(14,82,89,0.1); color: var(--primary); }
.pill-madeira { background: rgba(45,106,79,0.1); color: #2d6a4f; }
.pill-nature { background: rgba(30,96,145,0.1); color: #1e6091; }
.pill-food { background: rgba(146,64,14,0.1); color: #92400e; }
.pill-islands { background: rgba(107,33,168,0.1); color: #6b21a8; }
.pill-budget { background: rgba(14,82,89,0.1); color: var(--primary); }

@media (max-width: 1024px) {
  .aus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aus-grid-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .aus-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-bottom: 12px;
  }
  .aus-grid::-webkit-scrollbar { display: none; }
  .aus-grid > * {
    flex-shrink: 0;
    width: 85vw;
    max-width: 340px;
    scroll-snap-align: start;
  }
  .aus-grid-item--wide {
    width: 85vw;
    max-width: 340px;
  }
  .aus-card-img { height: 200px; }
  .filter-chips-center {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .filter-chips-center::-webkit-scrollbar { display: none; }
  .filter-chips-center .chip {
    scroll-snap-align: start;
  }
}


/* ---- Tour Booking Modal ---- */
.tbm-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:2000; }
.tbm-overlay.open { display:block; }
.tbm-box { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--white); border-radius:20px; width:520px; max-width:95vw; max-height:90vh; overflow-y:auto; z-index:2001; padding:28px; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.tbm-box.open { display:block; animation:tbmIn 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes tbmIn { from{opacity:0;transform:translate(-50%,-54%)}to{opacity:1;transform:translate(-50%,-50%)} }
.tbm-close { position:absolute; top:16px; right:16px; background:var(--sand); border:none; border-radius:50%; width:32px; height:32px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--muted); z-index:1; }
.tbm-close:hover { color:var(--title); }

.tbm-tour-header { display:flex; gap:12px; align-items:center; padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.tbm-thumb { width:60px; height:45px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.tbm-location { font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--primary); }
.tbm-name { font-size:0.92rem; font-weight:700; color:var(--title); line-height:1.3; }
.tbm-rating { font-size:0.78rem; color:var(--muted); display:flex; align-items:center; gap:4px; }

.tbm-stepper { display:flex; align-items:center; margin-bottom:20px; }
.tbm-step { display:flex; flex-direction:column; align-items:center; gap:3px; }
.tbm-dot { width:26px; height:26px; border-radius:50%; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:0.72rem; font-weight:700; color:var(--muted); }
.tbm-step.active .tbm-dot { background:var(--primary); border-color:var(--primary); color:var(--white); }
.tbm-step.done .tbm-dot { background:var(--primary); border-color:var(--primary); color:var(--white); }
.tbm-step span { font-size:0.62rem; font-weight:600; color:var(--muted); white-space:nowrap; }
.tbm-step.active span, .tbm-step.done span { color:var(--primary); }
.tbm-line { flex:1; height:2px; background:var(--border); margin:0 4px 14px; }

.tbm-body h4 { font-size:1rem; font-weight:700; margin-bottom:16px; }
.tbm-field { margin-bottom:14px; }
.tbm-field label { display:block; font-size:0.78rem; font-weight:700; color:var(--title); margin-bottom:6px; }
.tbm-field input, .tbm-field textarea, .tbm-select { width:100%; padding:10px 14px; border:1.5px solid var(--border); border-radius:10px; font-family:var(--font); font-size:0.9rem; }
.tbm-field input:focus, .tbm-field textarea:focus { outline:none; border-color:var(--primary); }

.tbm-slots { display:flex; gap:8px; flex-wrap:wrap; }
.tbm-slot { padding:8px 18px; border:1.5px solid var(--border); border-radius:8px; background:var(--white); font-family:var(--font); font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.15s; }
.tbm-slot.active { border-color:var(--primary); background:rgba(14,82,89,0.06); color:var(--primary); }

.tbm-counter { display:flex; align-items:center; gap:16px; }
.tbm-counter button { width:44px; height:44px; min-width:44px; min-height:44px; border:1.5px solid var(--border); border-radius:50%; background:var(--white); font-size:1.25rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.tbm-counter button:hover { border-color:var(--primary); color:var(--primary); }
.tbm-counter span { font-weight:700; min-width:20px; text-align:center; }

.tbm-breakdown { background:var(--sand); border-radius:10px; padding:14px 16px; margin:16px 0; }
.tbm-brow { display:flex; justify-content:space-between; font-size:0.85rem; padding:3px 0; color:var(--text); }
.tbm-bdiv { height:1px; background:var(--border); margin:8px 0; }
.tbm-btotal { font-weight:700; }
.tbm-btotal strong { font-size:1.15rem; font-weight:800; }

.tbm-cancel-badge { display:flex; align-items:center; gap:6px; font-size:0.78rem; color:var(--success); font-weight:500; margin-bottom:16px; }
.tbm-actions { display:flex; gap:10px; margin-top:20px; }
.tbm-actions .btn { flex:1; justify-content:center; }

.tbm-warn { background:#fef3c7; color:#92400e; font-size:0.82rem; font-weight:600; padding:8px 12px; border-radius:8px; margin:8px 0; }
.tbm-info { display:flex; align-items:flex-start; gap:8px; background:rgba(14,82,89,0.06); border-radius:8px; padding:10px 12px; font-size:0.82rem; color:var(--primary); margin:10px 0; }
.tbm-meeting-card { background:var(--sand); border-radius:12px; padding:16px; }
.tbm-pin { display:flex; align-items:flex-start; gap:8px; font-size:0.9rem; margin-bottom:8px; }
.tbm-directions { font-size:0.82rem; font-weight:700; color:var(--primary); }
.tbm-pills { display:flex; gap:8px; flex-wrap:wrap; }
.tbm-pill { padding:8px 16px; border:1.5px solid var(--border); border-radius:8px; background:var(--white); font-family:var(--font); font-size:0.82rem; font-weight:600; cursor:pointer; }
.tbm-pill.active { border-color:var(--primary); background:rgba(14,82,89,0.06); color:var(--primary); }
.tbm-summary { background:rgba(14,82,89,0.06); border-radius:10px; padding:10px 14px; margin-bottom:16px; font-size:0.82rem; color:var(--primary); font-weight:600; }
.tbm-check { display:flex; align-items:flex-start; gap:10px; font-size:0.82rem; color:var(--text); cursor:pointer; margin:14px 0; }

@media (max-width: 640px) {
  .tbm-box { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; top:0; left:0; transform:none; animation:tbmSlide 0.3s ease; }
  @keyframes tbmSlide { from{transform:translateY(100%)}to{transform:translateY(0)} }
  .tbm-stepper .tbm-step span { display:none; }
}

/* ================================================================
   ISLANDS FEATURED (homepage — 3 cards)
   ================================================================ */
.islands-featured { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }

.island-featured-card { background:var(--white); border-radius:16px; overflow:hidden; box-shadow:0 2px 16px rgba(0,0,0,0.07); transition:transform 0.2s ease, box-shadow 0.2s ease; text-decoration:none; display:grid; grid-template-columns:5fr 4fr; align-items:stretch; min-height:340px; }
.island-featured-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,0.12); }

.island-featured-img { background-size:cover; background-position:center; min-height:280px; height:100% !important; }

.island-featured-body { padding:28px 30px; display:flex; flex-direction:column; justify-content:center; min-height:280px; }
.island-featured-body h3 { font-family:var(--font); font-size:1.5rem; font-weight:800; color:var(--title); margin-bottom:6px; letter-spacing:-0.01em; }
.island-featured-tag { font-family:var(--font); font-size:0.72rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--primary); display:block; margin-bottom:14px; }
.island-featured-body p { font-family:var(--font); font-size:0.92rem; color:var(--muted); line-height:1.65; margin-bottom:16px; }
.island-featured-link { font-family:var(--font); font-size:0.85rem; font-weight:700; color:var(--primary); }

@media(max-width:768px) {
  .islands-featured { grid-template-columns:1fr; gap:16px; }
  .island-featured-card { grid-template-columns:1fr; }
  .island-featured-img { min-height:200px; }
  .island-featured-body { padding:20px 22px 22px; }
  .island-featured-body h3 { font-size:1.2rem; }
}

/* Islands modal */
.islands-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:2000; align-items:center; justify-content:center; }
.islands-modal-overlay.open { display:flex; }
.islands-modal { background:var(--white); border-radius:20px; padding:40px; max-width:900px; width:90vw; max-height:85vh; overflow-y:auto; position:relative; }
.islands-modal-close { position:absolute; top:16px; right:20px; font-size:1.8rem; background:none; border:none; cursor:pointer; color:var(--muted); line-height:1; }
.islands-modal-close:hover { color:var(--title); }
.islands-modal h3 { font-size:1.4rem; font-weight:800; color:var(--title); }
.islands-modal-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.island-modal-card { border-radius:12px; overflow:hidden; text-decoration:none; background:var(--sand); transition:transform 0.2s, box-shadow 0.2s; }
.island-modal-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,0.1); }
.island-modal-card img { width:100%; height:120px; object-fit:cover; }
.island-modal-card-body { padding:10px 14px 14px; }
.island-modal-card h4 { font-weight:700; font-size:0.92rem; color:var(--title); }
.island-modal-card p { font-size:0.75rem; color:var(--muted); margin-top:2px; }
@media(max-width:640px) { .islands-modal-grid { grid-template-columns:repeat(2,1fr); } .islands-modal { padding:24px; } }

/* ================================================================
   RESPONSIVE — max 768px
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  /* Hero */
  .hero { min-height: 500px; }
  .hero-inner { padding-bottom: 60px; }
  .hero h1 { font-size: 1.9rem; }

  /* Search widget */
  .search-widget {
    margin: -36px var(--gutter) 0;
    max-width: 100%;
  }
  .search-body {
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
  }
  .search-field { padding: 10px 0; }
  .search-divider {
    width: 100%; height: 1px;
  }
  .search-body .btn { width: 100%; margin-top: 4px; }

  /* Sections */
  .section { padding: var(--section-y-m) 0; }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Carousel mobile: 85vw wide cards, peek next */
  .carousel > * {
    width: 85vw !important;
    max-width: 340px;
  }

  /* Island mosaic → horizontal scroll */
  .island-mosaic {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
    padding-bottom: 12px;
  }
  .island-mosaic::-webkit-scrollbar { display: none; }
  .island-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 75vw;
    max-width: 300px;
    height: 260px;
  }
  .island-card--large {
    grid-row: auto;
    width: 85vw;
    max-width: 340px;
  }

  /* Guide grid → carousel */
  .guide-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
  }
  .guide-grid::-webkit-scrollbar { display: none; }
  .guide-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 85vw;
    max-width: 340px;
  }

  /* Reviews */
  .review-card {
    min-width: 85vw;
    max-width: 340px;
  }

  /* Stats */
  .stats-row {
    flex-wrap: wrap;
    gap: 24px 48px;
    justify-content: center;
  }
  .stat-number { font-size: 1.1rem; }
  .stat-stars { font-size: 1.25rem; }

  /* CTA banner */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .cta-banner h2 { font-size: 1.3rem; }

  /* Tour detail */
  .tour-info { grid-template-columns: 1fr; }

  /* Filter sidebar hide on mobile */
  .filter-sidebar { display: none; }

  /* Cards never overflow */
  .tour-card, .guide-card, .review-card, .article-card {
    max-width: 100%;
  }

  /* Grids → single col */
  .tour-grid { grid-template-columns: 1fr; }
  .island-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .island-grid .island-card { height: 200px; }
  /* rentacar-grid removed — styles inline in rent-a-car.html */
  .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .island-grid { grid-template-columns: 1fr; }
  .island-grid .island-card { height: 220px; }
  .stats-row { gap: 28px 40px; }
}

/* ================================================================
   RESPONSIVE FIXES — comprehensive mobile audit
   Breakpoints: 640px (phone), 768px (tablet), 1024px (desktop)
   ================================================================ */

/* -- Global mobile fixes -- */
@media (max-width: 640px) {
  /* Container padding */
  .container { padding: 0 16px; }

  /* Typography scale */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }

  /* Page hero compact */
  .page-hero { height: 35vh; min-height: 220px; max-height: 320px; padding-bottom: 28px; }
  .page-hero-title { font-size: 1.6rem; }
  .page-hero-sub { font-size: 0.88rem; }

  /* Homepage hero */
  .hero { min-height: 85vh; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.92rem; }
  .hero-inner { padding: 0 16px 60px; }

  /* Homepage islands featured — stack */
  .islands-featured { grid-template-columns: 1fr !important; gap: 16px; }
  .island-featured-img { height: 180px !important; }
  .island-featured-body h3 { font-size: 1rem; }
  .island-featured-body p { font-size: 0.82rem; }

  /* Rent-a-car strip */
  .cta-banner { flex-direction: column; text-align: center; padding: 32px 20px; border-radius: 16px; margin: 0 16px; }
  .cta-banner h2 { font-size: 1.2rem; }

  /* Tour cards */
  .tour-card-img { height: 180px; }
  .tour-card-title { font-size: 0.92rem; }
  .tour-card-price strong { font-size: 1.1rem; }

  /* Sections reduce padding */
  .section { padding: 48px 0; }

  /* Footer mobile */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-trust { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Touch targets */
  .btn, .chip, .nav-toggle, .search-tab, button { min-height: 44px; }
  input, select, textarea { min-height: 44px; font-size: 16px; } /* 16px prevents iOS zoom */

  /* No horizontal overflow */
  *, *::before, *::after { max-width: 100vw; }
  img { max-width: 100%; height: auto; }

  /* Modal fixes */
  .tbm-box, .rc-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; top: 0; left: 0; transform: none; }

  /* Stats row */
  .stats-row { flex-direction: column; gap: 20px; align-items: center; }
  .stat-number { font-size: 1.05rem; }
  .stat-stars { font-size: 1.2rem; }

  /* Reviews horizontal scroll */
  .reviews-carousel { padding-left: 16px; }

  /* Islands modal */
  .islands-modal { padding: 24px; max-height: 90vh; }
  .islands-modal-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Homepage islands inline grids */
  .islands-top-grid { grid-template-columns: 1fr !important; }
  .islands-bottom-grid { grid-template-columns: 1fr !important; }
}

/* -- Tablet fixes -- */
@media (min-width: 641px) and (max-width: 1024px) {
  .container { padding: 0 24px; }
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .islands-featured { grid-template-columns: 1fr 1fr !important; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Accessibility: focus indicators */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════
   Flatpickr — clean minimal overrides
   Single source of truth (removed from inline styles)
   ═══════════════════════════════════════════════════ */
.flatpickr-calendar { border-radius: 14px !important; box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important; border: 1px solid var(--border) !important; font-family: var(--font) !important; min-width: 320px !important; overflow: hidden !important; }
.flatpickr-months, .flatpickr-months .flatpickr-month { background: white !important; overflow: hidden !important; }
.flatpickr-months { border-radius: 14px 14px 0 0 !important; }
.flatpickr-months .flatpickr-month { height: 48px !important; }
.flatpickr-current-month { font-weight: 700 !important; font-size: 15px !important; color: #1a1a1a !important; padding-top: 12px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-size: 15px !important; font-weight: 700 !important; background: transparent !important; color: #1a1a1a !important; border: none !important; padding: 0 !important; margin: 0 !important; }
.flatpickr-current-month input.cur-year { font-size: 15px !important; font-weight: 700 !important; color: #1a1a1a !important; padding: 0 !important; margin: 0 0 0 4px !important; width: 50px !important; }
.flatpickr-current-month .arrowUp, .flatpickr-current-month .arrowDown { display: none !important; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { top: 8px !important; width: 32px !important; height: 32px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #f3f4f6 !important; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--border) !important; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: #374151 !important; width: 10px !important; height: 10px !important; }
.flatpickr-weekdays { background: white !important; }
span.flatpickr-weekday { color: #9ca3af !important; font-weight: 600 !important; font-size: 11px !important; }
.flatpickr-day { border-radius: 8px !important; font-weight: 500 !important; font-size: 13px !important; color: #374151 !important; }
.flatpickr-day.selected { background: var(--primary) !important; border-color: var(--primary) !important; color: white !important; font-weight: 600 !important; }
.flatpickr-day.today { border-color: var(--primary) !important; color: var(--primary) !important; font-weight: 700 !important; }
.flatpickr-day.today.selected { color: white !important; }
.flatpickr-day:hover { background: #f0faf9 !important; border-color: #f0faf9 !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #d1d5db !important; }
.numInputWrapper span { display: none !important; }
.numInputWrapper:hover { background: transparent !important; }

/* ═══════════════════════════════════════════════════════════════════
   Beyond Madeira heart — site-wide save/wishlist component
   Variants: default pill (hero), .bm-heart-top (positioned), .bm-heart-icon (cards)
   ═══════════════════════════════════════════════════════════════════ */
.bm-heart{display:inline-flex;align-items:center;gap:8px;padding:9px 16px 9px 13px;border-radius:99px;background:rgba(0,0,0,.3);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1.5px solid rgba(255,255,255,.4);cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.02em;color:#fff;transition:background .2s,border-color .2s,color .2s,transform .18s cubic-bezier(.4,1.6,.5,1)}
.bm-heart:hover{background:rgba(0,0,0,.44);border-color:rgba(255,255,255,.7)}
.bm-heart:active{transform:scale(.95)}
.bm-heart svg{width:16px;height:16px;display:block;flex-shrink:0}
.bm-heart svg path{fill:transparent;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;transition:fill .25s ease,stroke .25s ease,transform .3s cubic-bezier(.4,1.6,.5,1);transform-origin:center}
.bm-heart-label::after{content:attr(data-save)}
.bm-heart.saved{background:#fff;border-color:#fff;color:#111}
.bm-heart.saved svg path{fill:#EF3340;stroke:#EF3340;animation:bmHeartPop .42s cubic-bezier(.4,1.6,.5,1)}
.bm-heart.saved .bm-heart-label::after{content:attr(data-saved)}
@keyframes bmHeartPop{0%{transform:scale(1)}40%{transform:scale(1.3)}100%{transform:scale(1)}}
.bm-heart-top{position:absolute;top:22px;right:22px;z-index:3}
/* Icon-only variant — for listing cards on light backgrounds */
.bm-heart-icon{gap:0;padding:0;width:38px;height:38px;justify-content:center;background:#fff;border:none;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.bm-heart-icon .bm-heart-label{display:none}
.bm-heart-icon svg{width:20px;height:20px}
.bm-heart-icon svg path{stroke:#aaa !important;fill:none !important;stroke-width:2 !important;}
.bm-heart-icon:hover{background:#fff;border-color:#fff;transform:none}
.bm-heart-icon.saved{background:#fff;color:#111}
.bm-heart-icon.saved svg path,.bm-heart-icon.liked svg path{fill:#ef4444 !important;stroke:#ef4444 !important;}
@media (max-width:640px){.bm-heart-top{top:14px;right:14px;padding:8px 14px 8px 12px;font-size:12px}.bm-heart-icon{width:34px;height:34px}.bm-heart-icon svg{width:18px;height:18px}}

/* ================================================================
   GLOBAL: kill all decorative underlines on text links across the site.
   Milton's rule — "riscos debaixo de texto" are not allowed anywhere.
   Override wins due to !important so per-page styles stop adding them.
   ================================================================ */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
  text-decoration: none !important;
}

/* ================================================================
   GLOBAL: subtle tonal filter for all R2 photos — gives every image
   on the site a consistent Beyond Madeira "look" without touching
   the original files. Applied only to images served from the R2
   bucket so local icons/logos stay untouched.
   2026-04-22 — Milton's brand-identity rule.
   ================================================================ */
img[src*="r2.dev"],
img[src*="pub-"],
img[src*="beyond-madeira-media"],
.bm-photo-tone img,
picture.bm-photo-tone img {
  filter: saturate(1.06) contrast(1.04) brightness(1.01);
  transition: filter .25s ease;
}
;img[srcset]{background:#f5f5f5;aspect-ratio:auto}/*BM-CAROUSEL-V1*/.bm-carousel,.tour-grid,.tg-cards,.tg-grid-3,.related-grid,.sd-grid,.sd-rel-grid,.ed-grid,.also-like-grid,.edr-grid,.ar-grid,.act-grid,.attr-grid,.acc-grid,.lw-grid,.rest-grid,.aus-grid,.islands-grid,.event-grid,.guide-grid,.webcam-grid{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;overflow-x:auto;overflow-y:visible;scroll-snap-type:x mandatory;scroll-padding-left:24px;gap:16px;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:8px;-webkit-overflow-scrolling:touch}.bm-carousel::-webkit-scrollbar,.tour-grid::-webkit-scrollbar,.tg-cards::-webkit-scrollbar,.tg-grid-3::-webkit-scrollbar,.related-grid::-webkit-scrollbar,.sd-grid::-webkit-scrollbar,.sd-rel-grid::-webkit-scrollbar,.ed-grid::-webkit-scrollbar,.also-like-grid::-webkit-scrollbar,.edr-grid::-webkit-scrollbar,.ar-grid::-webkit-scrollbar,.act-grid::-webkit-scrollbar,.attr-grid::-webkit-scrollbar,.acc-grid::-webkit-scrollbar,.lw-grid::-webkit-scrollbar,.rest-grid::-webkit-scrollbar,.aus-grid::-webkit-scrollbar,.islands-grid::-webkit-scrollbar,.event-grid::-webkit-scrollbar,.guide-grid::-webkit-scrollbar::-webkit-scrollbar,.webcam-grid::-webkit-scrollbar{display:none}.bm-carousel>*,.tour-grid>*,.tg-cards>*,.tg-grid-3>*,.related-grid>*,.sd-grid>*,.sd-rel-grid>*,.ed-grid>*,.also-like-grid>*,.edr-grid>*,.ar-grid>*,.act-grid>*,.attr-grid>*,.acc-grid>*,.lw-grid>*,.rest-grid>*,.aus-grid>*,.islands-grid>*,.event-grid>*,.guide-grid>*>*,.webcam-grid>*{flex:0 0 calc(33.333% - 11px);scroll-snap-align:start;min-width:0}@media(max-width:700px){.bm-carousel>*,.tour-grid>*,.tg-cards>*,.tg-grid-3>*,.related-grid>*,.sd-grid>*,.sd-rel-grid>*,.ed-grid>*,.also-like-grid>*,.edr-grid>*,.ar-grid>*,.act-grid>*,.attr-grid>*,.acc-grid>*,.lw-grid>*,.rest-grid>*,.aus-grid>*,.islands-grid>*,.event-grid>*,.guide-grid>*>*,.webcam-grid>*{flex:0 0 82%!important}}@media(min-width:701px) and (max-width:1023px){.bm-carousel>*,.tour-grid>*,.tg-cards>*,.tg-grid-3>*,.related-grid>*,.sd-grid>*,.sd-rel-grid>*,.ed-grid>*,.also-like-grid>*,.edr-grid>*,.ar-grid>*,.act-grid>*,.attr-grid>*,.acc-grid>*,.lw-grid>*,.rest-grid>*,.aus-grid>*,.islands-grid>*,.event-grid>*,.guide-grid>*>*,.webcam-grid>*{flex:0 0 calc(50% - 8px)!important}}

/* ============================================================
   Tours Directory — GYG-style list/grid (scoped to .tours-page)
   Mobile: horizontal list cards (img left, content right)
   Desktop ≥1024px: 4-column grid (img top, content below)
   New class names .tlc-* to escape the .tour-grid carousel hijack.
   ============================================================ */
.tours-page .tlc-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:0;
  padding:0;
}
.tours-page .tlc-card{
  display:flex;
  flex-direction:row;
  background:#fff;
  border:1px solid #e8eaee;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  position:relative;
}
.tours-page .tlc-card:hover{
  box-shadow:0 6px 20px rgba(15,30,45,.08);
  border-color:#dde0e6;
}
.tours-page .tlc-card.tlc-featured{ background:#eaf6f6; border-color:#cfe6e6; }

/* Card image — mobile horizontal */
.tours-page .tlc-img{
  position:relative;
  flex:0 0 132px;
  width:132px;
  height:132px;
  background:#f2f4f7;
  overflow:hidden;
}
.tours-page .tlc-img picture{
  display:block;
  width:100%;
  height:100%;
}
.tours-page .tlc-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Badge */
.tours-page .tlc-badge{
  position:absolute;
  top:8px;
  left:8px;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.01em;
  padding:5px 9px;
  border-radius:6px;
  background:#0f1d2b;
  color:#fff;
  z-index:2;
  white-space:nowrap;
  max-width:calc(100% - 50px);
  overflow:hidden;
  text-overflow:ellipsis;
}
.tours-page .tlc-badge-best{ background:#cfe9ee; color:#0e5259; }
.tours-page .tlc-badge-new{ background:#0f1d2b; color:#fff; }
.tours-page .tlc-badge-limit{ background:#c0392b; color:#fff; }
.tours-page .tlc-badge-fun{ background:#0e5259; color:#fff; }

/* Favourite heart */
.tours-page .tlc-fav{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:background .15s ease;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  flex-shrink:0;
}
.tours-page .tlc-fav:hover{ background:#fff; }
.tours-page .tlc-fav svg{ width:18px; height:18px; pointer-events:none; display:block; stroke:#999; fill:none; stroke-width:2; }
.tours-page .tlc-fav.liked svg{ stroke:#ef4444; fill:#ef4444; }

/* Card body */
.tours-page .tlc-body{
  flex:1;
  padding:10px 12px 10px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.tours-page .tlc-title{
  font-family:'Montserrat',sans-serif;
  font-size:.95rem;
  font-weight:700;
  line-height:1.3;
  color:#0f1d2b;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tours-page .tlc-meta{
  font-size:.78rem;
  color:#6b7280;
  font-weight:500;
  line-height:1.4;
}
.tours-page .tlc-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:6px;
}
.tours-page .tlc-rating{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:.82rem;
  color:#0f1d2b;
}
.tours-page .tlc-star{ flex-shrink:0; }
.tours-page .tlc-rating-score{ font-weight:700; }
.tours-page .tlc-rating-count{ color:#6b7280; font-weight:500; }
.tours-page .tlc-price{
  display:flex;
  align-items:baseline;
  gap:3px;
  white-space:nowrap;
}
.tours-page .tlc-price strong{
  font-family:'Montserrat',sans-serif;
  font-size:1.05rem;
  font-weight:800;
  color:#0f1d2b;
}
.tours-page .tlc-price-per{
  font-size:.72rem;
  color:#6b7280;
  font-weight:500;
}
.tours-page .tlc-trust{
  font-size:.7rem;
  color:#0e5259;
  font-weight:600;
  margin-top:2px;
  letter-spacing:.005em;
}

/* Tablet — 2-column */
@media(min-width:700px) and (max-width:1023px){
  .tours-page .tlc-grid{ grid-template-columns:repeat(2, 1fr); gap:16px; }
  .tours-page .tlc-card{ flex-direction:column; }
  .tours-page .tlc-img{
    flex:none;
    width:100%;
    height:200px;
  }
  .tours-page .tlc-body{ padding:14px 16px 16px; gap:6px; }
  .tours-page .tlc-title{ font-size:1rem; }
  .tours-page .tlc-price strong{ font-size:1.15rem; }
}

/* Desktop — 4-column grid (img top, content below) */
@media(min-width:1024px){
  .tours-page .tlc-grid{ grid-template-columns:repeat(4, 1fr); gap:20px; }
  .tours-page .tlc-card{
    flex-direction:column;
    border-radius:14px;
  }
  .tours-page .tlc-img{
    flex:none;
    width:100%;
    height:215px;
  }
  .tours-page .tlc-badge{
    top:12px;
    left:12px;
    font-size:.7rem;
    padding:6px 11px;
  }
  .tours-page .tlc-fav{
    top:10px;
    right:10px;
    width:36px;
    height:36px;
  }
  .tours-page .tlc-fav svg{ width:18px; height:18px; }
  .tours-page .tlc-body{
    padding:14px 18px 16px;
    gap:6px;
  }
  .tours-page .tlc-title{ font-size:1rem; }
  .tours-page .tlc-meta{ font-size:.82rem; }
  .tours-page .tlc-rating{ font-size:.85rem; }
  .tours-page .tlc-price strong{ font-size:1.2rem; }
  .tours-page .tlc-price-per{ font-size:.78rem; }
  .tours-page .tlc-trust{ font-size:.75rem; }
  .tours-page .tlc-card:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(15,30,45,.1); }
}

@media(min-width:1280px){
  .tours-page .tlc-img{ height:230px; }
}

/* ============================================================
   Tours Directory — Filter chips bar (sticky under hero)
   ============================================================ */
.tours-page .tdir-chipbar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 0 10px;
  margin:0 0 8px;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;
  position:sticky;
  top:0;
  z-index:30;
  background:#fff;
  border-bottom:1px solid #f0f1f4;
}
.tours-page .tdir-chipbar::-webkit-scrollbar{ display:none; }
.tours-page .tdir-chip{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  border:1px solid #e1e4ea;
  border-radius:999px;
  background:#fff;
  font-family:'Montserrat',sans-serif;
  font-size:.82rem;
  font-weight:600;
  color:#0f1d2b;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.tours-page .tdir-chip:hover{ border-color:#0f1d2b; }
.tours-page .tdir-chip.active{
  background:#0f1d2b;
  color:#fff;
  border-color:#0f1d2b;
}
.tours-page .tdir-chip.tdir-chip-filter{
  background:#fff;
  border-color:#0f1d2b;
}
.tours-page .tdir-chip.tdir-chip-filter:hover{ background:#f4f6f9; }
.tours-page .tdir-chip svg{ flex-shrink:0; }

/* Count line + tooltip */
.tours-page .tdir-count{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.88rem;
  color:#3a4555;
  font-weight:600;
  margin:6px 0 16px;
}
.tours-page .tdir-count strong{ color:#0f1d2b; font-weight:800; }
.tours-page .tdir-info{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#f0f1f4;
  color:#6b7280;
  cursor:help;
  position:relative;
  flex-shrink:0;
}
.tours-page .tdir-info:hover{ background:#0f1d2b; color:#fff; }
.tours-page .tdir-info svg{ width:11px; height:11px; }
.tours-page .tdir-info-pop{
  position:absolute;
  top:calc(100% + 8px);
  left:-10px;
  width:280px;
  padding:12px 14px;
  background:#0f1d2b;
  color:#fff;
  font-size:.78rem;
  line-height:1.5;
  font-weight:500;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transform:translateY(-4px);
  transition:opacity .18s ease, transform .18s ease;
  z-index:50;
}
.tours-page .tdir-info-pop::before{
  content:'';
  position:absolute;
  top:-5px;
  left:14px;
  border:5px solid transparent;
  border-bottom-color:#0f1d2b;
  border-top:0;
}
.tours-page .tdir-info:hover .tdir-info-pop,
.tours-page .tdir-info:focus .tdir-info-pop{
  opacity:1;
  transform:translateY(0);
}

/* ============================================================
   Tours Directory — Filter drawer (bottom sheet mobile, side panel desktop)
   ============================================================ */
.tdir-drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,29,43,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:1000;
}
.tdir-drawer-backdrop.open{ opacity:1; pointer-events:auto; }
.tdir-drawer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  max-height:90vh;
  background:#fff;
  border-radius:18px 18px 0 0;
  display:flex;
  flex-direction:column;
  transform:translateY(100%);
  transition:transform .3s cubic-bezier(.2,.7,.2,1);
  z-index:1001;
  box-shadow:0 -10px 40px rgba(0,0,0,.18);
}
.tdir-drawer.open{ transform:translateY(0); }
.tdir-drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid #f0f1f4;
  flex-shrink:0;
}
.tdir-drawer-header h3{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  font-family:'Montserrat',sans-serif;
  color:#0f1d2b;
  flex:1;
  text-align:center;
  padding-right:32px;
}
.tdir-drawer-close{
  width:32px;
  height:32px;
  border:none;
  background:none;
  cursor:pointer;
  color:#0f1d2b;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
}
.tdir-drawer-close:hover{ background:#f4f6f9; }
.tdir-drawer-body{
  flex:1;
  overflow-y:auto;
  padding:8px 20px 20px;
  -webkit-overflow-scrolling:touch;
}
.tdir-drawer-section{
  padding:18px 0;
  border-bottom:1px solid #f0f1f4;
}
.tdir-drawer-section:last-child{ border-bottom:none; }
.tdir-drawer-section h4{
  margin:0 0 12px;
  font-size:.95rem;
  font-weight:700;
  font-family:'Montserrat',sans-serif;
  color:#0f1d2b;
}
.tdir-drawer-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tdir-pill{
  padding:9px 14px;
  border:1px solid transparent;
  border-radius:999px;
  background:#f4f6f9;
  font-family:'Montserrat',sans-serif;
  font-size:.82rem;
  font-weight:600;
  color:#0f1d2b;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.tdir-pill:hover{ background:#e9ecf1; }
.tdir-pill.active{
  background:#0f1d2b;
  color:#fff;
  border-color:#0f1d2b;
}
.tdir-range{
  width:100%;
  accent-color:#0e5259;
}
.tdir-range-label{
  font-size:.85rem;
  color:#3a4555;
  margin-top:4px;
  font-weight:600;
}
.tdir-drawer-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
  border-top:1px solid #f0f1f4;
  background:#fff;
  flex-shrink:0;
}
.tdir-drawer-clear{
  background:none;
  border:none;
  text-decoration:underline;
  font-family:'Montserrat',sans-serif;
  font-size:.88rem;
  font-weight:600;
  color:#0f1d2b;
  cursor:pointer;
  padding:8px 0;
}
.tdir-drawer-apply{
  flex:1;
  max-width:60%;
  padding:13px 18px;
  background:#0e5259;
  color:#fff;
  border:none;
  border-radius:10px;
  font-family:'Montserrat',sans-serif;
  font-size:.92rem;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease;
}
.tdir-drawer-apply:hover{ background:#0a3d43; }
.tdir-drawer-apply:active{ transform:scale(.99); }

/* Desktop drawer = side panel right */
@media(min-width:1024px){
  .tdir-drawer{
    left:auto;
    right:0;
    top:0;
    bottom:0;
    width:420px;
    max-height:100vh;
    border-radius:0;
    transform:translateX(100%);
  }
  .tdir-drawer.open{ transform:translateX(0); }
  .tdir-drawer-header h3{ text-align:left; padding-right:0; }
}

/* No-results state */
.tours-page .tdir-noresults{
  text-align:center;
  padding:64px 16px;
  color:#6b7280;
}
.tours-page .tdir-noresults p{ font-size:.95rem; }
.tours-page .tdir-noresults button{
  margin-top:16px;
  padding:10px 20px;
  border:1.5px solid #0e5259;
  background:#fff;
  color:#0e5259;
  border-radius:8px;
  font-family:'Montserrat',sans-serif;
  font-weight:600;
  cursor:pointer;
}

/* Prevent iOS Safari auto-zoom on input focus — triggered when font-size < 16px */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
