/* Bonito Sol Spanish Theme CSS - Enhanced Responsive Design */

/* CSS Variables - Spanish Color Palette */
:root {
  --primary: #E86100;      /* Spanish Orange */
  --secondary: #A23E2D;    /* Terracotta */
  --accent: #0099CC;       /* Mediterranean Blue */
  --olive: #708238;        /* Olive Green */
  --amber: #FFBF00;        /* Amber */
  --cream: #F8F5F0;        /* Cream */
  --text: #333;            /* Dark Gray */
  --light: #F8F5F0;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
  
  /* Responsive spacing variables */
  --section-padding: clamp(3rem, 5vw, 6rem);
  --container-padding: clamp(1rem, 3vw, 2rem);
  --card-padding: clamp(1rem, 2.5vw, 2rem);
  --hero-height: clamp(60vh, 80vh, 90vh);
  
  /* Touch-friendly sizing */
  --touch-target-min: 44px;
  --mobile-nav-height: 60px;
}

/* Global Styles with Enhanced Responsiveness */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Responsive Typography */
h1, .display-1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2, .display-2 { font-size: clamp(2rem, 4vw, 3rem); }
h3, .display-3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h4, .display-4 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h5, .display-5 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h6, .display-6 { font-size: clamp(1.125rem, 2vw, 1.75rem); }

.lead { font-size: clamp(1rem, 2vw, 1.25rem); }
p { font-size: clamp(0.875rem, 1.5vw, 1rem); }

/* Container Enhancements */
.container {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Custom Background Colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-olive { background-color: var(--olive) !important; }
.bg-amber { background-color: var(--amber) !important; }
.bg-cream { background-color: var(--cream) !important; }

/* Custom Text Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-olive { color: var(--olive) !important; }
.text-amber { color: var(--amber) !important; }

/* Enhanced Button Responsiveness with Touch-Friendly Design */
.btn {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-lg {
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  min-height: calc(var(--touch-target-min) + 6px);
}

.btn-sm {
  font-size: clamp(0.75rem, 1.25vw, 0.875rem);
  padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
  min-height: calc(var(--touch-target-min) - 6px);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #d55500;
  border-color: #d55500;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 97, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 97, 0, 0.3);
}

.btn-amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-amber:hover, .btn-amber:focus {
  background-color: #e6ac00;
  border-color: #e6ac00;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 191, 0, 0.4);
}

.btn-amber:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 191, 0, 0.4);
}

.btn-book, .btn-book-cta {
  box-shadow: 0 2px 10px rgba(232, 97, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-book:hover, .btn-book-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(232, 97, 0, 0.3);
}

/* Enhanced Navigation with Better Mobile Experience */
.navbar {
  padding: clamp(0.5rem, 1vw, 1rem) 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: var(--mobile-nav-height);
  border-bottom: 1px solid rgba(232, 97, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items */
}

/* Mobile Language Switcher Positioning */
@media (max-width: 991px) { /* Apply to all mobile/tablet sizes */
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .language-switcher {
    order: 1; /* Place it between brand and toggler */
    margin-left: auto; /* Push it to the right of the brand */
    margin-right: 0.5rem; /* Space before toggler, adjusted for closer proximity */
    margin-bottom: 0; /* Remove previous margin */
    padding-bottom: 0; /* Remove previous padding */
    border-bottom: none; /* Remove previous border */
    position: relative; /* Ensure absolute positioning of options is relative to this */
  }
  
  .navbar-toggler {
    order: 2; /* Ensure toggler is always last */
  }

  .language-current .text {
    display: inline;
    margin-left: 0.25rem;
  }
  
  .language-current {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .language-options {
    min-width: 180px;
  }
}

.navbar-brand {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: rgba(232, 97, 0, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--primary);
  outline: none;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-size: 24px 24px;
}

.navbar-nav {
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 clamp(0.25rem, 0.5vw, 0.5rem);
  transition: all 0.3s ease;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
  border-radius: 8px;
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  color: var(--primary) !important;
  background-color: rgba(232, 97, 0, 0.05);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  background-color: rgba(232, 97, 0, 0.08);
}

/* Mobile Navigation Improvements */
.navbar-collapse {
  transition: all 0.3s ease;
}

.navbar-collapse.show {
  animation: slideDown 0.3s ease;
  max-height: calc(100vh - var(--mobile-nav-height) - 1rem); /* Adjust based on viewport height and navbar height */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-bottom: 1rem; /* Ensure enough space at the bottom */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Language Switcher - Dropdown Style */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-current {
  background: linear-gradient(135deg, var(--primary), var(--amber));
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch-target-min);
  box-shadow: 0 2px 8px rgba(232, 97, 0, 0.2);
}

.language-current:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 97, 0, 0.3);
}

.language-current .flag {
  font-size: 1.1em;
}

.language-current .text {
  /* display: none; */
}

.language-current .chevron {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.language-dropdown.open .language-current .chevron {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0; /* Default for desktop */
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 200px; /* Default for desktop */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(232, 97, 0, 0.1);
}

.language-dropdown.open .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.language-option:hover {
  background-color: rgba(232, 97, 0, 0.05);
  color: var(--primary);
  transform: translateX(4px);
}

.language-option.active {
  background-color: rgba(232, 97, 0, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.language-option .flag {
  font-size: 1.2em;
  width: 20px;
  text-align: center;
}

.language-option .text {
  flex: 1;
}

/* Button-based Language Switcher */
.language-switcher .language-btn {
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  margin: 0 0.125rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  color: #6c757d;
  min-width: 38px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.language-switcher .language-btn:hover {
  background-color: rgba(232, 97, 0, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
}

.language-switcher .language-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

.language-switcher .language-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile language button adjustments */
@media (max-width: 991px) {
  .language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin: 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .language-switcher .language-btn {
    min-width: 36px;
    height: 30px;
    font-size: 0.7rem;
    padding: 0.25rem 0.375rem;
  }
}

/* Book Now Button Enhancement */
.btn-book {
  background: linear-gradient(135deg, var(--primary), #d55500);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 97, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-book:hover::before {
  left: 100%;
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 97, 0, 0.3);
  color: white;
}

.btn-book:active {
  transform: translateY(0);
}

/* Navigation Backdrop Effect */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Desktop Language Dropdown Enhancements */
@media (min-width: 992px) {
  .language-current .text {
    display: inline;
    margin-left: 0.25rem;
  }
  
  .language-options {
    min-width: 220px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
  
  .navbar-nav .nav-link:hover {
    transform: translateY(-2px);
  }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .language-current {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .language-options {
    min-width: 180px;
  }
}

/* Interactive Google Maps Styling */
.map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  height: 450px; /* Default height for desktop */
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.map-overlay {
  z-index: 10;
  pointer-events: none;
}

.map-overlay > div {
  pointer-events: all;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.map-overlay > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Location page specific styling */
.destination-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.destination-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.amenity-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.amenity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.amenity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(232, 97, 0, 0.1);
}

.amenity-header i {
  font-size: 2rem;
  color: var(--primary);
}

.amenity-header h5 {
  margin: 0;
  color: var(--primary);
}

.amenity-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.amenity-card ul li:last-child {
  border-bottom: none;
}

/* Mobile map optimizations */
@media (max-width: 768px) {
  .map-container {
    height: 300px !important;
    margin-bottom: 2rem;
  }
  
  .map-overlay {
    position: static !important;
    margin: 1rem 0 0 0 !important;
  }
  
  .map-overlay > div {
    max-width: 100% !important;
  }
  
  .destination-card {
    padding: 1.5rem 1rem;
  }
  
  .amenity-card {
    padding: 1.5rem;
  }
}

/* Enhanced Hero Section */
.hero-section {
  min-height: var(--hero-height);
  background: url('../images/villa2/hrobg.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: scroll; /* Better mobile performance */
}

@media (min-width: 992px) {
  .hero-section {
    background-position: top center; /* Adjust for better desktop view */
  }
}


/* Mobile Hero Height Adjustment - 65% on mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: 65vh !important;
    background-position: center 60% !important; /* Adjusted to start lower */
    background-image: url('../images/villa2/herobgmob.webp') !important; /* Mobile specific hero image */
  }
  
  :root {
    --hero-height: 65vh;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; /* Adding a subtle dark overlay for text readability */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.15); /* Translucent white background */
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  padding: 2rem; /* Add some padding around the content */
  border-radius: 15px; /* Rounded corners for the glass effect */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Subtle shadow */
  border: 1px solid rgba(255, 255, 255, 0.18); /* Light border */
  max-width: 1200px; /* Make the glass box wider */
  margin: 0 auto; /* Center the box */
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out; /* Add transition for fading */
}

.hero-logo {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Rounded corners for the logo */
}

.hero-section .row {
    justify-content: center;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Enhanced Hero Features Badges */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1vw, 1rem);
  margin-bottom: 2rem;
  justify-content: center;
}

.hero-features .badge {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
  border-radius: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: default;
}

.hero-features .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Actions Enhancement */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  justify-content: center;
}

/* Enhanced Highlight Cards */
.highlight-card {
  background: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 15px;
  padding: var(--card-padding);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 35vw, 320px);
  cursor: pointer;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--olive);
}

.highlight-card:hover, .highlight-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(162, 62, 45, 0.2);
  border-color: var(--primary);
}

.highlight-card:active {
  transform: translateY(-5px);
}

.highlight-icon {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: linear-gradient(135deg, var(--primary), var(--amber));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.highlight-icon i {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
}

.highlight-card:hover .highlight-icon {
  transform: rotate(10deg) scale(1.1);
}

/* Enhanced Gallery Preview */
.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.3s ease;
  height: clamp(200px, 25vw, 300px);
  cursor: pointer;
}

.gallery-preview-item:hover, .gallery-preview-item:focus-within {
  transform: scale(1.05);
}

.gallery-preview-item:active {
  transform: scale(1.02);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 97, 0, 0.8), rgba(162, 62, 45, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-preview-item:hover .gallery-overlay {
  opacity: 1;
}

.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* Only hide elements if JavaScript has loaded and added the 'js-loaded' class to body */
body.js-loaded .animate-on-scroll:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}

body.js-loaded .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover, .card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--amber));
  color: var(--white);
  border: none;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
}

/* Enhanced Form Controls */
.form-control, .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
  min-height: var(--touch-target-min);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 97, 0, 0.25);
  outline: none;
}

.form-control:hover, .form-select:hover {
  border-color: #ced4da;
}

/* Form Labels */
.form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInUp {
  animation: fadeInUp 0.6s ease;
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Ultra Small Devices - Foldable phones (closed), small phones */
@media (max-width: 360px) {
  :root {
    --section-padding: 2rem;
    --container-padding: 0.75rem;
    --card-padding: 1rem;
    --mobile-nav-height: 56px;
  }
  
  .hero-section {
    min-height: 50vh;
    text-align: center;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .hero-features .badge {
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .language-switcher {
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.5rem 0;
    gap: 3px;
  }
  
  .language-switcher .btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  
  .language-options {
    min-width: 160px; /* Adjusted for smaller screens */
    left: 0; /* Align to left for mobile */
    right: auto; /* Remove right alignment */
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
  
  .highlight-card {
    margin-bottom: 1.5rem;
    min-height: 240px;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }
  
  .navbar-toggler {
    min-width: 40px;
    min-height: 40px;
  }
}

/* Small Devices - Phones, foldable phones (open), small tablets */
@media (min-width: 361px) and (max-width: 575px) {
  :root {
    --section-padding: 2.5rem;
    --container-padding: 1rem;
    --card-padding: 1.25rem;
    --mobile-nav-height: 58px;
  }
  
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-features .badge {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .highlight-card {
    margin-bottom: 2rem;
    min-height: 260px;
  }
  
  .language-switcher {
    margin: 0.75rem 0;
    gap: 4px;
  }
  
  .language-options {
    min-width: 180px; /* Adjusted for smaller screens */
    left: 0; /* Align to left for mobile */
    right: auto; /* Remove right alignment */
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }
}

/* Medium Devices - Tablets, large phones landscape */
@media (min-width: 576px) and (max-width: 767px) {
  :root {
    --section-padding: 3rem;
    --container-padding: 1.25rem;
    --card-padding: 1.5rem;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-features .badge {
    flex: 1 1 auto;
    min-width: calc(50% - 0.5rem);
  }
  
  .hero-actions {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 200px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .navbar-collapse.show {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
}

/* Large Tablets and Small Laptops */
@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --section-padding: 4rem;
    --container-padding: 1.5rem;
    --card-padding: 1.75rem;
  }
  
  .hero-section {
    min-height: 75vh;
  }
  
  .hero-features {
    justify-content: flex-start;
  }
  
  .hero-features .badge {
    flex: 0 1 auto;
  }
  
  .hero-actions {
    justify-content: flex-start;
    gap: 1.5rem;
  }
  
  .hero-actions .btn {
    flex: 0 1 auto;
  }
  
  .highlight-card {
    min-height: 300px;
  }
}

/* Large Devices - Laptops, Desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  :root {
    --section-padding: 5rem;
    --container-padding: 1.75rem;
    --card-padding: 2rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .highlight-card {
    min-height: 320px;
  }
}

/* Extra Large Devices - Large Desktops, Ultrawide Monitors */
@media (min-width: 1200px) and (max-width: 1599px) {
  :root {
    --section-padding: 6rem;
    --container-padding: 2rem;
    --card-padding: 2.25rem;
  }
  
  .container {
    max-width: 1200px;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .highlight-card {
    min-height: 340px;
  }
}

/* Ultra Wide Screens */
@media (min-width: 1600px) {
  :root {
    --section-padding: 8rem;
    --container-padding: 2.5rem;
    --card-padding: 2.5rem;
  }
  
  .container {
    max-width: 1400px;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .highlight-card {
    min-height: 360px;
  }
  
  /* Prevent excessive scaling on very large screens */
  h1, .display-1 { font-size: min(4rem, 5vw); }
  h2, .display-2 { font-size: min(3.5rem, 4vw); }
  h3, .display-3 { font-size: min(3rem, 3.5vw); }
  h4, .display-4 { font-size: min(2.5rem, 3vw); }
}

/* ================================
   DEVICE-SPECIFIC OPTIMIZATIONS
   ================================ */

/* Samsung Galaxy Z Fold (Closed) - 280px x 653px */
@media (min-width: 280px) and (max-width: 320px) and (orientation: portrait) {
  :root {
    --section-padding: 1.5rem;
    --container-padding: 0.5rem;
    --card-padding: 0.75rem;
    --hero-height: 60vh;
  }
  
  .hero-section {
    background-attachment: scroll;
    min-height: 60vh !important;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  
  .hero-content .lead {
    font-size: 0.875rem !important;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .hero-features .badge {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.75rem;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-collapse {
    margin-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem;
    margin: 0.125rem 0;
  }
  
  .language-switcher {
    margin: 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .language-current {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .highlight-card {
    min-height: 200px;
    padding: 0.75rem;
  }
  
  .highlight-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .highlight-icon i {
    font-size: 1.25rem;
  }
  
  /* Form optimizations for narrow screens */
  .form-control, .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem 0.5rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  /* Gallery optimizations */
  .gallery-card {
    min-height: 200px;
  }
  
  .gallery-card .image-container {
    height: 150px;
  }
  
  /* Footer optimizations */
  footer {
    padding: 2rem 0 1rem;
  }
  
  footer .row > div {
    margin-bottom: 1.5rem;
  }
  
  footer h5, footer h6 {
    font-size: 1rem;
  }
  
  footer p, footer li {
    font-size: 0.875rem;
  }
}

/* Samsung Galaxy Z Fold (Open) - 653px x 280px landscape */
@media (min-width: 600px) and (max-width: 700px) and (orientation: landscape) and (max-height: 400px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero-features .badge {
    flex: 0 1 auto;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }
  
  .hero-actions .btn {
    flex: 0 1 auto;
    min-width: 150px;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Two-column layout for landscape */
  .row.g-4 > .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .highlight-card {
    min-height: 250px;
  }
}

/* Samsung Galaxy Z Flip (Closed) - 260px x 512px */
@media (min-width: 250px) and (max-width: 280px) and (min-height: 500px) and (orientation: portrait) {
  :root {
    --section-padding: 1.5rem;
    --container-padding: 0.5rem;
    --card-padding: 0.75rem;
    --hero-height: 55vh;
  }
  
  .hero-section {
    min-height: 55vh !important;
    background-attachment: scroll;
  }
  
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  
  .hero-content .lead {
    font-size: 0.8rem !important;
    margin-bottom: 1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-features .badge {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.6rem;
  }
  
  .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  
  .language-options {
    min-width: 150px; /* Adjusted for very small screens */
    left: 0; /* Align to left for mobile */
    right: auto; /* Remove right alignment */
  }
  
  .highlight-card {
    min-height: 180px;
    padding: 0.5rem;
  }
  
  .highlight-icon {
    width: 40px;
    height: 40px;
  }
  
  .highlight-icon i {
    font-size: 1rem;
  }
  
  .card-body {
    padding: 0.5rem;
  }
  
  .form-control, .form-select {
    font-size: 16px;
    padding: 0.6rem 0.4rem;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Samsung Galaxy Z Flip (Open) - 512px x 260px landscape */
@media (min-width: 500px) and (max-width: 550px) and (max-height: 300px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 0.5rem 0;
  }
  
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-features .badge {
    flex: 0 1 auto;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .hero-actions {
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
  }
  
  .hero-actions .btn {
    flex: 0 1 auto;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  .navbar {
    padding: 0.2rem 0;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .highlight-card {
    min-height: 200px;
  }
}

/* General Foldable Devices - Portrait */
@media (min-width: 280px) and (max-width: 653px) and (orientation: portrait) {
  .hero-section {
    background-attachment: scroll; /* Better performance on mobile */
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }
  
  
  .language-options {
    min-width: 100%; /* Make it full width of its container */
    left: auto; /* Reset left alignment */
    right: 0; /* Align to right for mobile */
    max-height: 200px; /* Limit height for mobile dropdown */
    overflow-y: auto; /* Enable scrolling for more languages */
  }
  
  /* Optimize for narrow screens */
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  /* Ensure text is readable on narrow screens */
  .card-body p, .card-body li {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  /* Optimize buttons for touch */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }
  
  /* Improve form usability */
  .form-control, .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Gallery grid for narrow screens */
  .gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Booking form optimizations */
  .booking-form-container {
    margin: 0 0.5rem;
    padding: 1rem;
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .progress-step {
    text-align: center;
    font-size: 0.875rem;
  }
  
  /* Calendar container for narrow screens */
  .calendar-container {
    margin: 0 -0.5rem;
    border-radius: 0;
  }
  
  .calendar-container iframe {
    height: 400px !important;
  }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  
  .hero-content .lead {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
  }
  
  .hero-features .badge {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    padding: 0.375rem 0.75rem;
  }
  
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    flex: 1;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-image: url("../images/villa2/hrobg.webp");
  }
  
  /* Ensure crisp text on high DPI displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .btn:hover:before {
    left: -100%;
  }
  
  .highlight-card:hover {
    transform: none;
  }
  
 .gallery-preview-item:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .btn {
    min-height: 48px;
  }
  
  .language-switcher .btn {
    min-width: 48px;
    height: 48px;
  }
  
  .navbar-nav .nav-link {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
}

/* Utility Classes */
.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rounded-lg {
  border-radius: 15px;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, #2c3e50, #34495e) !important;
  padding: var(--section-padding) 0 2rem;
}

footer .social-links a {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  transition: all 0.3s ease;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

footer .social-links a:hover, footer .social-links a:focus {
  transform: translateY(-3px);
  color: var(--amber) !important;
  background-color: rgba(255, 191, 0, 0.1);
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--cream);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Enhanced Gallery Styles */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  min-height: clamp(250px, 30vw, 300px);
  cursor: pointer;
}

.gallery-card:hover, .gallery-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-card:active {
  transform: translateY(-2px);
}

.gallery-card .image-container {
  position: relative;
  width: 100%;
  height: clamp(200px, 25vw, 250px);
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}

.gallery-card .gallery-image.loaded {
  opacity: 1 !important;
}

.gallery-card .gallery-image[src] {
  opacity: 1 !important;
}

.gallery-card .lazy-load:not([src]) {
  opacity: 0;
  background-color: #f8f9fa;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-card .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 97, 0, 0.8), rgba(162, 62, 45, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: white;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-actions {
  text-align: center;
}

.gallery-actions .btn {
  border-radius: 50%;
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.gallery-actions .btn:hover, .gallery-actions .btn:focus {
  transform: scale(1.1);
}

.gallery-actions .btn:active {
  transform: scale(0.95);
}

/* Loading spinner */
.image-loading {
  z-index: 2;
}

.image-loading .spinner-border {
  width: 2rem;
  height: 2rem;
}

/* Gallery grid improvements */
.gallery-item {
  margin-bottom: 1.5rem !important;
}

/* Lightbox improvements */
#lightboxModal .modal-dialog {
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
}

#lightboxModal .modal-content {
  background: transparent;
  border: none;
}

#lightboxModal .modal-body {
  padding: 0;
}

#lightboxImage {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

#lightboxModal .btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxModal .btn:hover, #lightboxModal .btn:focus {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

#lightboxModal .btn:active {
  transform: scale(0.95);
}

/* ================================
   ACCESSIBILITY IMPROVEMENTS
   ================================ */

/* Focus states for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .card {
    border: 2px solid var(--text);
  }
  
  .highlight-card {
    border-width: 3px;
  }
  
  .gallery-overlay {
    background: rgba(0, 0, 0, 0.9);
  }
}

/* Dark mode support (if system prefers dark) */
@media (prefers-color-scheme: dark) {
  /* This can be expanded if dark mode is desired */
  .navbar {
    backdrop-filter: blur(10px) saturate(180%);
  }
}

/* Language Switcher Dropdown */
.language-switcher.dropdown .dropdown-toggle {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
}

.language-switcher.dropdown .dropdown-toggle:hover,
.language-switcher.dropdown .dropdown-toggle:focus {
    background-color: #e9ecef;
}

.language-switcher.dropdown .dropdown-menu {
    min-width: auto;
}

.language-switcher.dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher.dropdown .dropdown-item.active {
    font-weight: bold;
}

.language-switcher {
    margin-right: 1rem;
}

.hero-section .btn-outline-light {
  color: var(--text) !important;
  border-color: var(--text) !important;
}

.hero-section .btn-outline-light:hover {
  color: var(--white) !important;
  background-color: var(--text) !important;
  border-color: var(--text) !important;
}

/* Cultural Adventures Image Sizing */
.culture-image-size {
  width: 100%;
  height: 300px; /* Adjust as needed to match Ronda image's visual height */
  object-fit: cover; /* Ensures images cover the area without distortion */
  border-radius: 8px; /* Optional: Add some border-radius for aesthetics */
}
