/* Maui Escape — Tropical theme CSS
   Palette inspired by Wailana Sands photo: palms, bougainvillea, coral blooms, teal sign, sand, and sky.
   Drop this file alongside your HTML and replace the inline <style> with:
     <link rel="stylesheet" href="tropical.css">
*/

:root {
  /* Core tropical palette (existing variable names preserved for compatibility) */
  --reef: #2dbdc1; /* teal sign / lagoon */
  --sea: #12a1a3; /* deeper sea green */
  --coral: #ff6b6b; /* hibiscus/coral accent */
  --sand: #f3e7d9; /* warm beach sand */
  --palm: #2b7a4b; /* palm frond green */
  --ink: #142425; /* deep ink for text */
  --muted: #5b6a6c; /* muted text */

  /* Extended accents derived from flowers/sky */
  --bougainvillea: #f23ea2; /* magenta bloom */
  --plumeria: #ffd8a8; /* soft blossom/peach */
  --sky: #64b5ff; /* Maui sky */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --maxw: 1100px;
}

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font:
    16px/1.6 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a.btn {
  color: var(--reef);
  text-decoration: none;
}
.content a {
  color: var(--coral);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  position: relative;
  overflow: hidden;
}
.content {
  background: linear-gradient(180deg, #fff 0, var(--reef) 125%);
}
.container {
  max-width: var(--maxw);
  margin: auto;
  padding: clamp(16px, 3vw, 28px);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  background: var(--palm);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.825rem;
  letter-spacing: 0.3px;
}

h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--palm);
}
.sub {
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}

/* Buttons */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn.primary {
  background: linear-gradient(
    180deg,
    var(--reef),
    color-mix(in oklab, var(--sea) 85%, var(--reef))
  );
  color: #fff;
}
.btn.primary:hover {
  filter: saturate(1.05) brightness(1.02);
}
.btn.secondary {
  background: #fff;
  color: var(--reef);
  border-color: rgba(0, 0, 0, 0.1);
}
.btn.secondary:hover {
  border-color: color-mix(in oklab, var(--reef) 30%, rgba(0, 0, 0, 0.1));
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.track::-webkit-scrollbar {
  height: 8px;
}
.track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.slide {
  min-width: 100%;
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 16/10;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.3rem;
  pointer-events: none;
}
.controls button {
  pointer-events: auto;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(120%) blur(2px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

/* Quick facts & amenities */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
.fact {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  ul {
    padding: 0;
    li {
      list-style-type: none;
    }
  }
}

section {
  padding: 10px 0;
}
.section-title {
  font-size: 1.25rem;
  color: var(--palm);
  margin: 0.5rem 0 0.25rem;
}
.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 700px) {
  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.chip {
  background: linear-gradient(
    180deg,
    #fff,
    color-mix(in oklab, var(--plumeria) 25%, #fff)
  );
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

footer {
  margin-top: 34px;
  background: #fff;
}
.small {
  color: var(--muted);
  font-size: 0.9rem;
}
.insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Optional festive accents (use sparingly) */
.badge,
.btn.primary {
  box-shadow: 0 6px 16px
    color-mix(in oklab, var(--reef) 25%, rgba(0, 0, 0, 0.15));
}

/* Accessibility helpers */
@media (prefers-reduced-motion: reduce) {
  .track {
    scroll-behavior: auto;
  }
  .btn.primary:hover {
    filter: none;
  }
}

/* Image lightbox modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  z-index: 1000;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal__img {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #000;
  object-fit: contain;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.modal__close svg {
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .modal {
    transition: none;
  }
}
