/* PEPE'S & LUGANO 2027 LIGHT MEDITERRANEAN LUXURY STYLES */

:root {
  --beach-sand: #FAF7F2;
  --beach-linen: #F4EFE6;
  --beach-gold: #B89865;
  --beach-gold-light: #D9C8A5;
  --beach-gold-dark: #8F7242;
  --beach-text: #1C2229;
  --beach-border: rgba(184, 152, 101, 0.26);
}

/* Scrollbar fina color champagne gold */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #B89865;
  border-radius: 9999px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Pestañas de Vista y Categorías Activas */
.view-mode-btn.active {
  background: linear-gradient(135deg, #B89865 0%, #987848 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(184, 152, 101, 0.35);
}

.cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(184, 152, 101, 0.22);
}

.cat-pill.active {
  background: linear-gradient(135deg, #B89865 0%, #8F7242 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(143, 114, 66, 0.3), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cat-pill.active i,
.cat-pill.active svg {
  color: #FFFFFF !important;
}

.cat-pill.active .cat-count-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.cat-pill:not(.active) {
  background: rgba(255, 255, 255, 0.95);
  color: #2D3748;
}

.cat-pill:not(.active) i,
.cat-pill:not(.active) svg {
  color: #B89865;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat-pill:not(.active):hover {
  background: #FAF7F2;
  border-color: #B89865;
  color: #1A202C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 152, 101, 0.12);
}

.cat-pill:not(.active):hover i,
.cat-pill:not(.active):hover svg {
  transform: scale(1.1);
  color: #8F7242;
}

.cat-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #F4EFE6;
  color: #8F7242;
  border: 1px solid rgba(184, 152, 101, 0.2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.diet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid rgba(184, 152, 101, 0.25);
  color: #4A5568;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.diet-btn i,
.diet-btn svg {
  color: #B89865;
  transition: color 0.2s ease;
}

.diet-btn:hover {
  border-color: #B89865;
  background: #FAF7F2;
  color: #1A202C;
}

.diet-btn.active {
  border-color: #0D7B7B !important;
  background: #E8F5F5 !important;
  color: #0D7B7B !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(13, 123, 123, 0.2) !important;
}

.diet-btn.active i,
.diet-btn.active svg {
  color: #0D7B7B !important;
}

/* KINETIC 3D CARD STACK (Estilo Claro Lujo Mediterráneo - Cristal Marfil) */
.kinetic-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  background: linear-gradient(155deg, #FFFFFF 0%, #FCFAF7 60%, #F5EFE6 100%);
  border: 1px solid var(--beach-border);
  box-shadow: 0 25px 50px -12px rgba(140, 110, 65, 0.22), 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
}

/* Ribete Dorado Fino */
.kinetic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(217, 200, 165, 0.8), transparent 45%, rgba(184, 152, 101, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Grid Dish Cards en Modo Claro */
.grid-dish-card {
  background: #FFFFFF;
  border: 1px solid var(--beach-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(184, 152, 101, 0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 640px) {
  .grid-dish-card {
    border-radius: 1.75rem;
  }
}
.grid-dish-card:hover {
  transform: translateY(-3px);
  border-color: #B89865;
  box-shadow: 0 14px 32px -8px rgba(184, 152, 101, 0.20), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dish-img-container {
  position: relative;
  overflow: hidden;
  background: #F4EFE6;
}
.dish-img-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.kinetic-card:hover .dish-img-container img,
.grid-dish-card:hover .dish-img-container img {
  transform: scale(1.07);
}

/* Marquee Infinito de Marcas / Patrocinadores */
.marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ecualizador ASMR de Sonido de Mar (Luxury Wave Equalizer) */
.sound-playing .eq-bar-1 {
  animation: luxurySoundEq1 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.sound-playing .eq-bar-2 {
  animation: luxurySoundEq2 0.7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}
.sound-playing .eq-bar-3 {
  animation: luxurySoundEq3 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes luxurySoundEq1 {
  0% { height: 3px; opacity: 0.6; }
  50% { height: 13px; opacity: 1; }
  100% { height: 6px; opacity: 0.8; }
}

@keyframes luxurySoundEq2 {
  0% { height: 13px; opacity: 1; }
  50% { height: 4px; opacity: 0.65; }
  100% { height: 14px; opacity: 1; }
}

@keyframes luxurySoundEq3 {
  0% { height: 5px; opacity: 0.7; }
  50% { height: 12px; opacity: 1; }
  100% { height: 3px; opacity: 0.6; }
}

/* Botón ASMR y Ecualizador de Sonido de Mar (Ultra Luxury) */
#sound-toggle-btn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 9999px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#sound-toggle-btn:not(.sound-playing) {
  background: #F4EFE6 !important;
  border: 1px solid rgba(184, 152, 101, 0.4) !important;
  color: #8F7242 !important;
}

#sound-toggle-btn:not(.sound-playing):hover {
  background: #EAE3D5 !important;
  border-color: #B89865 !important;
  color: #1A202C !important;
  transform: scale(1.05);
}

#sound-toggle-btn.sound-playing {
  background: linear-gradient(135deg, #B89865 0%, #8F7242 100%) !important;
  border: 1px solid #8F7242 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 12px rgba(184, 152, 101, 0.45) !important;
  transform: scale(1.05);
}

#sound-toggle-btn.sound-playing:hover {
  background: linear-gradient(135deg, #8F7242 0%, #B89865 100%) !important;
  transform: scale(1.08);
}

#sound-toggle-btn.sound-playing .eq-bar {
  background-color: #FFFFFF !important;
}

/* Modal and Drawers */
#dish-modal, #waiter-modal {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#dish-modal-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   ANIMACIONES 2027: KEN BURNS 4K, SHIMMER & MICRO-INTERACCIONES
   ======================================================== */

/* Ken Burns 4K Cinematic Zoom */
@keyframes kenBurnsZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.09); }
}
.ken-burns-active {
  animation: kenBurnsZoom 8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Slides Transitions */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Botones con Resplandor Líquido (Sheen Sweep) */
.luxury-btn-sheen {
  position: relative;
  overflow: hidden;
}
.luxury-btn-sheen::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.8s ease;
  pointer-events: none;
}
.luxury-btn-sheen:hover::after {
  left: 140%;
}

/* Flotación Sutil Mediterránea */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.animate-float-gentle {
  animation: floatGentle 4.5s ease-in-out infinite;
}

/* Pulso Champagne Gold */
@keyframes champagnePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 152, 101, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(184, 152, 101, 0); }
}
.pulse-champagne {
  animation: champagnePulse 2.8s infinite;
}

/* Barra de Progreso del Slider del Hero */
.slide-progress-bar {
  transition: width 0.1s linear;
}

/* Header Capsule Mathematical 50% Dead Center Anchor */
@media (min-width: 1280px) {
  #master-nav-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  #master-nav-inner > nav {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 20 !important;
    pointer-events: auto !important;
  }
}

/* Pods de Partners / Grandes Marcas (Presentación de Alto Nivel) */
.partner-pod {
  height: 6.75rem; /* ~108px */
  min-width: 14rem; /* 224px */
  padding: 1rem 1.5rem;
  background: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px solid rgba(184, 152, 101, 0.28);
  box-shadow: 0 4px 16px rgba(184, 152, 101, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 640px) {
  .partner-pod {
    height: 7.75rem; /* ~124px */
    min-width: 16.5rem; /* 264px */
    padding: 1.25rem 2rem;
  }
}

.partner-pod:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #B89865;
  box-shadow: 0 16px 36px rgba(184, 152, 101, 0.20);
}

.partner-pod img {
  height: 4.25rem !important;
  max-height: 4.75rem !important;
  width: auto !important;
  max-width: 88% !important;
  object-fit: contain !important;
  transform: scale(1.85) !important;
  transform-origin: center !important;
  filter: contrast(1.15) saturate(1.12) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

@media (min-width: 640px) {
  .partner-pod img {
    height: 5rem !important;
    max-height: 5.5rem !important;
    max-width: 90% !important;
    transform: scale(2.05) !important;
  }
}

.partner-pod:hover img {
  transform: scale(2.25) !important;
  filter: contrast(1.22) saturate(1.18) !important;
}

/* ========================================================
   HIGH-END AGENCY STANDARDS: DOUBLE-BEZEL & HAPTIC INTERACTION
   ======================================================== */

/* The Double-Bezel (Doppelrand / Nested Enclosure) */
.double-bezel-shell {
  position: relative;
  transform-style: preserve-3d;
  padding: 0.5rem;
  border-radius: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 239, 230, 0.85) 100%);
  border: 1px solid rgba(184, 152, 101, 0.28);
  box-shadow: 0 15px 35px -5px rgba(140, 110, 65, 0.09), 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* Champagne Effervescence Micro-Sparks */
.champagne-spark {
  position: fixed;
  pointer-events: none;
  border-radius: 9999px;
  background: radial-gradient(circle, #FFF8E7 0%, #D4AF37 60%, #8F7242 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 3px #FFFFFF;
  z-index: 99999;
  will-change: transform, opacity;
}
@media (min-width: 640px) {
  .double-bezel-shell {
    padding: 0.625rem;
  }
}
.double-bezel-shell:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 152, 101, 0.5);
  box-shadow: 0 25px 45px -8px rgba(140, 110, 65, 0.18), 0 8px 20px rgba(0, 0, 0, 0.05);
}

.double-bezel-core {
  border-radius: calc(2.25rem - 0.625rem);
  background: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Button-in-Button Trailing Icon Pod */
.nested-icon-pod {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
.group:hover .nested-icon-pod {
  transform: translate(3px, -2px) scale(1.06);
}

/* Dynamic Island Scrolled State */
#master-nav.nav-scrolled {
  top: 0.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 25px 50px -10px rgba(28, 34, 41, 0.16), inset 0 1px 2px rgba(255, 255, 255, 1);
  border-color: rgba(184, 152, 101, 0.4);
}

/* ========================================================
   SCROLL CHOREOGRAPHY & LUXURY MOTION 2026/2027
   Inspirado en Awwwards & directrices Emil Kowalski / Jakub Krehel
   ======================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(4px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Variantes direccionales para layouts asimétricos */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px) scale(0.985);
  filter: blur(4px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px) scale(0.985);
  filter: blur(4px);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(6px);
  transition: 
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Cascada armónica de delays (Stagger) */
.delay-75  { transition-delay: 75ms; }
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-250 { transition-delay: 250ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Accesibilidad estricta para usuarios con sensibilidad al movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Active Nav Pill Spying */
.nav-link.active-link {
  background-color: rgba(244, 239, 230, 0.95);
  color: #8F7242;
  box-shadow: 0 1px 3px rgba(140, 110, 65, 0.12);
}

/* ========================================================
   LUXURY INTERACTIVE MAP 2027 (LEAFLET CUSTOMIZATION)
   ======================================================== */
.luxury-map-shell {
  position: relative;
  width: 100%;
  border-radius: calc(2.25rem - 0.75rem);
  overflow: hidden;
  background-color: #FAF7F2;
}

#luxury-beach-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #FAF7F2;
  z-index: 10;
}

#luxury-beach-map .leaflet-tile-pane {
  filter: saturate(0.96) contrast(1.02);
}

#luxury-beach-map.leaflet-map-satellite .leaflet-tile-pane {
  filter: none;
}

/* Custom Beach Marker Pin */
.beach-marker-pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.beach-marker-pod:hover {
  transform: translate(-50%, -108%) scale(1.08);
  z-index: 999 !important;
}

.beach-marker-pulse {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 32px;
  background: rgba(184, 152, 101, 0.35);
  border-radius: 9999px;
  transform: translateY(50%);
  animation: marker-pulse-ring 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes marker-pulse-ring {
  0% { transform: translateY(50%) scale(0.4); opacity: 0.9; }
  80% { transform: translateY(50%) scale(2.4); opacity: 0; }
  100% { transform: translateY(50%) scale(2.6); opacity: 0; }
}

.beach-marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid #B89865;
  box-shadow: 0 10px 25px -5px rgba(28, 34, 41, 0.22), 0 2px 6px rgba(184, 152, 101, 0.25);
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #1C2229;
  transition: all 0.25s ease;
}

.beach-marker-pill.is-active {
  background: linear-gradient(135deg, #B89865 0%, #8F7242 100%);
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 12px 30px -4px rgba(143, 114, 66, 0.45);
}

.beach-marker-icon {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #F4EFE6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.beach-marker-pill.is-active .beach-marker-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.beach-marker-pointer {
  width: 9px;
  height: 9px;
  background: #B89865;
  transform: rotate(45deg) translateY(-4px);
  border-radius: 2px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.12);
  transition: background-color 0.25s ease;
}

.beach-marker-pod.active-loc .beach-marker-pointer {
  background: #8F7242;
}

/* Custom Leaflet Popups Override */
.leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(184, 152, 101, 0.35) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 50px -12px rgba(28, 34, 41, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: normal !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.leaflet-popup-tip {
  background: #FFFFFF !important;
  border: 1px solid rgba(184, 152, 101, 0.35) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(184, 152, 101, 0.25) !important;
  color: #1C2229 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  transition: all 0.2s ease !important;
  z-index: 30 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: #B89865 !important;
  color: #FFFFFF !important;
}

/* Custom Zoom Buttons in Leaflet */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 8px 20px -4px rgba(28, 34, 41, 0.16) !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

.leaflet-bar a {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #1C2229 !important;
  border: 1px solid rgba(184, 152, 101, 0.25) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
}

.leaflet-bar a:hover {
  background-color: #F4EFE6 !important;
  color: #8F7242 !important;
}

/* ========================================================
   PRELOADER MEGA PREMIUM 2027 (THE EDITORIAL HORIZON)
   ======================================================== */
#luxury-preloader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.85, 0, 0.15, 1), transform 0.75s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: opacity, transform;
}

#luxury-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}
/* ========================================================
   MOBILE NATIVE-APP POLISH 2027
   ======================================================== */

/* Scroll fade gradient hint for horizontal scroll containers */
.scroll-fade-right {
  position: relative;
}
.scroll-fade-right::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  background: linear-gradient(to right, transparent, var(--beach-sand, #FAF7F2));
  pointer-events: none;
  z-index: 5;
}

/* Category filter row on white background needs white fade */
.scroll-fade-white::after {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
}

/* View mode button active state in grid layout (mobile rounded-xl) */
@media (max-width: 639px) {
  .view-mode-btn.active {
    border-radius: 0.75rem;
  }
}

/* Map min-height override for mobile */
@media (max-width: 639px) {
  #luxury-beach-map {
    min-height: 400px;
  }
}

/* Establecimientos section mobile spacing */
@media (max-width: 639px) {
  .double-bezel-shell {
    padding: 0.375rem;
    border-radius: 1.5rem;
  }
  .double-bezel-core {
    border-radius: calc(1.5rem - 0.375rem);
  }
}

/* Instagram grid mobile minimum heights refinement */
@media (max-width: 639px) {
  .grid-cols-2 .double-bezel-shell {
    min-height: auto;
  }
}

/* Smooth momentum scroll for touch devices */
@supports (-webkit-overflow-scrolling: touch) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}
/* Category Drawer Bottom Sheet */
#category-sheet {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#category-sheet > div {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#category-sheet.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#category-sheet.is-open > div {
  transform: translateY(0) scale(1) !important;
}

.cat-sheet-btn.active {
  background: linear-gradient(135deg, rgba(184, 152, 101, 0.18) 0%, rgba(244, 239, 230, 0.95) 100%) !important;
  border-color: #B89865 !important;
  box-shadow: 0 4px 14px rgba(184, 152, 101, 0.15) !important;
}

/* Master Nav Smart Transform Transition */
#master-nav {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, top 0.3s ease !important;
}
