:root {
  --sand: #f6f1e7;
  --sea-dark: #0b3d4c;
  --sea: #136a82;
  --sea-light: #4fa9bd;
  --accent: #d98b4a;
  --text: #1f2a2e;
  --muted: #5c6b6f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 76, 0.12);
  font-size: 16px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--sea-dark);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
ul { list-style: none; }

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 139, 74, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 139, 74, 0.45);
}

/* Header / Nav */
.site-header { position: relative; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(11, 61, 76, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.9rem 5%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: height 0.3s ease, width 0.3s ease;
}
.navbar.scrolled .logo-img {
  height: 44px;
  width: 44px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--accent);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11,61,76,0.55), rgba(11,61,76,0.35)),
    url('assets/img/hero-poster.jpg') center/cover no-repeat;
  will-change: transform;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(11,61,76,0.15); }
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  animation: heroIn 1s ease 0.1s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 0.6rem;
}
.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  background: var(--sea-dark);
  color: var(--white);
  padding: 2.2rem 5%;
}
.strip-item {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}
.strip-item span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  opacity: 1;
}

/* Sections */
.section { padding: 5rem 5%; }
.section-inner { max-width: 1140px; margin: 0 auto; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.center { text-align: center; }
.kicker.center { margin-bottom: 0.5rem; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col.reverse .col-text { order: 2; }
.col-text p { color: var(--muted); margin-bottom: 1rem; }

.about { background: var(--sand); }

/* Photo rotator — crossfades between however many <img> children it has */
.photo-rotator {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.photo-rotator img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .photo-rotator img { transition: none; }
}

/* Amenities */
.amenities {
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.88), rgba(246, 241, 231, 0.88)),
    url('assets/img/card-pattern.jpg');
  background-size: auto, 480px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-top: 2.5rem;
}
.amenity-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  padding: 1.7rem 1.3rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(11, 61, 76, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity-icon {
  width: 26px;
  height: 26px;
  stroke: var(--sea-dark);
  fill: none;
  stroke-width: 1.6;
  margin: 0 auto 0.9rem;
}
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.amenity-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  .amenities { background-size: auto, 320px auto; }
}

/* Rooms */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.room-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(11, 61, 76, 0.18); }
.room-card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.room-card:hover .room-card-img { transform: scale(1.05); }
.room-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.room-card-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.room-card-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.room-card-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Room detail page hero */
.room-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,61,76,0.55), rgba(11,61,76,0.4));
}
.room-hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}
.room-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* Room quick facts */
.room-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.room-fact { text-align: center; font-size: 0.9rem; color: var(--muted); }
.room-fact span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--sea-dark);
}
.room-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
}
.room-note {
  max-width: 720px;
  margin: 0.8rem auto 0;
  color: var(--accent);
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
}

/* Room CTA */
.room-cta { background: var(--sea-dark); }
.room-cta h2 { color: var(--white); margin-bottom: 1.4rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--sand);
  transition: transform 0.5s ease;
  cursor: zoom-in;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Gallery card that cycles through multiple photos (e.g. Bedroom: one per room) */
.gallery-item .photo-rotator {
  aspect-ratio: 4/3;
  border-radius: 0;
  box-shadow: none;
}
.gallery-item .photo-rotator img {
  cursor: zoom-in;
  pointer-events: none;
  transition: opacity 1.4s ease, transform 0.5s ease;
}
.gallery-item .photo-rotator img.active { pointer-events: auto; }
.gallery-item .rotator-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 61, 76, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item .photo-rotator img { transition: none; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(11, 61, 76, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
body.lightbox-lock { overflow: hidden; }

.location { background: var(--sand); }
.checklist li {
  color: var(--muted);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact */
.contact-sub { color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; }
.inquiry-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--sand);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group { flex: 1; margin-bottom: 1.2rem; }
.form-row .form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--sea-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sea-light);
}
.inquiry-form .btn { width: 100%; margin-top: 0.5rem; }
.form-note { margin-top: 1rem; text-align: center; font-size: 0.9rem; color: var(--sea); }

/* Footer */
.site-footer {
  background: var(--sea-dark);
  color: var(--white);
  padding: 3rem 5% 2rem;
  text-align: center;
}
.footer-logo-img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 0.8rem;
}
.footer-inner p { opacity: 0.85; font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-copy { opacity: 0.6; margin-top: 1rem; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-text { order: 0; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.amenities-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.amenities-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.amenities-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.amenities-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.amenities-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.amenities-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.amenities-grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.strip-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.strip-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.strip-item.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
  .hero-video { display: none; }
  .lightbox-overlay { transition: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 5%;
    flex-direction: column;
    background: var(--sea-dark);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .form-row { flex-direction: column; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-close { width: 36px; height: 36px; font-size: 1.4rem; top: 1rem; right: 1rem; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lofi-player { right: 0.75rem; bottom: 0.75rem; padding: 0.4rem; gap: 0; }
  .lofi-info, .lofi-volume { display: none; }
}

/* Lofi background music player */
.lofi-player {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: var(--sea-dark);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.lofi-player-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}
.lofi-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--sea-light);
  color: var(--sea-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lofi-toggle:hover { background: #fff; }
.lofi-toggle:disabled { background: var(--muted); cursor: not-allowed; opacity: 0.6; }
.lofi-toggle svg { display: block; }
.lofi-icon-play { margin-left: 2px; }
.lofi-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}
.lofi-label { font-size: 0.8rem; font-weight: 600; }
.lofi-sub { font-size: 0.68rem; opacity: 0.75; }
.lofi-volume {
  width: 70px;
  accent-color: var(--sea-light);
  cursor: pointer;
}
