/* ============================================================
   PANA.PH — Design System · "The Archipelago Palette"
   Island Vibes: Pacific turquoise (60%) · Guimaras Mango gold (CTA 10%)
   · Palm green (20%) · clean cream neutral. Fonts: Poppins + Inter.
   ============================================================ */

:root {
  /* Brand — Archipelago Palette */
  --ocean:        #0096c7;  /* Pacific turquoise (primary) */
  --ocean-deep:   #0077b6;  /* deeper Pacific */
  --ocean-darker: #023e8a;  /* deep sea (footers/hero overlay) */
  --aqua:         #48cae4;  /* shallow-water aqua */
  --palm:         #2a9d8f;  /* Palm green (secondary — eco/local tags) */
  --palm-deep:    #1d7d6e;
  --mango:        #ffb703;  /* Guimaras Mango (CTA accent) */
  --mango-deep:   #fb8500;  /* warm sunset orange */
  --coral:        #fb8500;  /* alias kept for existing rules */
  --gold:         #ffb703;  /* alias kept for existing rules */
  --sand:         #fffdf7;

  /* Neutrals */
  --ink:      #103a4a;       /* deep teal-ink, warmer than navy */
  --body:     #3d5560;
  --muted:    #6b8290;
  --line:     #e4eef0;
  --bg:       #fffdf7;       /* clean cream — readable in bright sun */
  --surface:  #ffffff;

  /* Effects */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,34,54,.06), 0 1px 3px rgba(15,34,54,.08);
  --shadow:    0 4px 12px rgba(15,34,54,.06), 0 12px 32px rgba(15,34,54,.08);
  --shadow-lg: 0 20px 60px rgba(15,34,54,.18);
  --shadow-brand: 0 12px 30px rgba(0,150,199,.28);
  --ease: cubic-bezier(.4,0,.2,1);

  /* Spacing scale (8px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}

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

/* ============================================================
   NAV + HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(1,42,99,.55) 0%, rgba(2,62,138,.6) 55%, rgba(0,119,182,.7) 100%),
    url('https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?w=1920&q=80') center/cover fixed;
  color: #fff;
  padding-bottom: var(--s8);
}
.hero::after { /* subtle bottom fade into page bg */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s4) var(--s6);
  max-width: var(--maxw); margin: 0 auto;
  position: relative; z-index: 3;
}
.logo, a.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
  color: #fff; display: inline-flex; align-items: center; gap: .1rem;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.88);
  position: relative; padding: .2rem 0; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.hero-content {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: var(--s8) var(--s4) var(--s6);
  position: relative; z-index: 2;
}
.hero-content h1 {
  color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800;
  text-shadow: 0 2px 30px rgba(0,0,0,.25); margin-bottom: var(--s4);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.92);
  max-width: 560px; margin: 0 auto;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--s6);
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: var(--s4) var(--s6); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 50px rgba(255,107,91,.4); }

/* Homepage hero search card — single search, overlapping the hero bottom. */
.hero { padding-bottom: 0; } /* search card provides the spacing */
.hero-search-wrap {
  max-width: 920px; margin: 0 auto; padding: var(--s5) var(--s5) 0;
  position: relative; z-index: 3; transform: translateY(40px);
}
.search-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: var(--s5);
}
.search-card .search-form { box-shadow: none; border: 0; padding: 0; margin: 0; background: transparent; }
.search-card .search-tabs { margin-bottom: var(--s4); }
/* Push the page content down to clear the overlapping card. */
.hero + main { padding-top: var(--s7); }

/* Compact hero for secondary pages */
.hero-sm { padding-bottom: var(--s7); background-attachment: scroll; }
.hero-sm .hero-content { padding: var(--s7) var(--s4) var(--s5); }
.hero-sm .hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ============================================================
   LAYOUT
   ============================================================ */
main {
  max-width: var(--maxw); margin: -56px auto 0; padding: 0 var(--s5) var(--s8);
  position: relative; z-index: 2;
}
section { margin-top: var(--s8); }
section:first-child { margin-top: 0; }
section > h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--s2);
  color: var(--ink);
}
section > h2 + .muted { margin-bottom: var(--s5); }
section > .muted { color: var(--muted); }

/* Section heading accent underline */
section > h2 { position: relative; display: inline-block; }
section > h2::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--aqua));
  border-radius: 2px;
}

/* ============================================================
   CARDS
   ============================================================ */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s5); margin-top: var(--s5);
}
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img {
  width: 100%; height: 190px; object-fit: cover; background: #e8eef3;
  transition: transform .5s var(--ease);
}
.card:hover img { transform: scale(1.06); }
.card-body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin-bottom: var(--s1); color: var(--ink); }

.muted { color: var(--muted); font-size: .9rem; }
.row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: var(--s3);
}
.price { font-weight: 800; color: var(--ocean-deep); font-size: 1.1rem; font-family: "Poppins", sans-serif; }
.price small { font-weight: 500; }
.rating {
  background: linear-gradient(135deg, #fff3d6, #ffe9b0); color: #9a6b00;
  padding: .2rem .55rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.tag {
  display: inline-block; align-self: flex-start; background: #e6f4fb; color: var(--ocean-deep);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: var(--radius-pill); margin-bottom: var(--s2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.book-btn, a.book-btn {
  margin-top: var(--s4); width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  color: #fff; font-weight: 700; font-size: .95rem;
  padding: var(--s3); border-radius: var(--radius-sm);
  text-align: center; display: inline-block;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.book-btn:hover, a.book-btn:hover {
  filter: brightness(1.05); box-shadow: var(--shadow-brand); transform: translateY(-1px);
}
.book-btn:active { transform: translateY(0); }

/* ============================================================
   SEARCH (tabs + forms)
   ============================================================ */
.hide { display: none !important; }
.search-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.search-tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--body);
  padding: var(--s2) var(--s4); border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.search-tabs button:hover { border-color: var(--ocean); color: var(--ocean); }
.search-tabs button.active {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-brand);
}
.search-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s4); align-items: end; background: var(--surface); padding: var(--s5);
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  margin-bottom: var(--s5);
}
.search-form label {
  display: flex; flex-direction: column; font-size: .78rem; font-weight: 700;
  gap: var(--s1); color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
}
.search-form input {
  padding: var(--s3) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fbfcfe;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-form input:focus {
  outline: none; border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(0,119,182,.12); background: #fff;
}
.search-form button[type="submit"] {
  border: 0; cursor: pointer; background: linear-gradient(135deg, var(--ocean), var(--aqua));
  color: #fff; font-weight: 700; font-size: .95rem; padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm); transition: filter .2s var(--ease), box-shadow .2s var(--ease);
}
.search-form button[type="submit"]:hover { filter: brightness(1.05); box-shadow: var(--shadow-brand); }

.card.result img { display: none; }
.card.result .card-body { padding: var(--s5); }

/* ============================================================
   WIDGETS / PACKAGING / MODAL
   ============================================================ */
.tp-widget {
  margin: var(--s4) 0 var(--s5); min-height: 60px;
  background: var(--surface); border-radius: var(--radius); padding: var(--s4);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.quick-search { margin-top: var(--s4); }
.quick-search summary {
  cursor: pointer; font-weight: 700; color: var(--ocean-deep); padding: var(--s2) 0;
  list-style: none;
}
.quick-search summary::-webkit-details-marker { display: none; }
.quick-search summary:hover { color: var(--ocean); }

.package { margin-top: var(--s5); }
.pkg-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--s6); border: 1px solid var(--line);
}
.pkg-card h3 { color: var(--ink); margin-bottom: var(--s4); font-size: 1.4rem; }
.pkg-row {
  display: grid; grid-template-columns: 2.5rem 1fr auto auto; gap: var(--s4);
  align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.pkg-row:last-of-type { border-bottom: 0; }
.pkg-icon { font-size: 1.5rem; text-align: center; }
.pkg-info strong { color: var(--ink); font-weight: 700; }
.pkg-price { font-weight: 800; color: var(--ocean-deep); font-family: "Poppins", sans-serif; }
.pkg-row .book-btn { width: auto; margin: 0; padding: var(--s2) var(--s4); }
.pkg-note { margin-top: var(--s4); font-size: .82rem; color: var(--muted); }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(2,8,20,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: var(--s4); z-index: 100;
  animation: fade .2s var(--ease);
}
.modal.open { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 440px;
  padding: var(--s6); position: relative; box-shadow: var(--shadow-lg);
  animation: pop .25s var(--ease);
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box.centered { text-align: center; }
.modal-box h3 { color: var(--ink); margin-bottom: var(--s1); font-size: 1.3rem; }
.modal-close {
  position: absolute; top: var(--s3); right: var(--s4); border: 0; background: none;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted);
  transition: color .2s var(--ease);
}
.modal-close:hover { color: var(--ink); }
#booking-form { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
#booking-form label {
  display: flex; flex-direction: column; font-size: .78rem; font-weight: 700;
  color: var(--muted); gap: var(--s1); text-transform: uppercase; letter-spacing: .03em;
}
#booking-form input {
  padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: #fbfcfe;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#booking-form input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0,119,182,.12); background: #fff; }
#booking-form button[type="submit"] {
  margin-top: var(--s2); border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--ocean), var(--aqua));
  color: #fff; font-weight: 700; padding: var(--s4); border-radius: var(--radius-sm);
  transition: filter .2s var(--ease);
}
#booking-form button[type="submit"]:hover { filter: brightness(1.05); }
#booking-form button[type="submit"]:disabled { opacity: .55; cursor: default; }
.booking-msg { font-size: .9rem; min-height: 1.2em; color: var(--body); }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.stay-total { font-size: .95rem; color: var(--body); min-height: 1.2em; }
.stay-total strong { color: var(--ocean-deep); font-family: "Poppins", sans-serif; }
.stay-total.bad { color: #c0392b; }

/* Banca (paraw) loader — a tiny outrigger boat bobbing on waves. Pure CSS,
   replaces the old spinner (same .spinner class so existing markup works). */
.spinner {
  width: 72px; height: 56px; margin: 0 auto var(--s4); position: relative;
}
.spinner::before { /* the boat */
  content: "⛵"; font-size: 34px; line-height: 1; position: absolute;
  left: 50%; top: 2px; transform: translateX(-50%);
  animation: boat-bob 1.6s ease-in-out infinite;
}
.spinner::after { /* the wave */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, var(--aqua), var(--ocean));
  opacity: .5; animation: wave-shimmer 1.6s ease-in-out infinite;
}
@keyframes boat-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-7deg); }
  50%      { transform: translateX(-50%) translateY(-6px) rotate(7deg); }
}
@keyframes wave-shimmer {
  0%, 100% { transform: scaleX(.85); opacity: .4; }
  50%      { transform: scaleX(1.05); opacity: .6; }
}
/* Reduced-motion: hold the boat still */
@media (prefers-reduced-motion: reduce) {
  .spinner::before, .spinner::after { animation: none; }
}

.plan-hint { margin: calc(-1 * var(--s2)) 0 var(--s5); }
.plan-hint code { background: #e6f4fb; padding: .1rem .4rem; border-radius: 5px; color: var(--ocean-deep); }

/* ============================================================
   POPULAR DESTINATIONS
   ============================================================ */
.dest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s4); margin-top: var(--s5);
}
.dest {
  position: relative; height: 180px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; padding: var(--s4);
  background-image: linear-gradient(180deg, rgba(2,8,20,0) 35%, rgba(2,8,20,.75)), var(--img);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dest:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dest span {
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 800;
  font-size: 1.25rem; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* ============================================================
   WHY PANA.PH
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s5); margin-top: var(--s5);
}
.why-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem;
  background: linear-gradient(135deg, #e6f4fb, #d4f1f9); margin-bottom: var(--s3);
}
.why-card h3 { font-size: 1.05rem; margin-bottom: var(--s2); color: var(--ink); }
.why-card p { font-size: .9rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
#cta-band {
  margin-top: var(--s8);
  background: linear-gradient(135deg, var(--ocean-deep), var(--aqua));
  border-radius: calc(var(--radius) * 1.5); overflow: hidden; position: relative;
}
#cta-band::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background: url('https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?w=1200') center/cover; }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: var(--s8) var(--s5); color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-inner h2::after { display: none; }
.cta-inner p { color: rgba(255,255,255,.92); margin: var(--s3) 0 0; font-size: 1.1rem; }
.cta-inner .hero-cta { margin-top: var(--s5); }

/* Subtle Filipiniana weave texture (banig/inabel-inspired) for authentic
   sections — very low opacity so it reads as texture, not noise. */
#stays, #destinations {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20h40M20 0v40M0 0l40 40M40 0L0 40' stroke='%232a9d8f' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  border-radius: var(--radius);
  padding: var(--s5);
  margin-left: calc(-1 * var(--s5));
  margin-right: calc(-1 * var(--s5));
}

/* ============================================================
   LOCAL STAYS — listing + detail
   ============================================================ */
.search-form select {
  padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fbfcfe; cursor: pointer;
}
.search-form select:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
a.card.stay-card { color: inherit; }
.link-strong { color: var(--ocean-deep); font-weight: 700; }
.link-strong:hover { color: var(--ocean); }

.hero-min { padding-bottom: 0; }
.hero-min .hero-content { display: none; }
.back-link { display: inline-block; margin-bottom: var(--s4); font-weight: 600; color: var(--ocean-deep); }
.back-link:hover { color: var(--ocean); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s2); height: 420px; margin-bottom: var(--s5);
  border-radius: var(--radius); overflow: hidden; }
.gallery.one { grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { height: 420px; }
.g-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s2); }
.g-side img { height: 100%; }

/* Detail layout */
.stay-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--s6); align-items: start; }
.stay-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: var(--s2) 0; }
.stay-loc { font-size: 1rem; margin-bottom: var(--s4); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { font-weight: 600; color: var(--ink); }
.stay-block { margin-top: var(--s5); }
.stay-block h2 { font-size: 1.2rem; margin-bottom: var(--s3); }
.stay-block h2::after { display: none; }
.amenities { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: var(--s2); }
.amenities li { color: var(--body); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* Booking box (sticky) */
.stay-book { position: sticky; top: var(--s5); }
.book-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--s5); }
.book-price { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.book-box .book-btn { margin-top: var(--s4); }
.fx-est { font-size: .85rem; color: var(--palm-deep); font-weight: 600; margin-top: var(--s1); }
.book-note { font-size: .8rem; text-align: center; margin-top: var(--s3); }

@media (max-width: 840px) {
  .stay-layout { grid-template-columns: 1fr; }
  .stay-book { position: static; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery .g-main { height: 260px; }
  .g-side { grid-template-rows: none; grid-template-columns: repeat(4,1fr); }
  .g-side img { height: 80px; }
}

/* ============================================================
   LEGAL / CONTENT PAGES
   ============================================================ */
.legal { max-width: 800px; }
.legal-nav { margin-bottom: var(--s5); font-weight: 600; color: var(--muted); }
.legal-nav a { color: var(--ocean-deep); }
.legal-block { margin-top: var(--s6); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow-sm); }
.legal-block h2 { font-size: 1.5rem; margin-bottom: var(--s3); }
.legal-block h3 { font-size: 1.05rem; margin: var(--s4) 0 var(--s2); color: var(--ink); }
.legal-block p, .legal-block li { color: var(--body); margin-bottom: var(--s2); }
.legal-block ul { padding-left: var(--s5); }
.legal-block a { color: var(--ocean-deep); font-weight: 600; }

/* ============================================================
   DESTINATION GUIDES
   ============================================================ */
.tag-green { background: #d8f3ec; color: #1d7d6e; }
.mt-section { margin-top: var(--s7); }
.promo-card {
  background: linear-gradient(135deg, #fff4d6, #ffe9b0); border: 1px solid #ffd97a;
  border-radius: var(--radius-sm); padding: var(--s4); margin: var(--s4) 0;
  color: #8a5a00; font-size: .95rem;
}
.promo-code {
  background: #fff; border: 1px dashed var(--mango-deep); color: var(--mango-deep);
  padding: .1rem .5rem; border-radius: 6px; font-weight: 800; letter-spacing: .04em;
}
.apply-block { max-width: 560px; margin: var(--s6) auto 0; }
.stack-form { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.stack-form label { display: flex; flex-direction: column; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; gap: var(--s1); }
.stack-form input, .stack-form textarea { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fbfcfe; }
.stack-form input:focus, .stack-form textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0,119,182,.12); background: #fff; }
.stack-form button[type="submit"] { margin-top: var(--s2); border: 0; cursor: pointer; background: linear-gradient(135deg, var(--gold), var(--coral)); color: #fff; font-weight: 800; padding: var(--s4); border-radius: var(--radius-sm); font-size: 1rem; }
.stack-form button:disabled { opacity: .55; }
.guide-hero {
  height: 340px; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: var(--s6); margin-bottom: var(--s5);
  background-image: linear-gradient(180deg, rgba(2,8,20,0) 30%, rgba(2,8,20,.8)), var(--img);
  background-size: cover; background-position: center;
}
.guide-hero-text h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: var(--s2) 0; }
.guide-hero-text p { color: rgba(255,255,255,.92); font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--body); }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--s4); }
.todo-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4); }
.todo-item h3 { font-size: 1rem; margin-bottom: var(--s2); color: var(--ink); }
.guide-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.guide-facts h3 { font-size: 1rem; color: var(--ink); margin-bottom: var(--s1); }
.guide-cta {
  margin-top: var(--s7); text-align: center; padding: var(--s7) var(--s5);
  background: linear-gradient(135deg, var(--ocean-deep), var(--aqua));
  border-radius: var(--radius); color: #fff;
}
.guide-cta h2 { color: #fff; } .guide-cta h2::after { display: none; }
.guide-cta p { color: rgba(255,255,255,.9); margin-bottom: var(--s5); }
.guide-cta-btns { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }
.guide-cta-btns .book-btn { width: auto; padding: var(--s3) var(--s5); margin: 0; }
.book-btn-gold { background: linear-gradient(135deg, var(--gold), var(--coral)) !important; }
@media (max-width: 640px) { .guide-facts { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG / ARTICLE
   ============================================================ */
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s5); }
.post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--s2); }
.post-meta { margin-bottom: var(--s5); }
.post-body { font-size: 1.08rem; line-height: 1.75; color: var(--body); }
.post-body h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s3); }
.post-body h3 { font-size: 1.2rem; margin: var(--s5) 0 var(--s2); }
.post-body p { margin-bottom: var(--s4); }
.post-body ul, .post-body ol { margin: 0 0 var(--s4) var(--s5); }
.post-body li { margin-bottom: var(--s2); }
.post-body img { border-radius: var(--radius); margin: var(--s4) 0; }
.post-body a { color: var(--ocean-deep); font-weight: 600; text-decoration: underline; }
.post-cta {
  margin-top: var(--s7); text-align: center; padding: var(--s6);
  background: linear-gradient(135deg, var(--palm), var(--ocean));
  border-radius: var(--radius); color: #fff;
}
.post-cta h3 { color: #fff; } .post-cta p { color: rgba(255,255,255,.9); margin-bottom: var(--s4); }
.post-cta .guide-cta-btns { justify-content: center; }
.post-cta .book-btn { width: auto; padding: var(--s3) var(--s5); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(135deg, var(--ocean-darker), var(--ocean-deep));
  color: rgba(255,255,255,.8); text-align: center; padding: var(--s7) var(--s5);
  font-size: .9rem; margin-top: var(--s8);
}
footer a { color: var(--gold); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  nav { padding: var(--s3) var(--s4); }
  .nav-links { gap: var(--s3); }
  .nav-links a { font-size: .85rem; }
  main { padding: 0 var(--s4) var(--s7); }
  .hero { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}
