/* ===================================================================
   TAHITI LAGOON PARADISE — MAIN STYLESHEET (styles.css)
   ===================================================================
   This file controls how every page LOOKS (colors, fonts, spacing,
   layout). The HTML files only contain the content (text, images);
   they all link to this one file with <link rel="stylesheet" href="styles.css">
   so changing a color or a font here updates it everywhere at once.

   How to read this file:
   - Each block like ".tour-row{ ... }" is a "rule": it targets all
     HTML elements with class="tour-row" and applies the styles inside.
   - Lines starting with "----------" just separate sections into
     groups (header, footer, forms...), they don't affect anything.
   - "@media (max-width:900px){ ... }" means "only apply these rules
     when the screen is 900px wide or less" (phones/tablets).
   =================================================================== */

/* :root defines reusable "variables" for the whole site (colors, etc).
   Change a color here and it updates on every page automatically. */
:root{
  --lagoon:#0F5E56;
  --lagoon-deep:#0A3F3A;
  --sand:#EBDFC3;
  --driftwood:#6B4B3A;
  --coral:#E4643A;
  --gold:#DE9E4A;
  --ink:#1C2B27;
  --paper:#F6EFDD;
  --radius:6px;
}
/* Makes width/height calculations more predictable on every element */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; } /* smooth scroll when clicking anchor links */
body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:'Work Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{ font-family:'Fraunces', serif; margin:0; letter-spacing:-0.01em; }
a{ color:inherit; }
img{ max-width:100%; display:block; } /* images never overflow their container */

.eyebrow{
  font-family:'Space Mono', monospace;
  font-size:0.78rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--lagoon-deep);
}

/* ---------- HEADER / NAV ---------- */
header.site{
  padding:1.2rem 6vw;
  position:relative;
  z-index:20;
  background:var(--sand);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1200px;
  margin:0 auto;
  position:relative;
}
.logo{
  display:flex;
  align-items:center;
  gap:0.6rem;
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:1.05rem;
  color:var(--lagoon-deep);
  text-decoration:none;
  white-space:nowrap;
}
.logo svg{ width:28px; height:28px; flex-shrink:0; }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:0.4rem;
}
.menu-toggle svg{ width:26px; height:26px; }

nav.main-nav{
  display:flex;
  align-items:center;
  gap:1.5rem;
  flex-wrap:wrap;
  font-size:0.86rem;
}
nav.main-nav a{ text-decoration:none; color:var(--ink); }
nav.main-nav a:hover{ color:var(--coral); }
nav.main-nav a.current{ color:var(--coral); font-weight:600; }

.nav-dropdown{ position:relative; }
.nav-dropdown > span{ cursor:default; }
.dropdown-panel{
  display:none;
  position:absolute;
  top:130%;
  left:0;
  background:var(--paper);
  border-radius:var(--radius);
  box-shadow:0 12px 24px -12px rgba(0,0,0,0.35);
  padding:0.6rem 0;
  min-width:280px;
  z-index:30;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel{ display:block; }
.dropdown-panel a{
  display:block;
  padding:0.5rem 1rem;
  font-size:0.84rem;
  text-decoration:none;
  color:var(--ink);
}
.dropdown-panel a:hover{ background:var(--sand); color:var(--lagoon-deep); }

.nav-cta{
  background:var(--coral);
  color:var(--paper) !important;
  padding:0.5rem 1rem;
  border-radius:100px;
  font-weight:600;
}

/* On screens 900px or narrower (tablets/phones): show the hamburger
   button and turn the navigation into a dropdown menu instead of a
   horizontal row of links. */
@media (max-width:900px){
  .menu-toggle{ display:block; }
  nav.main-nav{
    display:none;
    flex-direction:column;
    align-items:flex-start;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--paper);
    padding:1rem 1.2rem;
    border-radius:var(--radius);
    box-shadow:0 12px 24px -12px rgba(0,0,0,0.35);
    gap:0.9rem;
  }
  nav.main-nav.open{ display:flex; }
  .dropdown-panel{ position:static; box-shadow:none; padding-left:0.8rem; }
  .nav-dropdown:hover .dropdown-panel{ display:none; }
  .nav-dropdown.open .dropdown-panel{ display:block; }
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero{
  background:var(--lagoon-deep);
  padding:3rem 6vw 3.5rem;
  color:var(--paper);
}
/* Used on pages that have a .hero-note box: pulls the eyebrow/title/text
   as close to the top as possible (roughly one line of text of breathing
   room), since the note box below now provides the visual weight. */
.page-hero.page-hero--tight{
  padding-top:1.5rem;
}
.page-hero-inner{ max-width:1200px; margin:0 auto; }
.page-hero h1{
  font-size:clamp(1.9rem, 3.4vw, 2.7rem);
  color:var(--paper);
  margin-top:0.5rem;
}
.page-hero .eyebrow{ color:var(--gold); }
.page-hero p{ max-width:60ch; color:#dcebe4; margin-top:0.8rem; line-height:1.6; }

/* Row layout used on secondary pages (Booking, Meeting Point, What's
   Included, Payment, FAQ...) to place the TripAdvisor badge to the
   right of the green hero text. */
.page-hero-row{
  display:flex;
  gap:1.5rem;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  max-width:1200px;
  margin:0 auto;
}
.page-hero-row .page-hero-inner{
  max-width:none;
  margin:0;
  flex:1 1 380px;
}
.page-hero-tripadvisor{
  flex:0 0 auto;
  background:var(--paper);
  border-radius:var(--radius);
  padding:0.7rem 1.1rem;
  box-shadow:0 10px 24px -16px rgba(0,0,0,0.35);
}
@media (max-width:700px){
  .page-hero-tripadvisor{ margin-top:0.3rem; }
}

/* Light-green note box placed at the bottom-left of a dark green
   hero section (same idea as .catalog-note on the homepage, adapted
   to sit on the dark --lagoon-deep background). */
.hero-note-wrap{
  max-width:1200px;
  margin:1.5rem auto 0;
}
.hero-note{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(235,223,195,0.25);
  border-radius:var(--radius);
  padding:1.1rem 1.4rem;
  color:#dcebe4;
  font-size:0.88rem;
  line-height:1.6;
  max-width:560px;
}
.hero-note h3{ color:var(--paper); font-size:1rem; margin:0 0 0.6rem; }
.hero-note p{ color:#dcebe4; margin:0 0 0.6rem; }
.hero-note p:last-child{ margin-bottom:0; }
.hero-note ul{ margin:0; padding-left:1.2rem; }
.hero-note li{ margin-bottom:0.35rem; }
.hero-note li:last-child{ margin-bottom:0; }
.hero-note strong{ color:var(--gold); }
.hero-note a.inline{ color:var(--gold); border-bottom-color:var(--gold); }

/* ---------- GENERIC CONTENT ---------- */
main{ max-width:1000px; margin:0 auto; padding:3.5rem 6vw; }
main.wide{ max-width:1200px; }
main h2{ font-size:1.6rem; color:var(--lagoon-deep); margin-bottom:1rem; }
main h3{ font-size:1.15rem; color:var(--lagoon-deep); margin-bottom:0.5rem; }
main p{ line-height:1.65; margin:0 0 1rem; }
main ul{ line-height:1.7; padding-left:1.2rem; }
main a.inline{ color:var(--coral); font-weight:600; text-decoration:none; border-bottom:2px solid var(--coral); }

.card{
  background:var(--paper);
  border-radius:var(--radius);
  padding:1.6rem 1.8rem;
  box-shadow:0 10px 24px -16px rgba(0,0,0,0.35);
  margin-bottom:1.6rem;
}

.badge{
  font-family:'Space Mono', monospace;
  font-size:0.68rem;
  padding:3px 8px;
  border-radius:100px;
  border:1px solid #d8c9a3;
  color:var(--driftwood);
  display:inline-block;
}

.btn-primary{
  background:var(--lagoon);
  color:var(--paper);
  padding:0.85rem 1.6rem;
  border-radius:100px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  display:inline-block;
  border:none;
  cursor:pointer;
  transition:transform .25s ease, background .25s ease;
}
.btn-primary:hover{ transform:translateY(-2px); background:var(--lagoon-deep); }

/* ---------- TOUR LIST (home) ---------- */
.tour-list{ display:flex; flex-direction:column; gap:1.4rem; }
.tour-row{
  background:var(--paper);
  border-radius:var(--radius);
  display:grid;
  grid-template-columns:170px 1fr auto;
  gap:1.6rem;
  align-items:center;
  padding:1.2rem 1.5rem;
  box-shadow:0 10px 24px -16px rgba(0,0,0,0.5);
  transition:transform .25s ease, box-shadow .25s ease;
  text-decoration:none;
  color:var(--ink);
}
.tour-row:hover{ transform:translateY(-3px); box-shadow:0 16px 28px -16px rgba(0,0,0,0.55); }
@media (max-width:800px){ .tour-row{ grid-template-columns:1fr; text-align:left; } }

.tour-visual{
  background:var(--sand);
  border-radius:4px;
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.tour-visual svg{ width:56px; height:56px; }
.tour-visual img{ width:100%; height:100%; object-fit:cover; border-radius:4px; }
.tour-num{
  position:absolute; top:8px; left:8px;
  font-family:'Space Mono', monospace;
  font-size:0.62rem; color:var(--driftwood);
  background:rgba(246,239,221,0.75);
  padding:1px 5px; border-radius:3px;
}
.tour-private{
  position:absolute; bottom:8px; right:8px;
  font-family:'Space Mono', monospace;
  font-size:0.6rem; letter-spacing:0.04em;
  color:var(--lagoon-deep); background:var(--gold);
  padding:2px 6px; border-radius:3px; text-transform:uppercase;
}
.tour-info h3{ font-size:1.15rem; margin-bottom:0.35rem; }
.tour-info .desc{ font-size:0.87rem; line-height:1.5; color:#4b5b55; max-width:56ch; }
.tour-info .meta{ display:flex; gap:0.5rem; margin-top:0.55rem; flex-wrap:wrap; }
.tour-price{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:0.4rem; min-width:150px; }
@media (max-width:800px){ .tour-price{ align-items:flex-start; text-align:left; } }
.tour-price .price{ font-family:'Fraunces', serif; font-weight:600; color:var(--coral); font-size:1.2rem; }
.tour-price .per{ font-family:'Work Sans'; font-weight:400; font-size:0.72rem; color:#7a8a83; }
.tour-price .min{ font-size:0.7rem; color:#7a8a83; font-family:'Space Mono', monospace; }
.tour-price .book{ font-size:0.78rem; font-weight:600; color:var(--lagoon-deep); border-bottom:2px solid var(--coral); padding-bottom:1px; }

.catalog-note{
  background:rgba(15,94,86,0.08);
  border:1px solid rgba(15,94,86,0.25);
  border-radius:var(--radius);
  padding:1.1rem 1.4rem;
  color:var(--lagoon-deep);
  font-size:0.88rem;
  line-height:1.6;
  margin-bottom:2rem;
}
.catalog-note strong{ color:var(--coral); }

/* ---------- BOOKING FORM ---------- */
form.booking{
  background:var(--paper);
  border-radius:var(--radius);
  padding:1.8rem;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  box-shadow:0 10px 24px -16px rgba(0,0,0,0.35);
}
@media (max-width:700px){ form.booking{ grid-template-columns:1fr; } }
form.booking .full{ grid-column:1 / -1; }
form.booking label{
  display:flex; flex-direction:column; gap:0.4rem;
  font-size:0.85rem; font-weight:600; color:var(--lagoon-deep);
}
form.booking input, form.booking select, form.booking textarea{
  font-family:'Work Sans', sans-serif;
  font-size:0.92rem;
  padding:0.6rem 0.7rem;
  border-radius:4px;
  border:1px solid #d8c9a3;
  background:var(--sand);
  color:var(--ink);
}
form.booking textarea{ resize:vertical; min-height:90px; }

/* All form labels get "position:relative" so that IF one of them
   contains the calendar popup (which is "position:absolute"), the
   popup appears right below that specific field. */
form.booking label{ position:relative; }
.date-input{ cursor:pointer; }

/* ---------- CUSTOM DATE PICKER (see script.js) ---------- */
.date-picker-popup{
  position:absolute;
  top:100%;
  left:0;
  margin-top:4px;
  z-index:50;
  background:var(--paper);
  border:1px solid #d8c9a3;
  border-radius:6px;
  box-shadow:0 12px 24px -12px rgba(0,0,0,0.35);
  padding:0.7rem;
  width:250px;
}
.date-picker-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:0.5rem;
}
.date-picker-label{
  font-family:'Space Mono', monospace;
  font-weight:700;
  font-size:0.8rem;
  color:var(--lagoon-deep);
}
.date-picker-nav{
  background:none;
  border:none;
  cursor:pointer;
  font-size:1.2rem;
  line-height:1;
  color:var(--coral);
  padding:0.2rem 0.5rem;
  border-radius:4px;
}
.date-picker-nav:hover{ background:var(--sand); }
.date-picker-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:2px;
  text-align:center;
}
.date-picker-daylabel{
  font-size:0.65rem;
  color:var(--driftwood);
  padding:3px 0;
  font-family:'Space Mono', monospace;
}
.date-picker-day{
  background:none;
  border:none;
  padding:6px 0;
  font-size:0.8rem;
  font-family:'Work Sans', sans-serif;
  border-radius:4px;
  cursor:pointer;
  color:var(--ink);
}
.date-picker-day:hover:not(.disabled){ background:var(--sand); }
.date-picker-day.disabled{ color:#c9bfa4; cursor:not-allowed; }
form.booking .form-foot{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem;
  margin-top:0.4rem;
}
form.booking .form-note{ font-size:0.78rem; color:#7a8a83; max-width:40ch; }

/* ---------- FOOTER ---------- */
footer.site{
  background:var(--lagoon-deep);
  color:#dcebe4;
  padding:3rem 6vw 2rem;
}
.footer-grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:2rem;
}
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{
  font-family:'Space Mono', monospace;
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:0.8rem;
}
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.5rem; font-size:0.88rem; }
.footer-grid ul a{ text-decoration:none; color:#dcebe4; }
.footer-grid ul a:hover{ color:var(--gold); }
.footer-fine{
  max-width:1200px; margin:2.2rem auto 0;
  border-top:1px solid rgba(220,235,228,0.15);
  padding-top:1.2rem;
  font-size:0.78rem; color:#9fb6ac;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.5rem;
}

:focus-visible{ outline:3px solid var(--coral); outline-offset:2px; }

/* ---------- TOUR PHOTO SLIDESHOW ---------- */
/* Row that holds the slideshow on the left and the TripAdvisor badge
   on the right. Wraps to a single column on narrow screens. */
.tour-media-row{
  display:flex;
  gap:1.5rem;
  align-items:stretch;
  flex-wrap:wrap;
  margin-bottom:1.8rem;
}
.tour-slideshow{
  flex:2 1 380px;
  min-width:280px;
}
.tour-tripadvisor{
  flex:1 1 220px;
  min-width:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--paper);
  border-radius:var(--radius);
  box-shadow:0 10px 24px -16px rgba(0,0,0,0.35);
  padding:0.8rem;
}
.slideshow-viewport{
  position:relative;
  width:100%;
  height:280px;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--lagoon-deep);
  box-shadow:0 12px 24px -16px rgba(0,0,0,0.35);
}
.slideshow-viewport img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:opacity 0.2s ease;
}
.slide-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:rgba(10,63,58,0.55);
  color:#fff;
  font-size:1.2rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s;
}
.slide-arrow:hover{ background:rgba(10,63,58,0.85); }
.slide-prev{ left:10px; }
.slide-next{ right:10px; }
.slide-counter{
  position:absolute;
  bottom:10px;
  right:12px;
  background:rgba(10,63,58,0.6);
  color:#fff;
  font-family:'Space Mono', monospace;
  font-size:0.72rem;
  padding:2px 8px;
  border-radius:10px;
}
@media (max-width:700px){
  .slideshow-viewport{ height:220px; }
}
