/* ===================================
   LIORAT MIAMI MAP - Styles (v2.1 - Modernizado)
   Glassmorphism & Crystal Aesthetic
   =================================== */

/* 1. Importar fuentes (Igual que en los otros plugins) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Variables unificadas */
  --lmm-font-serif: 'Playfair Display', serif;
  --lmm-font-sans: 'Inter', sans-serif;
  
  --lmm-crystal: rgba(255,255,255,.95); /* Más opaco */
  --lmm-border: rgba(17,17,17,.06);
  --lmm-shadow: 0 10px 28px rgba(0,0,0,.06);
  --lmm-text: #1a1a1a;
  --lmm-text-muted: #666;
  --lmm-radius: 12px;
  --lmm-radius-lg: 16px;
  --lmm-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --lmm-accent: #C5A059; /* Dorado Liorat */
  
  --lmm-glow-luxury: rgba(197, 160, 89, 0.4); /* Dorado ajustado */
  --lmm-glow-luxury-bright: rgba(255, 248, 240, 1);
}

/* Container */
.lmm-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 520px) {
  .lmm-container {
    padding: 40px 0;
  }
}

/* --------------------------------------------------------------------------------------------- */
/* 2. HEADER MODERNIZADO (Estilo Unificado) */
/* --------------------------------------------------------------------------------------------- */
.lmm-header {
  text-align: center;
  margin-bottom: 60px; /* Más aire */
  padding: 0 20px;
  animation: fadeInDown 0.8s ease;
}

.lmm-title {
  font-family: var(--lmm-font-serif);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--lmm-text);
  margin-bottom: 15px;
  margin-top: 39px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Énfasis en itálica dorada */
.lmm-title .lmm-title-emphasis {
    font-family: var(--lmm-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--lmm-accent);
    font-size: inherit; /* Hereda tamaño fluido */
}

/* Subtítulo moderno */
.lmm-subtitle {
  font-family: var(--lmm-font-sans);
  font-size: 0.95rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 10px;
  font-weight: 400;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------------------------- */

/* Filtros */
.lmm-filters {
  padding: 24px;
  margin-top: 80px;
  margin-bottom: 48px;
  text-align: center;
}

.lmm-filter-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lmm-filter-group:last-child {
  margin-bottom: 0;
}

.lmm-filter-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--lmm-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lmm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lmm-chip {
  appearance: none;
  border: 1px solid rgba(17,17,17,.12);
  background: #fff;
  border-radius: 9999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--lmm-text);
  cursor: pointer;
  transition: var(--lmm-transition);
}

.lmm-chip:hover {
  background: rgba(17,17,17,.04);
  border-color: rgba(17,17,17,.18);
  transform: translateY(-1px);
}

.lmm-chip.is-active {
  background: var(--lmm-text);
  color: #fff;
  border-color: var(--lmm-text);
}

/* Círculo */
.lmm-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 800px;
  padding: 80px 20px 120px;
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
}

.lmm-circle {
  width: var(--circle-size);
  height: var(--circle-size);
  max-width: 100vw;
  max-height: 100vw;
  position: relative;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(210, 180, 140, 0.3);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,.5);
  overflow: visible;
}

/* Centro del círculo - MIAMI como centro del universo */
.lmm-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1;
  z-index: 5;
}

.lmm-miami-sun {
  position: relative;
  text-align: center;
}

/* Efecto Cristal para MIAMI */
.lmm-miami-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 8px;
  position: relative;
  display: inline-block;
  
  /* Efecto Cristal */
  color: transparent; /* Hacemos el texto transparente */
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Sombra interna sutil para dar profundidad */
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  
  /* Animación de pulso (se mantiene la original) */
  animation: solarPulse 4s ease-in-out infinite;
}

/* Resplandor de cristal (reemplaza al ::before borroso) */
.lmm-miami-text::before {
  content: 'MIAMI';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  
  /* Mismo texto, pero borroso y detrás como un resplandor */
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.5); /* Color de resplandor blanco/cristal */
  filter: blur(20px); /* Un blur más pronunciado */
  opacity: 0.6;
}

/* Anillo orbital (mantenemos uno para estética) */
.lmm-orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(190, 150, 90, 0.4);
  pointer-events: none;
  animation: orbitRotate 25s linear infinite;
  width: 360px;
  height: 360px;
}

/* Animación de rotación orbital */
@keyframes solarPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

@keyframes orbitRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Botones de tiendas - Estilo planetas */
.lmm-store-btn {
  /* ELIMINAMOS --radius, --x, --y, y el transform antiguo */
  
position: absolute;
  /* Posición inicial (0,0) - JS la controlará */
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  
  /* El transform será aplicado por Matter.js */
  /* Ejemplo: transform: translate(150px, 200px) rotate(10deg); */
  
  /* Mantenemos tu estética glassmorphism */
  appearance: none;
  border: 3px solid transparent;
  background: 
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,240,255,.95)) padding-box,
    linear-gradient(135deg, rgba(210, 180, 140, 0.6), rgba(190, 150, 90, 0.3)) border-box;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  
  box-shadow: 
    0 4px 12px rgba(0,0,0,.08),
    0 2px 4px rgba(0,0,0,.06),
    inset 0 2px 4px rgba(255,255,255,.5);
  
  /* La transición se maneja por física, no por CSS */
  transition: opacity 0.3s ease, transform 0s linear; /* Solo transicionamos opacidad */
  
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  will-change: transform; /* Optimización */
  z-index: 10;
}

/* Hover y estados */
.lmm-store-btn:hover {
  /* El JS detendrá el hover si se está arrastrando */
  /* El scale lo aplicamos sobre el transform de la física */
  transform-style: preserve-3d;
  box-shadow: 
    0 12px 32px rgba(0,0,0,.15),
    0 4px 8px rgba(0,0,0,.1),
    0 0 45px rgba(210, 180, 140, 0.6), /* Brillo champagne */
    inset 0 2px 6px rgba(255,255,255,.6);
  z-index: 100;
}

.lmm-store-btn:hover .lmm-store-name {
  opacity: 1;
  bottom: -36px;
}

/* Ocultar tiendas filtradas */
.lmm-store-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  /* El JS lo congelará y moverá al centro */
  z-index: 1;
}


@keyframes orbitalPulse {
  0%, 100% {
    box-shadow: 
      0 4px 12px rgba(0,0,0,.06),
      0 2px 4px rgba(0,0,0,.04),
      0 0 20px rgba(147,51,234,.15),
      0 0 40px rgba(59,130,246,.1);
  }
  50% {
    box-shadow: 
      0 4px 12px rgba(0,0,0,.06),
      0 2px 4px rgba(0,0,0,.04),
      0 0 30px rgba(147,51,234,.25),
      0 0 60px rgba(59,130,246,.15);
  }
}

.lmm-store-btn img {
  width: 100%;
  height: 100%;
  min-width: 0; /* <-- ¡AÑADE SOLO ESTA LÍNEA! */
  object-fit: contain;
  border-radius: 50%;
  transition: var(--lmm-transition);
}

.lmm-store-btn .lmm-store-initial {
  font-size: 32px;
  font-weight: 700;
  color: var(--lmm-text);
  font-family: 'Playfair Display', Georgia, serif;
}

.lmm-store-btn .lmm-store-name {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--lmm-text);
  opacity: 0;
  transition: var(--lmm-transition);
  pointer-events: none;
}


/* ===================================
   FLOATING PARTICLES EFFECT
   =================================== */

.lmm-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

.lmm-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  /* Color champagne para TODAS las partículas */
  background: radial-gradient(circle, var(--lmm-glow-luxury-bright), var(--lmm-glow-luxury) 30%, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat var(--duration) ease-in-out infinite;
  opacity: 0;
  box-shadow: 
    0 0 10px var(--lmm-glow-luxury-bright),
    0 0 20px var(--lmm-glow-luxury);
}

/* Hacemos algunas más pequeñas, pero del mismo color */
.lmm-particle:nth-child(even) {
  width: 10px;
  height: 10px;
}

.lmm-particle:nth-child(3n) {
  width: 8px;
  height: 8px;
}

/* Mantenemos tu efecto de parpadeo */
.lmm-particle:nth-child(4n) {
  animation: particleFloat var(--duration) ease-in-out infinite, starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(var(--start-x), var(--start-y)) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(var(--mid-x), var(--mid-y)) scale(1);
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(0);
    opacity: 0;
  }
}

/* Modal */
.lmm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--lmm-transition);
}

.lmm-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lmm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.lmm-modal-content {
  position: relative;
  background: var(--lmm-crystal);
  border: 1px solid var(--lmm-border);
  border-radius: var(--lmm-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(12px) saturate(1.2);
  transform: scale(0.95);
  transition: var(--lmm-transition);
}

.lmm-modal.is-open .lmm-modal-content {
  transform: scale(1);
}

.lmm-modal-close {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  z-index: 10;
  
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.9);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  /* line-height: 1; */ /* Reemplazado por flex */
  cursor: pointer;
  color: var(--lmm-text);
  
  /* --- FIX 3: Centrado del ícono '×' --- */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1; /* Es mejor mantenerlo para el 'times' */
  /* --- Fin Fix 3 --- */
  
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: var(--lmm-transition);
}

.lmm-modal-close:hover {
  background: var(--lmm-text);
  color: #fff;
  transform: rotate(90deg);
}

.lmm-modal-body {
  padding: 32px;
}

/* Loader */
.lmm-loader {
  text-align: center;
  padding: 40px;
  color: var(--lmm-text-muted);
}

/* Modal Header */
.lmm-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.lmm-modal-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.lmm-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--lmm-text);
  margin: 0 0 12px;
}

.lmm-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.lmm-tag {
  padding: 6px 12px;
  background: rgba(17,17,17,.06);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lmm-text);
}

/* Modal Image */
.lmm-modal-image {
  margin: 0 -32px 24px;
  overflow: hidden;
}

.lmm-modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Modal Details */
.lmm-modal-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lmm-text-muted);
  margin-bottom: 24px;
}

.lmm-modal-grid {
  display: grid;
  gap: 20px;
}

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

.lmm-icon {
  flex-shrink: 0;
  color: var(--lmm-text-muted);
  margin-top: 2px;
}

.lmm-detail-item strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--lmm-text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lmm-detail-item p {
  margin: 0;
  font-size: 15px;
  color: var(--lmm-text-muted);
  line-height: 1.6;
}

.lmm-detail-item a {
  color: var(--lmm-text);
  text-decoration: none;
  font-weight: 600;
  transition: var(--lmm-transition);
}

.lmm-detail-item a:hover {
  opacity: 0.7;
}

.lmm-zone-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(17,17,17,.06);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

/* Modal Actions */
.lmm-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--lmm-border);
}

.lmm-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--lmm-transition);
  cursor: pointer;
}

.lmm-btn-primary {
  background: var(--lmm-text);
  color: #fff;
  border: 0;
}

.lmm-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.lmm-btn-secondary {
  background: #fff;
  color: var(--lmm-text);
  border: 1px solid var(--lmm-border);
}

.lmm-btn-secondary:hover {
  background: rgba(17,17,17,.04);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .lmm-title {
    font-size: 32px;
  }
  
  .lmm-container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .lmm-circle {
    --circle-size: 400px !important;
  }
  
  .lmm-store-btn {
    width: 70px;
    height: 70px;
  }
  
  .lmm-modal-body {
    padding: 20px;
  }
  
  .lmm-modal-actions {
    flex-direction: column;
  }
  
  .lmm-modal-image {
    margin: 0 -20px 20px;
  }
}

@media (max-width: 520px) {
  .lmm-circle {
    --circle-size: 95vw !important;
  }
  
  .lmm-store-btn {
    width: 60px;
    height: 60px;
  }
  
  .lmm-store-btn .lmm-store-initial {
    font-size: 24px;
  }
  
  .lmm-filters {
    padding: 16px;
  }
  
  .lmm-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ===================================
   NEW FEATURES STYLES - v2.0
   =================================== */

/* Favorite Button */
.lmm-modal-header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 16px;
}

.lmm-favorite-btn {
  position: absolute;
  top: 0;
  right: 0;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--lmm-transition);
  color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.lmm-favorite-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.lmm-favorite-btn.is-favorite {
  color: #e74c3c;
}

.lmm-favorite-btn.is-favorite:hover {
  color: #c0392b;
}

/* Favorited stores badge in circle */
.lmm-store-btn.is-favorited::after {
  content: '❤️';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 18px;
  pointer-events: none;
}

/* Gallery Slider */
.lmm-modal-gallery {
  margin: 0 -32px 24px;
  position: relative;
  background: #f9fafb;
}

.lmm-gallery-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.lmm-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lmm-gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lmm-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lmm-gallery-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.lmm-gallery-prev,
.lmm-gallery-next {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.95);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: var(--lmm-transition);
  color: var(--lmm-text);
}

.lmm-gallery-prev:hover,
.lmm-gallery-next:hover {
  background: #fff;
  transform: scale(1.1);
}

.lmm-gallery-dots {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.95);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.lmm-gallery-dot {
  appearance: none;
  border: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17,17,17,.3);
  cursor: pointer;
  transition: var(--lmm-transition);
  padding: 0;
}

.lmm-gallery-dot.is-active {
  background: var(--lmm-text);
  width: 24px;
  border-radius: 4px;
}

/* Distance Display */
.lmm-distance {
  margin-top: 8px;
}

.lmm-distance-text {
  color: var(--lmm-text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Views Badge */
.lmm-tag-views {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

/* Map Embed */
.lmm-modal-map {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--lmm-border);
}

.lmm-toggle-map {
  appearance: none;
  border: 1px solid var(--lmm-border);
  background: #fff;
  padding: 12px 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--lmm-transition);
  margin: 0 auto;
}

.lmm-toggle-map:hover {
  background: rgba(17,17,17,.04);
  border-color: rgba(17,17,17,.18);
}

.lmm-map-embed {
  margin-top: 16px;
}

.lmm-map-embed iframe {
  width: 100%;
  border-radius: 12px;
}

/* Notifications */
.lmm-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--lmm-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lmm-notification.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive - Gallery */
@media (max-width: 768px) {
  .lmm-modal-gallery {
    margin: 0 -20px 20px;
  }
  
  .lmm-gallery-slider {
    height: 300px;
  }
  
  .lmm-gallery-controls {
    bottom: 12px;
  }
  
  .lmm-gallery-prev,
  .lmm-gallery-next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  /* Responsive para círculo en tablets */
  .lmm-circle-container {
    min-height: 600px;
    padding: 60px 0 100px;
  }
  
  .lmm-store-btn {
    width: 70px;
    height: 70px;
  }
  
  .lmm-store-initial {
    font-size: 24px;
  }
  
  .lmm-miami-text {
    font-size: 56px;
    letter-spacing: 6px;
  }
  
  .lmm-orbital-ring {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 520px) {
  .lmm-gallery-slider {
    height: 250px;
  }
  
  .lmm-favorite-btn {
    width: 40px;
    height: 40px;
  }
  
  .lmm-gallery-prev,
  .lmm-gallery-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .lmm-gallery-dots {
    padding: 6px 12px;
  }
  
  .lmm-gallery-dot {
    width: 6px;
    height: 6px;
  }
  
  .lmm-gallery-dot.is-active {
    width: 18px;
  }
  
  /* Responsive para círculo en móviles */
  .lmm-circle-container {
    min-height: 450px;
    padding: 20px 0 80px;
    margin-bottom: 40px;
  }
  
  .lmm-store-btn {
    /* CRÍTICO: Desactivar animación de pulso en móvil */
    animation: none !important;
    transition: none !important;
    
  }
  
  .lmm-store-initial {
    font-size: 26px;
  }
  
  .lmm-store-btn img {
    padding: 6px;
    /* Forzar rendering limpio en imágenes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .lmm-miami-text {
    font-size: 36px;
    letter-spacing: 4px;
  }
  
  .lmm-miami-text::before {
    font-size: 36px;
    letter-spacing: 4px;
  }
  
  .lmm-orbital-ring {
    width: 220px;
    height: 220px;
  }
  
  .lmm-particle {
    width: 8px;
    height: 8px;
  }
  
  .lmm-particle:nth-child(even) {
    width: 6px;
    height: 6px;
  }
  
  .lmm-particle:nth-child(3n) {
    width: 5px;
    height: 5px;
  }
  
  .lmm-filters {
    margin-top: 40px;
    padding: 16px;
  }
  
  .lmm-filter-label {
    font-size: 12px;
  }
  
  .lmm-chip {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .lmm-title {
    font-size: 32px;
  }
  
  .lmm-subtitle {
    font-size: 15px;
  }
}

/* Map button moved to top position */
.lmm-modal-map-top {
  margin: 0 0 24px 0;
  padding: 0 32px;
  border-top: 0;
}

.lmm-modal-map-top .lmm-map-embed {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .lmm-modal-map-top {
    padding: 0 20px;
  }
}

/* ===================================
   OVERLAY BUTTONS (PRO VERSION)
   =================================== */

/* Overlay buttons container */
.lmm-gallery-overlay-buttons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 20;
  pointer-events: none;
}

.lmm-gallery-overlay-buttons > * {
  pointer-events: auto;
}

/* Overlay button base style */
.lmm-overlay-btn {
  appearance: none;
  border: 0;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lmm-overlay-btn:hover {
  background: rgba(17, 17, 17, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.lmm-overlay-btn svg {
  flex-shrink: 0;
}

/* Gallery info button (left) */
.lmm-gallery-info-btn {
  background: rgba(255, 255, 255, 0.85);
  color: #111111;
}

.lmm-gallery-info-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* Map button when in overlay */
.lmm-gallery-overlay-buttons .lmm-toggle-map {
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
}

/* Map embed inside gallery */
.lmm-modal-gallery .lmm-map-embed {
  margin: 0;
  background: #f9fafb;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.lmm-modal-gallery .lmm-map-embed iframe {
  border-radius: 0;
}

/* For single image with overlay */
.lmm-modal-image {
  position: relative;
  margin: 0 -32px 24px;
  overflow: hidden;
}

.lmm-modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.lmm-modal-image .lmm-gallery-overlay-buttons {
  justify-content: flex-end;
}

/* Responsive overlay buttons */
@media (max-width: 768px) {
  .lmm-gallery-overlay-buttons {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  
  .lmm-overlay-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .lmm-overlay-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .lmm-modal-image {
    margin: 0 -20px 20px;
  }
}

@media (max-width: 520px) {
  .lmm-gallery-overlay-buttons {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  
  .lmm-overlay-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .lmm-overlay-btn span {
    display: none;
  }
  
  /* Show only icons on very small screens */
  .lmm-overlay-btn svg {
    margin: 0;
  }
}

/* Remove old map styles that are no longer needed */
.lmm-modal-map {
  display: none;
}

.lmm-modal-map-top {
  display: none;
}

/* ===================================
   MAIN IMAGE CONTAINER WITH TOGGLES
   =================================== */

.lmm-modal-image-container {
  position: relative;
  margin: 0 -32px 24px;
  overflow: hidden;
}

.lmm-modal-main-image {
  position: relative;
}

.lmm-modal-main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Gallery and Map take full space when shown */
.lmm-modal-gallery,
.lmm-map-embed {
  position: relative;
  width: 100%;
}

/* --- INICIO FIX 1 y 2: Refactor de botones de cierre --- */

/* Estilos base compartidos para botones de cerrar (Galería y Mapa) */
.lmm-gallery-close-btn,
.lmm-map-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 900; /* FIX 1: Z-index aumentado para estar sobre el mapa */
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* FIX 2: Botón de cerrar GALERÍA (fondo blanco y texto) */
.lmm-gallery-close-btn {
  background: rgba(255, 255, 255, 0.85) !important; /* Fondo blanco */
  backdrop-filter: blur(8px);
  color: #111111 !important; /* Texto oscuro */
  
  /* Estilos para centrar el &times; (copiados del .lmm-modal-close) */
  font-size: 24px;
  line-height: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lmm-gallery-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Botón de cerrar MAPA (fondo oscuro, con texto) */
.lmm-map-close-btn {
  background: rgba(17, 17, 17, 0.75); /* Fondo oscuro (original) */
  backdrop-filter: blur(8px);
  color: #ffffff; /* Ícono blanco (original) */
  
  /* Estilos de la versión de texto que ya existían */
  width: auto;
  padding: 10px 16px;
  border-radius: 9999px;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.lmm-map-close-btn:hover {
  background: rgba(17, 17, 17, 0.9);
  transform: scale(1.1);
}

/* --- FIN FIX 1 y 2 --- */


/* Map embed positioning */
.lmm-map-embed {
  background: #f9fafb;
}

.lmm-map-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .lmm-modal-image-container {
    margin: 0 -20px 20px;
  }
  
  .lmm-modal-main-image img {
    height: 300px;
  }
  
  .lmm-gallery-close-btn,
  .lmm-map-close-btn {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 520px) {
  .lmm-modal-main-image img {
    height: 250px;
  }
  
  .lmm-gallery-close-btn {
    width: 36px;
    height: 36px;
  }
  
  .lmm-map-close-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ===================================
   LEAFLET MAP STYLES
   =================================== */

.lmm-leaflet-map {
  width: 100%;
  height: 400px;
  border-radius: 0;
}

/* --- FIX 1: Asegurar que los controles de Leaflet estén visibles --- */
.lmm-map-embed .leaflet-control-container {
    z-index: 850 !important;
}
/* --- Fin Fix 1 --- */


/* Override Leaflet default styles to match LIORAT aesthetic */
.lmm-map-embed .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.lmm-map-embed .leaflet-popup-content {
  margin: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.lmm-map-embed .leaflet-popup-tip {
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Control buttons styling */
.lmm-map-embed .leaflet-control-zoom a {
  border-radius: 6px;
  border: 1px solid rgba(17,17,17,.12);
  color: #111;
}

.lmm-map-embed .leaflet-control-zoom a:hover {
  background: rgba(17,17,17,.04);
}

/* ===================================
   FIX: Forzar color del icono SVG de cierre de galería
   Usando un selector de alta especificidad.
   =================================== */

.lmm-modal-content .lmm-gallery-close-btn svg {
  stroke: #111111 !important;
}

.lmm-physics-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

@media (max-width: 768px) {
  .lmm-modal {
    /* Aumenta el padding superior a 60px (o el valor que prefieras) */
    padding-top: 80px;
  }
}
/* ===================================
   FIX: Colores de Botones de Overlay
   =================================== */

/* Botón de Galería (Coral) */
.lmm-gallery-toggle-btn {
  background: #FF6F61; /* Color Coral */
  color: #FFFFFF; /* Texto blanco */
}

/* Botón de Mapa (Turquesa) */
.lmm-toggle-map {
  background: #00A79D; /* Color Turquesa */
  color: #FFFFFF; /* Texto blanco */
}

/* Efecto hover (opcional): oscurecerlos un poco */
.lmm-gallery-toggle-btn:hover {
  background: #e66356;
}

.lmm-toggle-map:hover {
  background: #008f86;
}

/* ===================================
   ESTILOS SHOPPER'S PICKS (Paso 2 y 3)
   =================================== */

.lmm-shopper-picks {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--lmm-border);
}

.lmm-shopper-picks-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--lmm-text);
  margin: 0 0 20px;
  text-align: center;
}

.lmm-pick-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.5);
  border-radius: var(--lmm-radius);
  padding: 16px;
  border: 1px solid var(--lmm-border);
}

.lmm-pick-media {
  flex: 0 0 120px; /* Ancho fijo para la imagen/video */
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.lmm-pick-media img,
.lmm-pick-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.lmm-pick-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lmm-pick-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lmm-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.lmm-pick-price {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--lmm-text-muted);
  margin-bottom: 12px;
}

/* El botón "Lo Quiero" */
.lmm-btn-request {
  display: inline-block;
  width: fit-content;
  background: var(--lmm-text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--lmm-transition);
  margin-top: auto; /* Empuja el botón al fondo */
  text-align: center;
}

.lmm-btn-request:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Responsive para móvil */
@media (max-width: 520px) {
  .lmm-pick-item {
    flex-direction: column;
  }
  .lmm-pick-media {
    flex-basis: auto;
    width: 100%;
    height: 180px; /* Más altura para el video en móvil */
  }
  .lmm-btn-request {
    width: 100%; /* Botón de ancho completo en móvil */
  }
}


/* ===================================
   ESTILOS "LATEST PICKS"
   =================================== */

/* El nuevo botón de filtro */
.lmm-latest-picks-group {
  margin-bottom: 24px; /* Añade espacio debajo del botón */
}

/* Esto añade un borde superior a los grupos de filtros que siguen al primero */
.lmm-filters .lmm-filter-group ~ .lmm-filter-group {
  margin-top: 24px;
  border-top: 1px solid rgba(17,17,17,.08);
  padding-top: 24px;
}

.lmm-latest-picks-btn {
  background: rgba(210, 180, 140, 0.1); /* Fondo crema/champagne muy sutil */
  color: #a07d50; /* Texto en un tono dorado oscuro */
  border-color: rgba(190, 150, 90, 0.3);
  font-weight: 700 !important;
  font-size: 15px !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lmm-latest-picks-btn:hover {
  background: var(--lmm-text, #111111); /* Fondo oscuro */
  color: #FFFFFF; /* Texto blanco */
  border-color: var(--lmm-text, #111111); /* Borde oscuro */
}

/* El botón "Ver en Tienda" dentro del modal */
.lmm-pick-open-store {
  appearance: none;
  border: 1px solid var(--lmm-border);
  background: #fff;
  color: var(--lmm-text);
  padding: 8px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--lmm-transition);
  margin-bottom: 12px; /* Espacio antes del botón de WhatsApp */
  width: 100%;
}

.lmm-pick-open-store:hover {
  background: rgba(17,17,17,.04);
}

/* * Ajustes para el botón "Latest Picks" 
 * (para alinear el nuevo icono SVG)
 */
.lmm-latest-picks-btn {
  /* Aseguramos que use flex y tenga espacio */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Espacio entre el icono y el texto */
}