/* ==========================================================================
   CASA RELAX VAL CICHERO - DESIGN SYSTEM & STYLESHEET
   Location: San Colombano Certenoli, Liguria (Italy)
   ========================================================================== */

/* --- ROOT VARIABLES & COLOR PALETTE --- */
:root {
  /* Primary Theme Colors */
  --primary: #1e3d30;          /* Deep Forest Green */
  --primary-light: #2c5946;    /* Vibrant Forest Green */
  --primary-dark: #12261e;     /* Dark Evergreen */
  --accent: #d4a373;           /* Warm Terracotta / Sand Gold */
  --accent-hover: #bc8a5f;     /* Dark Sand Gold */
  --accent-light: #fefae0;     /* Cream Accent */
  
  /* Neutral Shades */
  --bg-main: #f9f8f3;          /* Warm Ivory / Off-White */
  --bg-card: #ffffff;          /* Pure White */
  --bg-alt: #f1f0e8;           /* Light Stone */
  --text-dark: #1c2520;        /* Deep Charcoal Green */
  --text-muted: #5c6b63;       /* Muted Sage Slate */
  --border-color: #e2e0d4;     /* Soft Stone Border */
  --border-focus: #2c5946;
  
  /* Status Colors */
  --success: #2e7d32;
  --danger: #c62828;
  --booked-bg: #ffebee;
  --booked-text: #c62828;
  --avail-bg: #e8f5e9;
  --avail-text: #2e7d32;

  /* Typography */
  --font-heading: 'Outfit', 'Playfair Display', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 61, 48, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 61, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 61, 48, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & GLOBAL BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAVIGATION BAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(249, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 224, 212, 0.6);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.mobile-toggle {
  display: none !important;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  position: relative;
  transition: var(--transition);
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-light);
}

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

.header-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--bg-card);
  border-color: var(--primary-light);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  min-width: 160px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
  display: flex;
}

.lang-option {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.lang-option.active {
  font-weight: 700;
  background: #e8f0ec;
  color: var(--primary);
}

/* RTL Support for Arabic */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-actions,
[dir="rtl"] .hero-badge-group,
[dir="rtl"] .highlights-list,
[dir="rtl"] .calendar-legend {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}


/* --- HERO SECTION --- */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: #e8f0ec;
  color: var(--primary);
}

.badge-tag.rating {
  background: #fff8e7;
  color: #b37b00;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-quick-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.spec-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.spec-value {
  font-weight: 700;
  font-size: 1.05rem;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--primary) !important;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: #f4f8f5;
  transform: translateY(-2px);
}

/* --- PHOTO GALLERY GRID --- */
.hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.gallery-main-img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}

.gallery-sub-img {
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.hero-gallery:hover .gallery-img {
  filter: brightness(0.95);
}

.gallery-img:hover {
  transform: scale(1.05);
  filter: brightness(1) !important;
}

.btn-view-all-photos {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 10;
}

.btn-view-all-photos:hover {
  background: #ffffff;
  transform: scale(1.03);
}

/* --- SECTION STYLING --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--primary-dark);
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- PROPERTY DESCRIPTION & HIGHLIGHTS --- */
.overview-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
}

.overview-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.overview-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.overview-card p {
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 16px;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin-top: 16px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: #e8f0ec;
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.highlight-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- BEDROOMS & LAYOUT --- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.room-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.room-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.room-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
}

.room-details {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- AMENITIES GRID --- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.amenity-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.amenity-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.amenity-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.amenity-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* --- BOOKING SIMULATOR & CALENDAR SECTION --- */
.booking-section {
  scroll-margin-top: 100px;
}

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

/* Calendar Card */
.calendar-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.calendar-nav-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background: var(--primary);
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.weekday-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 0;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  user-select: none;
  background: var(--bg-main);
  border: 1px solid transparent;
}

.cal-day:hover:not(.disabled):not(.booked) {
  background: #e2ede7;
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.cal-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
}

.cal-day.booked {
  background: var(--booked-bg);
  color: var(--booked-text);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}

.cal-day.selected-start, .cal-day.selected-end {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.cal-day.in-range {
  background: #dbece4 !important;
  color: var(--primary-dark) !important;
  border-radius: 0;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.available { background: var(--bg-main); border: 1px solid var(--border-color); }
.legend-dot.selected { background: var(--primary); }
.legend-dot.booked { background: var(--booked-text); }

/* Booking Widget Card */
.booking-widget {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-price-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.price-tag span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.form-field {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
}

.form-field:first-child {
  border-right: 1px solid var(--border-color);
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-field input, .form-field select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  width: 100%;
}

.form-field-full {
  grid-column: 1 / 3;
  border-top: 1px solid var(--border-color);
}

/* Price Breakdown Table */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.breakdown-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-top: 8px;
}

.booking-submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.booking-submit-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.booking-guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* --- LOCATION & MAP SECTION --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-container {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  z-index: 1;
}

.poi-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.poi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.poi-icon {
  font-size: 1.4rem;
  color: var(--primary);
}

.poi-info {
  flex-grow: 1;
}

.poi-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.poi-dist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.review-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-author {
  font-weight: 700;
  font-size: 1rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* --- FAQ ACCORDION --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* --- FOOTER --- */
.footer {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-citra-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- MODAL POPUPS (LIGHTBOX & RESERVATION CONFIRMATION) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Lightbox Modal for Gallery */
.lightbox-card {
  max-width: 900px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.lightbox-img {
  max-height: 80vh;
  border-radius: var(--radius-md);
  margin: 0 auto;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .booking-widget {
    position: static;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

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

  .mobile-toggle {
    display: block !important;
  }

  .hero-quick-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 10px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }

  .gallery-sub-img {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
