/* ============================================
   Villa Caval - Luxury Villa Rentals
   La Fortuna, Costa Rica
   ============================================ */

:root {
  /* Luxury Tropical Palette */
  --color-primary: #0d4a3a;
  --color-primary-dark: #083628;
  --color-primary-light: #e8f5f1;
  --color-accent: #c9a227;
  --color-accent-light: #f5e6b8;
  --color-dark: #0f1419;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-bg: #faf9f7;
  --color-white: #ffffff;
  --color-cream: #f8f6f3;
  --color-sand: #e8e4df;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --color-forest-deep: #0a221c;
  --color-mist: #f2eee6;
  --color-champagne: #c6a66a;
  
  /* Refined Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Sophisticated Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  
  /* Smooth Transitions */
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at top, rgba(198, 166, 106, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #fbf8f2 24%, #f7f4ee 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Buttons - Luxury Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #143d31 0%, #0d4a3a 100%);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 34px rgba(13, 74, 58, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0f3329 0%, #083628 100%);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 34, 28, 0.22);
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.38);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.95rem;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Navigation - Luxury Style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 34, 28, 0.08);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo-img {
  height: 2.75rem;
  width: auto;
  transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.02);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.logo-icon {
  font-size: 1.75rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a:not(.btn) {
  padding: 0.6rem 0.2rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-text);
  transition: var(--transition);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.nav-menu a:not(.btn):hover {
  color: var(--color-primary-dark);
  background: transparent;
  border-bottom-color: rgba(13, 74, 58, 0.28);
}

/* Scrolled state */
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar.scrolled .nav-inner {
  height: 4.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero - Luxury Style */
.hero-villa {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: flex-end;
  padding: 9.5rem 0 4rem;
  color: var(--color-white);
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(198, 166, 106, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(9, 25, 21, 0.04) 0%, rgba(10, 34, 28, 0.12) 26%, rgba(10, 34, 28, 0.56) 72%, rgba(10, 34, 28, 0.82) 100%);
}

.hero-content {
  max-width: 1240px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(198, 166, 106, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 166, 106, 0.28);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #f3e3be;
}

.hero-villa h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 3.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
  max-width: 8ch;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.08vw, 0.98rem);
  opacity: 0.92;
  margin-bottom: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 20rem;
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero-home-content {
  display: block;
}

.hero-copy {
  max-width: 540px;
}

.hero-kicker {
  margin-bottom: 1rem;
  color: rgba(243, 227, 190, 0.9);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.hero-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero-panel-card,
.hero-stats {
  background: linear-gradient(180deg, rgba(12, 33, 27, 0.62) 0%, rgba(12, 33, 27, 0.46) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 1.5rem;
  backdrop-filter: blur(22px);
}

.hero-panel-card {
  padding: 1.2rem 1.25rem;
}

.hero-panel-label {
  margin-bottom: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 227, 190, 0.82);
}

.hero-panel-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.hero-panel-list li {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-panel-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
}

.hero-stats div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stats div:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
}

/* Info Bar */
.info-bar {
  background: rgba(255,255,255,0.72);
  border-top: 1px solid rgba(10, 34, 28, 0.08);
  border-bottom: 1px solid rgba(10, 34, 28, 0.08);
  padding: 1.1rem 0;
  backdrop-filter: blur(10px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 2.25rem;
  font-size: 0.78rem;
  flex-shrink: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.info-item strong {
  display: block;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

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

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header-left {
  text-align: left;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(198, 166, 106, 0.12);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 4.2vw, 4rem);
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.06rem;
}

.section-intro {
  background: transparent;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 3rem;
  align-items: end;
}

.intro-note {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(10, 34, 28, 0.08);
  box-shadow: 0 20px 50px rgba(15, 20, 25, 0.06);
}

.intro-note p {
  color: var(--color-primary-dark);
  font-size: 1rem;
  line-height: 1.85;
}

/* Description */
.section-description {
  background: var(--color-white);
}

.desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.desc-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.desc-content p {
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.desc-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(243, 227, 190, 0.55) 0%, rgba(243, 227, 190, 0.2) 100%);
  color: var(--color-forest-deep, #0a221c);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.highlight-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.highlight:hover .highlight-icon {
  transform: scale(1.1);
}

.highlight span:last-child {
  font-size: 0.92rem;
}

.highlight span:first-child:not(.highlight-icon) {
  font-size: 1.5rem;
}

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

.desc-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.desc-image:hover img {
  transform: scale(1.03);
}

/* Villas Grid */
.section-villas {
  background: transparent;
}

.villas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.villa-card-v2 {
  background: rgba(255,255,255,0.78);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 20, 25, 0.08);
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(10, 34, 28, 0.08);
  color: inherit;
  display: block;
  backdrop-filter: blur(8px);
}

.villa-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(15, 20, 25, 0.12);
  border-color: rgba(10, 34, 28, 0.14);
}

.villa-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.villa-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.5s ease;
  display: block;
}

.villa-card-img-primary {
  position: relative;
  z-index: 1;
}

.villa-card-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  transform: scale(1.04);
}

.villa-card-v2:hover .villa-card-img-primary {
  opacity: 0;
  transform: scale(1.05);
}

.villa-card-v2:hover .villa-card-img-hover {
  opacity: 1;
  transform: scale(1);
}

.villa-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.villa-card-link:focus-visible {
  outline: 3px solid var(--color-accent, #b9924d);
  outline-offset: 4px;
  border-radius: 1.5rem;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.villa-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(243, 227, 190, 0.9);
  color: var(--color-forest-deep);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.villa-badge-featured {
  background: rgba(185, 146, 77, 0.95);
  color: #fff;
}

.villa-badge-signature {
  background: rgba(10, 34, 28, 0.92);
  color: #f3e3be;
}

.villa-badge-premier {
  background: rgba(243, 227, 190, 0.95);
  color: #6b5320;
}

.villa-badge-new {
  background: rgba(217, 95, 76, 0.95);
  color: #fff;
}

.villa-card-content {
  padding: 1.85rem;
}

.villa-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.villa-card-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 0.65rem;
  line-height: 1;
}

.villa-location {
  color: rgba(10, 34, 28, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0;
}

.villa-desc {
  color: var(--color-text);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.villa-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.villa-features span {
  background: rgba(242, 238, 230, 0.9);
  color: var(--color-primary-dark);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(10, 34, 28, 0.08);
}

.villa-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(10, 34, 28, 0.08);
}

.villa-rating {
  font-weight: 700;
  color: rgba(10, 34, 28, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Details Section */
.section-details {
  background: var(--color-bg);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.details-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 74, 58, 0.08);
}

.details-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.details-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-card li {
  padding: 0.5rem 0;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.details-card li:last-child {
  border-bottom: none;
}

/* Other Villas Section */
.section-other-villas {
  background: var(--color-white);
}

.section-other-villas .villas-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.other-villa-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
}

.other-villa-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.other-villa-card:hover img {
  transform: scale(1.05);
}

.other-villa-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: var(--color-white);
}

.other-villa-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.other-villa-info p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Amenities */
.section-amenities {
  background: linear-gradient(135deg, var(--color-forest-deep) 0%, #123c31 100%);
  color: var(--color-white);
}

.section-amenities .eyebrow {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.section-amenities .section-header h2 {
  color: var(--color-white);
}

.section-amenities .section-header p {
  color: rgba(255,255,255,0.75);
}

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

.amenity-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.amenity-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(243, 227, 190, 0.55) 0%, rgba(243, 227, 190, 0.25) 100%);
  color: var(--color-forest-deep);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.amenity-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.amenity-card:hover .amenity-icon {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(185, 146, 77, 0.25) 0%, rgba(185, 146, 77, 0.08) 100%);
}

.amenity-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
}

.amenity-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Gallery */
.section-gallery {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.86) 22%, rgba(242, 238, 230, 0.78) 100%);
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(10, 34, 28, 0.08);
  background: rgba(255,255,255,0.76);
  color: rgba(10, 34, 28, 0.7);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.gallery-tab:hover {
  background: rgba(255,255,255,0.94);
  color: var(--color-primary-dark);
  border-color: rgba(10, 34, 28, 0.14);
}

.gallery-tab.active {
  background: linear-gradient(135deg, #143d31 0%, #0d4a3a 100%);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.12);
}

/* Gallery Content */
.gallery-content {
  display: none;
}

.gallery-content.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 1.15rem;
}

.gallery-item {
  border-radius: 1.35rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 18px 44px rgba(15, 20, 25, 0.12);
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 34, 28, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

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

/* Reseñas */
.section-reviews,
.reviews {
  background: var(--color-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review-card {
  background: rgba(255,255,255,0.8);
  border-radius: 1.35rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(15, 20, 25, 0.08);
  border: 1px solid rgba(10, 34, 28, 0.08);
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  margin: 0 0.5rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .review-card {
    min-width: calc(100% - 1rem);
  }
}

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(10, 34, 28, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-deep, #0a221c);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
  transition: var(--transition, 0.25s ease);
}

.reviews-nav:hover {
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 20, 25, 0.12);
}

.reviews-prev {
  left: 0;
}

.reviews-next {
  right: 0;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10, 34, 28, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.reviews-dot.active {
  background: var(--color-forest-deep, #0a221c);
  width: 28px;
  border-radius: 999px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

.review-header strong {
  display: block;
  color: var(--color-dark);
  font-weight: 700;
}

.review-header span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-stars {
  margin-left: auto;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.review-card p {
  color: var(--color-text);
  line-height: 1.7;
}

/* Location */
.section-location {
  background: var(--color-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.location-content p {
  color: var(--color-text);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.location-list {
  list-style: none;
  margin-bottom: 2rem;
}

.location-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Booking CTA */
.section-booking {
  background:
    radial-gradient(circle at top right, rgba(198, 166, 106, 0.18), transparent 24%),
    linear-gradient(135deg, #0a221c 0%, #123c31 100%);
  color: var(--color-white);
}

.booking-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 28px 80px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}

.booking-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin-bottom: 1rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.booking-content p {
  opacity: 0.86;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 34rem;
}

.booking-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.booking-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

.booking-note a {
  text-decoration: underline;
}

.booking-image {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0,0,0,0.24);
}

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

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

#lightbox-caption {
  color: var(--color-white);
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  opacity: 0.9;
}

#lightbox-counter {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.4rem;
  font-size: 0.82rem;
  text-align: center;
  letter-spacing: 0.06em;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-content {
  text-align: center;
}

.footer-logo {
  height: 2.4rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: var(--transition);
}

.footer-social-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer-social-link:hover {
  background: var(--color-accent, #b9924d);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--color-accent, #b9924d);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  opacity: 0.55;
  margin: 0;
}

.footer-meta {
  font-size: 0.78rem;
  opacity: 0.45;
  margin: 0;
  letter-spacing: 0.04em;
}

.site-footer p {
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .navbar,
  .hero-villa,
  .info-bar,
  main,
  .section {
    overflow-x: hidden;
  }

  .hero-home-content,
  .intro-grid,
  .desc-grid,
  .location-grid,
  .booking-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-villa h1 {
    font-size: clamp(3rem, 9vw, 4.5rem);
    max-width: 11ch;
  }

  .hero-badge {
    display: none;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-panel {
    margin-top: 0;
  }

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

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
    max-width: 100%;
  }

  .section {
    padding: 4.25rem 0;
  }

  .nav-inner {
    height: 4.35rem;
    align-items: center;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-logo-img {
    height: 2.2rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 130;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .nav-menu {
    position: fixed;
    top: 4.35rem;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: rgba(247, 242, 234, 0.96);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.45rem;
    box-shadow: 0 18px 44px rgba(15, 20, 25, 0.12);
    border-bottom: 1px solid rgba(10, 34, 28, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .nav-menu a:not(.btn) {
    width: 100%;
    padding: 0.95rem 0;
    text-align: left;
    border-bottom: 1px solid rgba(10, 34, 28, 0.08);
  }

  .nav-menu .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-villa {
    min-height: 78vh;
    padding: 6.75rem 0 2.5rem;
    align-items: flex-end;
  }

  .hero-copy {
    max-width: none;
    width: 100%;
    padding: 1.1rem 1rem 0;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(10, 34, 28, 0) 0%, rgba(10, 34, 28, 0.1) 100%);
  }

  .hero-villa h1 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
    max-width: none;
    line-height: 1.02;
  }

  .hero-subtitle {
    max-width: 16rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 3.35rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.02;
  }

  .section-header p,
  .desc-content p,
  .booking-content p,
  .location-content p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .intro-note,
  .details-card,
  .review-card,
  .amenity-card {
    border-radius: 1.15rem;
  }

  .villa-card-content,
  .details-card,
  .review-card,
  .amenity-card,
  .intro-note {
    padding: 1.35rem;
  }

  .villa-card-content h3,
  .other-villa-info h3 {
    font-size: 1.6rem;
  }

  .villa-card-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .villa-features {
    gap: 0.55rem;
  }

  .villa-features span {
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
  }

  .info-grid {
    gap: 1rem;
  }

  .info-item {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(10, 34, 28, 0.08);
  }

  .info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .gallery-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tab {
    flex: 0 0 auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel-card,
  .intro-note {
    padding: 1.4rem;
  }

  .hero-details {
    gap: 0.75rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .gallery-item-large,
  .gallery-item-wide {
    grid-column: span 1;
  }

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

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

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

  .booking-card {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .booking-content h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .booking-options {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-options .btn {
    width: 100%;
  }

  .booking-image img {
    height: 260px;
  }

  .site-footer {
    padding: 2.5rem 0 2rem;
  }
}

.contact-card p {
  margin: 0 0 1rem;
}

.contact-card a {
  color: #2563eb;
  text-decoration: none;
}

.site-footer {
  padding: 2rem 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 1.5rem 0;
  }
}
