* { box-sizing: border-box; }

/* ── LAYOUT PRINCIPAL ── */
.ciudades-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 72px);
  min-height: 500px;
}

/* ── PANEL IZQUIERDO ── */
.ciudades-panel {
  display: flex;
  flex-direction: column;
  background: #faf8f5;
  border-right: 1.5px solid #ebe6de;
  overflow: hidden;
  margin-top:60px;
}

.ciudades-panel-header {
  padding: 32px 24px 20px 24px;
  flex-shrink: 0;
  background: #faf8f5;
}

.ciudades-panel-header h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.ciudades-panel-header p {
  font-size: 1.2em;
  color: #888;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Filtro ciudad */
.ciudades-filtro {
  position: relative;
}

.ciudades-filtro select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 1.5px solid #e3ddd6;
  border-radius: 12px;
  font-size: .95em;
  font-family: 'Geist', Arial, sans-serif;
  color: #333;
  background: #fff;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}

.ciudades-filtro select:focus { border-color: #fa6600; }

.ciudades-filtro-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #aaa;
  display: flex;
  align-items: center;
}

/* Lista hoteles */
.ciudades-lista {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px 16px;
  scrollbar-width: thin;
  scrollbar-color: #e0d5c8 transparent;
}

.ciudades-lista::-webkit-scrollbar { width: 5px; }
.ciudades-lista::-webkit-scrollbar-track { background: transparent; }
.ciudades-lista::-webkit-scrollbar-thumb {
  background: #e0d5c8;
  border-radius: 3px;
}

/* Card hotel */
.hotel-card-mapa {
  background: #fff;
  border: 1.5px solid #ebe6de;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.hotel-card-mapa:hover {
  border-color: #fa6600;
  box-shadow: 0 4px 16px rgba(250,102,0,0.10);
  transform: translateY(-1px);
}

.hotel-card-mapa.activo {
  border-color: #fa6600;
  background: #fff8f3;
  box-shadow: 0 4px 16px rgba(250,102,0,0.12);
}

.hotel-card-mapa h3 {
  font-size: .97em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.hotel-card-mapa .hcm-fecha {
  font-size: .78em;
  color: #aaa;
  margin: 0 0 10px 0;
}
.hotel-card-mapa {
  background: #fff;
  border: 1.5px solid #ebe6de;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.hotel-card-mapa:hover {
  border-color: #fa6600;
  box-shadow: 0 4px 16px rgba(250,102,0,0.10);
  transform: translateY(-1px);
}

.hotel-card-mapa.activo {
  border-color: #fa6600;
  background: #fff8f3;
  box-shadow: 0 4px 16px rgba(250,102,0,0.12);
}

.hotel-card-mapa h3 {
  font-size: .97em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.hotel-card-mapa .hcm-fecha {
  font-size: .78em;
  color: #aaa;
  margin: 0 0 10px 0;
}

/* ── Overlay hint mapa ── */
.ciudades-mapa {
  position: relative;
}

.ciudades-mapa .cw-mapa-overlay-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: .95em;
  font-weight: 600;
  letter-spacing: .5px;
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
}

.ciudades-mapa.activo .cw-mapa-overlay-hint {
  opacity: 0;
}

/* ── BADGE NIVEL ── */
.hcm-nivel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: .82em;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  width: 100px;
}

/* BRONCE */
.hcm-nivel.bronce {
  background: linear-gradient(
    135deg,
    #c8824a 0%, #a0522d 20%, #cd7f32 40%,
    #8b4513 60%, #cd853f 80%, #a0522d 100%
  );
  color: #fff8f0;
  border: 1.5px solid #8b4513;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ORO */
.hcm-nivel.oro {
  background: linear-gradient(135deg, #f5c518 0%, #e8a400 40%, #ffd700 60%, #c8860a 100%);
  color: #5a3a00;
  border: 1.5px solid #c8860a;
}
.hcm-nivel.oro::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shine-badge 2.5s ease-in-out infinite;
}

/* PLATA — fix: antes era .platino */
.hcm-nivel.plata,
.hcm-nivel.platino {
  background: linear-gradient(135deg, #d0d8e4 0%, #b0bec5 40%, #e8edf2 60%, #90a4ae 100%);
  color: #263238;
  border: 1.5px solid #90a4ae;
}
.hcm-nivel.plata::after,
.hcm-nivel.platino::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shine-badge 2s ease-in-out infinite;
}

@keyframes shine-badge {
  0%   { left: -100%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}
.ciudades-sin-hoteles {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  font-size: .95em;
}

/* ── MAPA ── */
.ciudades-mapa {
  position: relative;
  background: #e8e0d5;
}

#mapa {
  width: 100%;
  height: 100%;
}

/* Popup flotante */
.mapa-popup {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 18px 22px;
  min-width: 260px;
  max-width: 320px;
  z-index: 1000;
  animation: popupIn .2s ease;
}

@keyframes popupIn {
  from { opacity:0; transform: translateX(-50%) translateY(8px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0);   }
}

.mapa-popup.visible { display: block; }

.mapa-popup-cerrar {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 4px;
}

.mapa-popup h4 {
  font-size: 1em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  padding-right: 20px;
  line-height: 1.3;
}

.mapa-popup .mp-ciudad {
  font-size: .82em;
  color: #aaa;
  margin: 0 0 12px 0;
}

.mapa-popup .mp-nivel { margin-bottom: 14px; }

.mapa-popup-btn {
  display: block;
  background: #fa6600;
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9em;
  transition: background .15s;
}

.mapa-popup-btn:hover { background: #d94d00; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  /* Layout: panel arriba, mapa abajo — sin espacio extra */
  .ciudades-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;   /* mapa ocupa el espacio restante */
    height: calc(100vh - 60px);     /* ocupa toda la pantalla menos el header */
    min-height: 0;
  }

  /* Panel lista */
  .ciudades-panel {
    max-height: none;
    height: auto;
    border-right: none;
    border-bottom: 1.5px solid #ebe6de;
    display: flex;
    flex-direction: column;
	margin-top: 5px;
  }

  .ciudades-panel-header {
    padding: 16px 16px 12px 16px;
  }

  .ciudades-panel-header h1 {
    font-size: 1.2em;
    margin-bottom: 6px;
  }

  .ciudades-panel-header p {
    font-size: .88em;
  }

  /* Lista de hoteles */
  .ciudades-lista {
    height: auto;
    max-height: 38vh;
    overflow-y: auto;
    padding: 8px 12px 12px;
    margin-bottom: 8px;             /* pequeño margen antes del mapa */
  }

  /* Cards */
  .hotel-card-mapa {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
  }

  .hotel-card-mapa .cw-hotel-nivel {
    width: auto;
    min-width: 70px;
    padding: 5px 10px;
    font-size: .78em;
    letter-spacing: .5px;
    margin: 0;
    justify-self: end;
  }

  .hotel-card-mapa h3 {
    font-size: .95em;
    margin: 0;
    height: auto;
  }

  .hotel-card-mapa p {
    font-size: .8em;
    margin: 0;
    grid-column: 1;
  }

  /* Mapa — ocupa todo el espacio restante hasta el footer */
  .ciudades-mapa {
    height: 100%;
    min-height: 200px;
    flex: 1;
  }

  /* El mapa Leaflet también debe ocupar el 100% */
  .ciudades-mapa > #mapa-ciudades {
    height: 100% !important;
    width: 100% !important;
  }

  .mapa-popup {
    min-width: 120px;
    bottom: 12px;
  }

  .ciudades-panel-header select {
    width: 100%;
    font-size: .9em;
    padding: 10px 12px;
  }
  /* Popup — compacto en móvil */
  .mapa-popup {
    min-width: 0;
    width: 180px;
    padding: 10px 12px;
    border-radius: 10px;
    gap: 4px;
  }

  /* Botón cerrar */
  .mapa-popup-close {
    width: 20px;
    height: 20px;
    font-size: .8em;
    top: 6px;
    right: 6px;
  }

  /* Nombre del hotel */
  #popup-nombre {
    font-size: .85em;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  /* Ciudad */
  #popup-ciudad {
    font-size: .72em;
  }

  /* Badge nivel */
  #popup-nivel .hcm-nivel {
    font-size: .72em;
    padding: 3px 8px;
  }

  /* Botón ver certificación */
  #popup-link {
    font-size: .78em;
    padding: 7px 10px;
    border-radius: 7px;
    margin-top: 4px;
  }
}

@media (max-width: 400px) {
  .ciudades-lista { max-height: 32vh; }
}
/* ── HEADER SÓLIDO (hoteles, ciudades, certificacion) ── */
.cw-header-solid {
  position: relative !important;
  background: #fff !important;
  position: fixed !important;   /* ← agrega esto */
  border-bottom: 1.5px solid #f0e6d6 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cw-header-solid .cw-nav a {
  color: #4d4e51 !important;
}

.cw-header-solid .cw-nav a:hover,
.cw-header-solid .cw-nav a.active {
  color: #fa6600 !important;
}

.cw-header-solid .cw-logo {
  /* por si el logo tiene versión oscura */
}
/* ── FIX NAV ── */
.cw-header {
  position: relative;
  z-index: 2000;
}

/* ── FIX LOGO TAMAÑO ── */
.cw-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ── FIX ALTURA LAYOUT (descuenta el header real) ── */
.ciudades-layout {
  height: calc(100vh - 72px);
}

/* ── FIX MAPA z-index menor al nav ── */
.ciudades-mapa {
  z-index: 1;
}

#mapa {
  z-index: 1;
}

/* ── FIX LEAFLET tiles z-index ── */
.leaflet-pane {
  z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 500 !important;
}
/* ── FIX BOTÓN NAV ── */
.cw-btn-nav {
  background: #fa6600;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .92em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}

.cw-btn-nav:hover {
  background: #d94d00;
}
/* ── FOOTER ── */
.cw-footer {
  background: #2c1a0e;
  color: #fff;
  
  margin-top: 0;
}

.cw-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 40px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.cw-footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.cw-footer-tagline {
  font-size: 1.25em;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.cw-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-footer-col-title {
  font-size: .75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.cw-footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: .95em;
  opacity: .85;
  transition: opacity .15s;
}

.cw-footer-col a:hover { opacity: 1; }

.cw-footer-dato {
  font-size: .88em;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-footer-dato strong {
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .5;
  font-weight: 700;
}

.cw-footer-redes {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.cw-footer-redes a {
  color: #fff;
  opacity: .75;
  transition: opacity .15s, transform .15s;
  display: flex;
  align-items: center;
}

.cw-footer-redes a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Responsive footer */
@media (max-width: 768px) {
  .cw-footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 20px 28px 20px;
    gap: 28px;
  }
}
/* ── Overlay "clic para interactuar" ── */
.ciudades-mapa {
  position: relative;  /* asegúrate que ya lo tiene */
}

