/* ============================================
   Lotus Beach Cottage - Design System & Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #2B7A9E;
  --color-primary-dark: #1E5A75;
  --color-secondary: #E8C87A;
  --color-accent: #D4763C;
  --color-bg: #FDF6EC;
  --color-bg-alt: #F0E6D3;
  --color-text: #2C3E50;
  --color-text-light: #5D6D7E;
  --color-white: #FFFFFF;
  --color-dark: #1A1A2E;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;

  --max-width: 1200px;
  --section-padding: 80px 24px;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 36px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 15px rgba(212, 118, 60, 0.4);
}

.hero-cta:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* --- About --- */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 8px;
  font-weight: 500;
}

.highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

/* --- Amenities --- */
.amenities {
  background: var(--color-white);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.amenity-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.amenity-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.amenity-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-highlights h3 {
  margin-bottom: 24px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.location-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.location-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4px;
}

.location-item p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Reviews --- */
.reviews {
  background: var(--color-white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-stars {
  color: var(--color-secondary);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.review-author {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
  margin-top: auto;
}

.review-name {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.review-date {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* --- Booking --- */
.booking {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
}

.booking .section-title h2 {
  color: var(--color-white);
}

.booking .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.booking-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.booking-calendar,
.booking-pricing {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.booking-calendar iframe {
  width: 100%;
  min-height: 442px;
  border: none;
}

.booking-pricing iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

.booking-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 30px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--color-secondary);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 16px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .about-grid,
  .location-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .amenity-card {
    padding: 20px 12px;
  }
}
