/* ============================================
   NORDIC & SOL STAYS - Design System
   Premium Accommodation Website
   ============================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Colors */
  --color-primary: #1e3a8a;
  --color-primary-dark: #1e40af;
  --color-primary-light: #3b82f6;
  --color-accent: #d4a853;
  --color-accent-light: #e5c07b;

  --color-bg-cream: #f5f0e8;
  --color-bg-light: #faf8f5;
  --color-bg-white: #ffffff;
  --color-bg-dark: #1f2937;

  --color-text-dark: #1f2937;
  --color-text-medium: #4b5563;
  --color-text-light: #9ca3af;
  --color-text-white: #ffffff;

  --color-border: #e5e7eb;
  --color-card-shadow: rgba(0, 0, 0, 0.05);

  /* Theme variables (defaults for light) */
  --theme-bg: var(--color-bg-cream);
  --theme-surface: var(--color-bg-white);
  --theme-text: var(--color-text-dark);
  --theme-text-muted: var(--color-text-medium);
  --theme-border: var(--color-border);
  --theme-shadow: var(--shadow-md);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

[data-theme="dark"] {
  --theme-bg: #111827;
  --theme-surface: #1f2937;
  --theme-text: #f9fafb;
  --theme-text-muted: #9ca3af;
  --theme-border: #374151;
  --theme-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  
  --color-accent: #e5c07b;
  --color-primary: #3b82f6;
  --color-bg-cream: #111827;
  --color-bg-light: #1f2937;
}

/* ---------- Reset & Base Styles ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--theme-text);
  background-color: var(--theme-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.heading-display {
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-1 {
  font-size: var(--text-5xl);
}

.heading-2 {
  font-size: var(--text-4xl);
}

.heading-3 {
  font-size: var(--text-3xl);
}

.text-italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
}

.btn-white:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Top Promo Banner ---------- */
.promo-banner {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 10px var(--spacing-md);
  text-align: center;
  font-size: var(--text-sm);
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.promo-banner a {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: underline;
}

.promo-banner a:hover {
  color: var(--color-accent);
}

.promo-close {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.promo-close:hover {
  opacity: 1;
}

/* ---------- Header / Navigation ---------- */
.header {
  background-color: var(--color-bg-white);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-accent {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark);
  padding: var(--spacing-sm) 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-dropdown-icon {
  font-size: var(--text-xs);
  transition: transform var(--transition-fast);
}

.nav-link:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.header-actions {
  display: none;
}

.lang-flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.lang-flag-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Removed user-icon styles as requested */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background-color: #000;
  /* Fallback to black so white text is readable if image fails */
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  /* Ensure active slide is above others */
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-white);
  padding: var(--spacing-xl);
  z-index: 10;
}

.hero-tagline {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slider-controls {
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  width: 24px;
  background-color: var(--color-text-white);
}

.slider-pause {
  background: none;
  color: var(--color-text-white);
  font-size: var(--text-xl);
  opacity: 0.7;
  margin-left: var(--spacing-md);
}

.slider-pause:hover {
  opacity: 1;
}

/* ---------- Booking Widget ---------- */
.booking-section {
  padding: 0 var(--spacing-sm);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-3xl);
  position: relative;
  z-index: 100;
}

.booking-widget {
  width: 100%;
  max-width: 1000px;
  /* Keep consistent width limits */
  margin: 0 auto;
}

.booking-form {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-xl);
  /* Rounded corners for the container */
  padding: var(--spacing-xs);
  /* Tight padding like a pill container */
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-primary-dark);
  /* Booking.com style blue border */
  display: flex;
  /* Use flexbox for horizontal layout on desktop */
  align-items: center;
  gap: 0;
  /* No gap, borders will separate items */
  /* overflow: hidden; -- Removed to allow dropdowns to show */
  /* Ensure content stays inside rounded corners */
}

/* On Mobile, stack them but keep the "card" look */
@media (max-width: 768px) {
  .booking-form {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    border-radius: 20px;
    /* Slightly less round on very small screens if needed, or keep pill */
    border-width: 4px;
  }

  .booking-field,
  .booking-submit {
    width: 100%;
    /* Full width on mobile */
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .booking-field:last-of-type {
    border-bottom: none;
  }

  /* Make the search button full width and distinct */
  .booking-submit {
    margin-top: var(--spacing-sm);
    border-radius: var(--radius-full);
    height: 48px;
    /* Accessible touch target */
  }
}

.booking-field {
  flex: 1;
  /* Distribute space evenly on desktop */
  display: flex;
  align-items: center;
  /* Center icon and text */
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  position: relative;
  cursor: pointer;
  height: 60px;
  /* Fixed height for the bar look */
  border-right: 1px solid #e5e5e5;
  background: white;
  transition: background-color var(--transition-fast);
}

.booking-field:hover {
  background-color: var(--color-bg-light);
}

.booking-field:last-of-type {
  border-right: none;
}

/* Hide default labels on desktop for the "Search Bar" look, or style them small */
.booking-label {
  display: none;
  /* Hide standard labels for the clean "icon + text" look */
}

/* Show labels on mobile if needed, or keep hidden for minimalism */
@media (max-width: 768px) {
  .booking-label {
    display: none;
  }
}


.booking-input {
  display: flex;
  /* Ensure container handles flex items */
  align-items: center;
  width: 100%;
}

.booking-input input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 0;
  width: 100%;
  cursor: pointer;
  outline: none;
  /* Remove blue outline on focus */
}

.booking-input input::placeholder {
  color: var(--color-text-dark);
  /* Make placeholder look like value text */
  opacity: 1;
}

/* Adjust dropdown arrow and icons */
.booking-input-icon {
  color: var(--color-text-medium);
}

.booking-input-icon svg {
  width: 20px;
  height: 20px;
}

.booking-submit {
  background-color: var(--color-primary);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0 var(--spacing-xl);
  height: 60px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.booking-submit:hover {
  background-color: var(--color-primary-dark);
}



/* Custom Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  /* More space */
  left: 0;
  width: 100%;
  min-width: 300px;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  /* Deeper shadow */
  padding: var(--spacing-md);
  /* More padding */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  border: 1px solid #eee;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    /* Use fixed positioning for a modal experience on mobile */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: 90%;
    max-width: 350px;
    min-width: auto;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    /* Dim background */
    z-index: 9999;
  }

  .booking-field.active .dropdown-menu {
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

.booking-field.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: background-color var(--transition-fast);
  display: flex;
  /* Better alignment */
  align-items: center;
  justify-content: space-between;
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
}

.dropdown-item.active {
  background-color: var(--color-primary-light);
  /* Lighter active state */
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Date Picker / Calendar Styles */
.date-picker-menu {
  padding: var(--spacing-md);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  color: var(--color-text-dark);
}

.calendar-header button {
  background: none;
  font-size: 1.2rem;
  color: var(--color-primary);
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-name {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  /* Larger font */
  border-radius: 50%;
  /* Round selection circle */
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: 2px;
  /* Separation */
}

.calendar-day:not(.empty):hover {
  background-color: var(--color-bg-active);
}

.calendar-day.active {
  background-color: var(--color-primary);
  color: white;
}

.calendar-day.in-range {
  background-color: var(--color-bg-light);
}

.calendar-day.empty {
  cursor: default;
}

.booking-input-icon {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.booking-field.active .dropdown-arrow {
  transform: rotate(180deg);
}

.booking-input-icon svg {
  width: 16px;
  height: 16px;
}

.booking-input-icon.dropdown-arrow svg {
  width: 12px;
  height: 12px;
}

.booking-submit {
  padding: var(--spacing-lg) var(--spacing-3xl);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  min-width: 140px;
}

/* ---------- Destinations Section ---------- */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-medium);
  max-width: 600px;
  margin: 0 auto;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.destination-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  group: destination;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.destination-card:hover img {
  transform: scale(1.05);
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0) 100%);
}

.destination-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xl);
  color: var(--color-text-white);
}

.destination-flag {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-sm);
}

.destination-name {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.destination-count {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.destination-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.destination-card:hover .destination-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Featured Apartments Section ---------- */
#apartments .container {
  max-width: 1440px;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.apartment-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.apartment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.apartment-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.apartment-card:hover .apartment-image img {
  transform: scale(1.05);
}

.apartment-badges {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  gap: var(--spacing-xs);
  z-index: 10;
}

.apartment-badge {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-discount {
  background-color: #ef4444;
  /* Red color */
  color: white;
}

.apartment-favorite {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.apartment-favorite:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.apartment-details {
  padding: var(--spacing-lg);
}

.apartment-location {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.apartment-name {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-sm);
}

.apartment-amenities {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-sm);
  color: var(--color-text-medium);
}

.apartment-amenity {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.apartment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-bg-light);
}

.apartment-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 500;
}

.apartment-rating-star {
  color: var(--color-accent);
}

.apartment-price {
  text-align: right;
}

.apartment-price-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.apartment-price-period {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Apartment card links */
.apartment-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.apartment-card-link:hover {
  color: inherit;
}

.apartment-card-link .apartment-card {
  cursor: pointer;
}

/* ---------- Benefits Section ---------- */
.benefits {
  background-color: var(--color-bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--color-text-white);
  box-shadow: var(--shadow-lg);
}

.benefit-title {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-dark);
}

.benefit-description {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-white);
  text-align: center;
  padding: var(--spacing-4xl) 0;
}

.cta-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-md);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand .logo {
  color: var(--color-text-white);
  margin-bottom: var(--spacing-md);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-white);
  padding-left: var(--spacing-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-text-white);
  font-family: inherit;
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
  color: var(--color-text-light);
}

.newsletter-input:focus {
  border-color: var(--color-primary-light);
  background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--color-primary-light);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-xl);
}

.footer-legal a:hover {
  color: var(--color-text-white);
}

/* ---------- Responsive Design ---------- */
html, body {
  overflow-x: hidden;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  padding: var(--spacing-xs);
  z-index: 1001;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .language-selector {
    margin-right: var(--spacing-sm);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 990;
    gap: 0;
    border-top: 1px solid var(--color-bg-light);
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--spacing-md) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-bg-light);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }

  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-subtitle {
     font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .hero-slider-controls {
     bottom: 40px;
  }

  .booking-widget {
    position: relative;
    transform: none;
    left: 0;
    padding: var(--spacing-md);
    margin-top: calc(-1 * var(--spacing-3xl));
  }

  .booking-form {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .booking-field,
  .booking-submit {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .booking-field:last-of-type {
    border-bottom: none;
  }

  .booking-submit {
    margin-top: var(--spacing-sm);
    height: 48px;
    border-bottom: none;
  }

  .destinations-grid,
  .apartments-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Prevent side padding issues on mobile */
  .container {
    padding: 0 var(--container-padding);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger animations for grids */
.apartments-grid .apartment-card,
.benefits-grid .benefit-card,
.destinations-grid .destination-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.apartments-grid .apartment-card:nth-child(1),
.benefits-grid .benefit-card:nth-child(1),
.destinations-grid .destination-card:nth-child(1) {
  animation-delay: 0.1s;
}

.apartments-grid .apartment-card:nth-child(2),
.benefits-grid .benefit-card:nth-child(2),
.destinations-grid .destination-card:nth-child(2) {
  animation-delay: 0.2s;
}

.apartments-grid .apartment-card:nth-child(3),
.benefits-grid .benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}

.benefits-grid .benefit-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* ---------- Language Selector Dropdown ---------- */
.language-selector {
  position: relative;
  margin-right: var(--spacing-md);
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-current:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-light);
}

.lang-arrow {
  font-size: 8px;
  color: var(--color-text-light);
  transition: transform var(--transition-fast);
}

.language-selector:hover .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  text-align: left;
  transition: background var(--transition-fast);
}

.lang-option:hover {
  background: var(--color-bg-light);
}

.lang-option.active {
  background: var(--color-primary);
  color: white;
}

@media (max-width: 480px) {
  .lang-current {
    padding: 4px 8px;
  }

  .lang-flag-icon {
    font-size: 18px;
  }
}

/* ---------- About / Contact Hero ---------- */
.about-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero .hero-title {
  color: var(--color-text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-md);
}

.about-hero .hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

/* ---------- Social Contact FABs ---------- */
.social-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.social-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white !important;
    text-decoration: none;
    cursor: pointer;
}

.social-fab svg {
    width: 30px;
    height: 30px;
}

.social-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab {
    background-color: #25d366;
}

.messenger-fab {
    background-color: #0084ff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .social-fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .social-fab {
        width: 50px;
        height: 50px;
    }
    
    .social-fab svg {
        width: 25px;
        height: 25px;
    }

/* ---------- Price Match Widget ---------- */
.price-match-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fdfaf5;
    border: 1px solid #f9731633;
    border-radius: var(--radius-md);
    animation: fadeIn 0.5s ease-out;
}

.price-match-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shield-icon {
    font-size: 1.2rem;
}

.match-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-match-comparison {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ota-price-item, .direct-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.ota-price-item {
    color: #64748b;
}

.ota-strikethrough {
    text-decoration: line-through;
    font-weight: 500;
}

.direct-price-item {
    color: #1e293b;
    font-weight: 600;
}

.direct-highlight {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 700;
}

.price-match-savings {
    background: #f0fdf4;
    color: #166534;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: 1px dashed #22c55e44;
}

#match-savings-amt {
    font-size: 1rem;
    font-weight: 800;
}

/* ---------- Referral UI ---------- */
#referral-code {
    flex: 1;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 1px;
    background: #f1f5f9;
}

#referral-msg.success {
    color: #059669;
}

#referral-msg.error {
    color: #ef4444;
}

.btn-outline.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--theme-border);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--theme-text);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-bg-light);
  border-color: var(--color-accent);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
/* Default if attribute missing */
body:not([data-theme]) .sun-icon { display: none; }
body:not([data-theme]) .moon-icon { display: block; }

.reveal-on-scroll {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Local Guide Grid */
.local-guide-item {
    background: var(--theme-surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--theme-border);
    transition: all var(--transition-base);
}

.local-guide-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.guide-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.guide-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.guide-desc {
    font-size: var(--text-sm);
    color: var(--theme-text-muted);
}