/* =============================================
   AITHALI HOME LIMNOS — Custom Styles
   Palette: Aegean #1E4D5C | Sand #D9C19B | Cream #F6F4EF
   ============================================= */

/* ─── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* ─── Typography ────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #D9C19B;
}
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #1E4D5C;
  line-height: 1.15;
  margin-top: 0.5rem;
}
.section-heading-white {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-top: 0.5rem;
}
.sand-line {
  display: block;
  width: 48px;
  height: 2px;
  background: #D9C19B;
  margin-top: 1.25rem;
}
.text-shadow    { text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.text-shadow-sm { text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.star-filled    { color: #D9C19B; }

/* ─── Layout ────────────────────────────────────────────────── */
.section-wrap  { padding: 5rem 1.5rem; }
.section-inner { max-width: 82rem; margin: 0 auto; }
@media (min-width: 1024px) { .section-wrap { padding: 7rem 3rem; } }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background: #1E4D5C; color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { background: #2a6a7e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,77,92,0.28); }

.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2.5rem; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.9); transform: translateY(-2px); }

.btn-outline-ocean {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2.5rem; background: transparent; color: #1E4D5C;
  border: 1px solid #1E4D5C;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn-outline-ocean:hover { background: #1E4D5C; color: #fff; transform: translateY(-2px); }

/* ─── Navbar ────────────────────────────────────────────────── */
#navbar { transition: background 0.35s, box-shadow 0.35s, padding 0.35s; }
#navbar.scrolled {
  background: #fff;
  box-shadow: 0 1px 24px rgba(30,77,92,0.09);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo: white filter on dark hero, natural on scrolled white */
.nav-logo img { filter: brightness(0) invert(1); transition: filter 0.35s; }
#navbar.scrolled .nav-logo img { filter: none; }

/* Nav links */
.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); text-decoration: none;
  position: relative; padding-bottom: 2px;
  transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: #D9C19B;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
#navbar.scrolled .nav-link { color: rgba(30,77,92,0.65); }
#navbar.scrolled .nav-link:hover { color: #1E4D5C; }

/* Nav CTA */
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 0.5625rem 1.5rem; background: #1E4D5C; color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background 0.25s;
}
.nav-cta:hover { background: #2a6a7e; }

/* Language switcher button */
.lang-switcher-btn {
  background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.25s, color 0.25s;
}
.lang-switcher-btn:hover { border-color: rgba(255,255,255,0.9); color: #fff; }
#navbar.scrolled .lang-switcher-btn { border-color: rgba(30,77,92,0.35); color: rgba(30,77,92,0.65); }
#navbar.scrolled .lang-switcher-btn:hover { border-color: #1E4D5C; color: #1E4D5C; }

/* Mobile menu icon */
.mobile-menu-icon svg { color: #fff; transition: color 0.25s; }
#navbar.scrolled .mobile-menu-icon svg { color: #1E4D5C; }

/* Mobile menu overlay */
#mobile-menu { display: none; opacity: 0; transition: opacity 0.3s; }
#mobile-menu.open { display: flex; opacity: 1; }
#mobile-menu a { text-decoration: none; transition: color 0.25s; }
#mobile-menu a:hover { color: #D9C19B; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background-image: url("../images/Aithali/IMG_2470.f136054e7e87.jpeg");
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,35,43,0.35) 0%, rgba(12,35,43,0.55) 50%, rgba(12,35,43,0.75) 100%);
}

/* ─── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: #e8e4de;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.hidden { display: none; }

/* Gallery filter */
.active-filter   { background: #1E4D5C; color: #fff; border-color: #1E4D5C; }
.inactive-filter { background: transparent; color: #6b7280; border-color: transparent; }

/* ─── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 90000;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

/* ─── Swiper Reviews ────────────────────────────────────────── */
.swiper-review { padding-bottom: 2.5rem; }
.swiper-review .swiper-slide { height: auto; }
.swiper-review .swiper-pagination-bullet { background: rgba(255,255,255,0.3); opacity: 1; }
.swiper-review .swiper-pagination-bullet-active { background: #D9C19B; }

/* ─── Amenities ─────────────────────────────────────────────── */
.amenity-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.75rem 1.25rem; background: #fff;
  border-bottom: 2px solid #D9C19B; text-align: center;
  transition: box-shadow 0.3s;
}
.amenity-card:hover { box-shadow: 0 4px 24px rgba(30,77,92,0.1); }

/* ─── Distance list ─────────────────────────────────────────── */
.distance-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid #f0ede8;
}
.distance-item:last-child { border-bottom: none; }

/* ─── Space modals ──────────────────────────────────────────── */
.room-modal {
  position: fixed; inset: 0; z-index: 60000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.room-modal.active { display: flex; }

.room-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7); cursor: pointer;
}
.room-modal-content {
  position: relative; background: #fff;
  width: 100%; max-width: 900px; max-height: 90vh;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.room-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid #f0ede8;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.room-modal-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .room-modal-body { grid-template-columns: 1fr 1fr; } }

.room-modal-photos {
  position: relative; min-height: 260px;
  background: #e8e4de; overflow: hidden;
}
@media (min-width: 640px) { .room-modal-photos { min-height: 400px; } }

.room-modal-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.4s;
}
.room-modal-photo.active { opacity: 1; }

.room-modal-prev,
.room-modal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  padding: 0.5rem; cursor: pointer; z-index: 2;
  backdrop-filter: blur(4px); transition: background 0.2s;
}
.room-modal-prev:hover,
.room-modal-next:hover { background: rgba(255,255,255,0.35); }
.room-modal-prev { left: 0.5rem; }
.room-modal-next { right: 0.5rem; }

.room-modal-counter {
  position: absolute; bottom: 0.75rem; right: 1rem;
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.6875rem;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.4); padding: 0.2rem 0.5rem;
  backdrop-filter: blur(4px);
}
.room-modal-details { padding: 1.5rem; overflow-y: auto; }

.modal-amenity {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: #6b7280;
}
.modal-amenity::before { content: '✓'; color: #D9C19B; font-weight: 700; flex-shrink: 0; }

/* ─── Floating book CTA (mobile) ────────────────────────────── */
.floating-cta { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 40; display: none; white-space: nowrap; }
@media (max-width: 1023px) { .floating-cta { display: block; } }

/* ─── Motion preference ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-section, .reviews-section, #story, .booking-section { background-attachment: scroll !important; }
}
