/* ══════════════════════════════════════════════════════════════
   See The Sea – Vacation Rental Website
   style.css – Mobile-first responsive CSS
   ══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sea: #1a4a6b;
  --sea-light: #2e7aad;
  --sand: #e8d9c0;
  --sand-light: #f5efe4;
  --white: #fafaf8;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --gold: #c9953a;
  --gold-light: #e8b86d;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(26, 74, 107, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 5%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-logo {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
}
.nav-logo span { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: white;
  border: none;
  padding: 10px 18px;
  font-family: 'Heebo', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,20,40,0.3) 0%, rgba(0,20,40,0.72) 100%);
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Animated sea waves */
.wave-container {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  z-index: 1;
  overflow: hidden;
}
.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 80px;
  background: rgba(255,255,255,0.06);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  animation: waveAnim 8s ease-in-out infinite;
}
.wave:nth-child(2) {
  background: rgba(255,255,255,0.04);
  animation: waveAnim 11s ease-in-out infinite reverse;
  height: 60px;
}
.wave:nth-child(3) {
  background: rgba(255,255,255,0.03);
  animation: waveAnim 14s ease-in-out infinite;
  height: 50px;
}

/* Stars/particles */
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5% 60px;
  color: white;
  animation: fadeUp 1.2s ease both;
}
.hero-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(232,184,109,0.4);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  animation: fadeUp 1.2s 0.1s ease both;
}
.hero h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  animation: fadeUp 1.2s 0.2s ease both;
}
.hero-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.6;
  animation: fadeUp 1.2s 0.35s ease both;
}
.hero-badges {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
  animation: fadeUp 1.2s 0.5s ease both;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
.badge-icon { font-size: 1rem; }
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── SECTIONS (shared) ─── */
section { padding: 60px 5%; }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea-light);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
}
.section-body-extra {
  margin-top: 14px;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-image-stack {
  position: relative;
  height: 280px;
  display: none;
}
.img-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.img-card-main {
  width: 75%;
  height: 340px;
  bottom: 0; right: 0;
}
.img-card-small {
  width: 48%;
  height: 210px;
  top: 0; left: 0;
  z-index: 2;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.distance-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--gold);
  color: white;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(201,149,58,0.4);
  line-height: 1.4;
}
.distance-badge strong {
  font-size: 1.4rem;
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sea);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── GALLERY ─── */
.gallery-section {
  padding-top: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 8px;
  max-width: 1100px;
  margin: 30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item {
  overflow: hidden;
  transition: opacity 0.2s;
  cursor: pointer;
  height: 140px;
}
.gallery-item:hover { opacity: 0.88; }
.gallery-item:first-child {
  grid-column: 1 / -1;
  height: 200px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── AMENITIES ─── */
.amenities-section { background: var(--sand-light); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
  max-width: 1000px;
}
.amenity-card {
  background: white;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.amenity-icon { font-size: 1.6rem; margin-bottom: 8px; }
.amenity-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }

/* ─── LOCATION ─── */
.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.map-placeholder {
  background: linear-gradient(135deg, #d4e8f4, #b8d9ee);
  border-radius: var(--radius);
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 3rem;
  border: 2px solid rgba(26,74,107,0.1);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.map-placeholder:hover { box-shadow: 0 8px 24px rgba(26,74,107,0.15); }
.map-placeholder p { font-size: 0.9rem; color: var(--sea); font-weight: 500; }
.map-hint {
  font-size: 0.75rem;
  color: var(--sea-light);
}
.nearby-list {
  list-style: none;
  margin-top: 20px;
}
.nearby-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nearby-list li:last-child { border-bottom: none; }
.nearby-icon { font-size: 1.1rem; width: 28px; text-align: center; }
.nearby-dist { margin-inline-start: auto; color: var(--sea-light); font-weight: 500; font-size: 0.82rem; }

/* ─── REVIEWS ─── */
.reviews-section { background: var(--sand-light); }
.review-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.review-rating-number {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--sea);
}
.stars-display { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.review-stars-inline {
  margin-inline-start: auto;
  font-size: 0.85rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
  max-width: 1100px;
}
.review-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 500; font-size: 0.9rem; }
.reviewer-date { font-size: 0.78rem; color: var(--text-muted); }
.review-text { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }

/* ─── BOOKING FORM ─── */
.booking-section { background: var(--sea); }
.booking-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.booking-wrap .section-label { color: var(--gold-light); }
.booking-wrap .section-title { color: white; }
.booking-wrap .section-body { color: rgba(255,255,255,0.65); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: white;
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  direction: rtl;
  min-height: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: var(--sea); color: white; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.price-summary {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  grid-column: 1 / -1;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
}
.price-row.total {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}
.submit-btn {
  grid-column: 1 / -1;
  background: var(--gold);
  color: white;
  border: none;
  padding: 16px 32px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(201,149,58,0.35);
  min-height: 48px;
}
.submit-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,149,58,0.45);
}
.submit-btn:active { transform: translateY(0); }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: -4px;
}
.success-msg {
  display: none;
  grid-column: 1 / -1;
  background: rgba(201,149,58,0.15);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--gold-light);
  font-size: 1rem;
}

/* ─── FOOTER ─── */
footer {
  background: #0d2031;
  color: rgba(255,255,255,0.5);
  padding: 40px 5%;
  text-align: center;
  font-size: 0.85rem;
}
footer strong { color: rgba(255,255,255,0.85); font-family: 'Frank Ruhl Libre', serif; }
.footer-contact {
  margin-top: 6px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  padding: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copyright {
  margin-top: 16px;
  font-size: 0.72rem;
}

/* ─── ANIMATIONS ─── */
@keyframes waveAnim {
  0%, 100% { transform: translateX(-25%) scaleY(1); }
  50% { transform: translateX(-5%) scaleY(1.15); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--op, 0.6); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* Scroll reveal initial state */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (min-width: 768px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  nav {
    padding: 18px 5%;
  }
  nav.scrolled {
    padding: 14px 5%;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .nav-cta {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 600px;
  }
  .hero-content {
    padding: 0 5% 70px;
  }
  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    padding: 6px 14px;
    margin-bottom: 20px;
  }
  .hero-badges {
    gap: 20px;
    margin-top: 24px;
  }
  .badge {
    font-size: 0.82rem;
    gap: 8px;
  }
  .wave-container {
    height: 160px;
  }
  .wave { height: 100px; }
  .wave:nth-child(2) { height: 75px; }
  .wave:nth-child(3) { height: 60px; }

  section { padding: 80px 5%; }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .about-image-stack {
    display: block;
    height: 380px;
  }
  .stats-row {
    gap: 28px;
    margin-top: 32px;
  }
  .stat-number {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-top: 40px;
  }
  .gallery-item {
    height: auto;
  }
  .gallery-item:first-child {
    grid-row: 1 / 3;
    grid-column: auto;
    height: auto;
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
  }
  .amenity-card {
    padding: 24px 20px;
  }
  .amenity-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .amenity-name { font-size: 0.9rem; }

  .location-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .map-placeholder {
    height: 300px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-group.full,
  .price-summary,
  .submit-btn,
  .form-note,
  .success-msg {
    grid-column: 1 / -1;
  }

  .scroll-hint {
    bottom: 28px;
    font-size: 0.7rem;
  }
  .scroll-arrow {
    height: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – DESKTOP (min-width: 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  nav {
    padding: 20px 5%;
  }
  .nav-logo {
    font-size: 1.3rem;
  }

  .hero-content {
    padding: 0 5% 80px;
  }
  .hero-badges {
    gap: 24px;
    margin-top: 28px;
  }
  .badge {
    font-size: 0.85rem;
  }
  .wave-container { height: 180px; }
  .wave { height: 120px; }
  .wave:nth-child(2) { height: 90px; }
  .wave:nth-child(3) { height: 70px; }

  .about-grid {
    gap: 60px;
  }
  .about-image-stack {
    height: 440px;
  }

  .gallery-grid {
    grid-template-rows: 240px 240px;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .location-content {
    gap: 60px;
  }
  .map-placeholder {
    height: 320px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-links {
    gap: 24px;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – LARGE DESKTOP GUARD (max-width: 1400px container)
   ══════════════════════════════════════════════════════════════ */
.about-grid,
.gallery-grid,
.amenities-grid,
.location-content,
.reviews-grid,
.booking-wrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
