/* ========================================== 
   SMB MULTI — CSS PRO (LIMPIO FINAL)
   - Grid responsive
   - Cards pro
   - Modal calendario + modal unidades (iOS safe)
   - Resumen tarifario
   - Selector unidades (.is-selected)
   - ✅ TOPBAR FECHAS: BARRA FIXED FULL WIDTH bajo header
   - ✅ Results/Detail/Unidades: z-index ordenado
========================================== */

/* =========================
   0) BASE + SEGURIDAD
========================= */
.smb-wrapper,
.smb-wrapper *{ box-sizing:border-box; }

.smb-wrapper{ width:100%; max-width:100%; }

/* Bloqueo scroll del fondo (iOS safe) */
html.smb-modal-open,
body.smb-modal-open{
  overflow:hidden !important;
  height:100% !important;
  touch-action:none;
}

/* Variables de offset (se setean por JS) */
:root{
  --smb-header-h: 0px;
  --smb-datebar-h: 64px;
}

/* =========================
   1) FORM / ERRORES / HINTS
========================= */
.smb-wrapper .smb-reserva-form{
  padding:16px 18px 18px;
  border:1px solid #48c774;
  border-radius:12px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
}

.smb-wrapper .smb-reserva-form p{ margin:0 0 10px; }

.smb-wrapper .smb-reserva-form input,
.smb-wrapper .smb-reserva-form textarea,
.smb-wrapper .smb-reserva-form select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d0d7de;
  font-size:14px;
  outline:none;
  background:#fff;
}

.smb-wrapper .smb-reserva-form input:focus,
.smb-wrapper .smb-reserva-form textarea:focus,
.smb-wrapper .smb-reserva-form select:focus{
  border-color:#2d9cdb;
  box-shadow:0 0 0 3px rgba(45,156,219,.14);
}

.smb-wrapper .smb-errores{
  display:none;
  margin:10px 0 12px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(220,53,69,.35);
  background:rgba(220,53,69,.08);
  color:#b02a37;
  font-weight:800;
}

.smb-wrapper .smb-hint{
  font-size:13px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(45,156,219,.08);
  border:1px solid rgba(45,156,219,.18);
  color:#1f4f66;
  margin:10px 0 12px;
  font-weight:700;
}

.smb-wrapper .smb-empty{
  font-size:13px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(220,53,69,.08);
  border:1px solid rgba(220,53,69,.18);
  color:#8b1d2a;
  margin:10px 0 12px;
  font-weight:800;
}

/* Oculta el input hidden de fechas */
.smb-wrapper .smb-fechas-hidden{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* =========================
   2) TOPBAR FECHAS — BARRA FIJA FULL WIDTH
   Selector REAL: .smb-fechas-resumen.smb-topbar
========================= */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar{
  position:fixed !important;
  top: var(--smb-header-h, 0px) !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  transform:none !important;
  box-sizing:border-box !important;
  z-index:1000000 !important;

  padding:10px 12px !important;

  display:flex !important;
  gap:0 !important;
  align-items:stretch !important;

  /* ✅ versión PRO (glass) definitiva */
  background: rgba(45, 156, 219, 0.32) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  border-bottom: 1px solid rgba(255,255,255,.28) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.12) !important;
}

/* Botones: una sola barra (pegados) */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn{
  flex:1 1 50% !important;
  min-width:0 !important;

  border:0 !important;
  border-radius:0 !important;
  margin:0 !important;

  background:transparent !important;
  color:#fff !important;

  padding:10px 14px !important;
  min-height:52px !important;

  text-align:left !important;
  font-weight:900 !important;
  cursor:pointer !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:6px !important;
}

/* “Llegada / Salida” */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn .label{
  font-size: 11px !important;
  letter-spacing: .6px !important;
  text-transform: uppercase !important;
  opacity: .92 !important;
  font-weight: 800 !important;
}

/* “SELECCIONAR” o fecha */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn strong,
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn #smb-from-text,
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn #smb-to-text{
  font-size: 15px !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;
}

/* Separador vertical */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn + .smb-fecha-btn{
  border-left: 1px solid rgba(255,255,255,.22) !important;
}

/* Hover pro */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn:hover{
  background: rgba(255,255,255,.10) !important;
}

/* Asegura texto visible (por si algún reset lo apaga) */
.smb-wrapper-multi .smb-fechas-resumen.smb-topbar .smb-fecha-btn *{
  visibility:visible !important;
  opacity:1 !important;
  color:#fff !important;
}

/* Empuja el contenido del form para que NO quede tapado por la barra fija */
.smb-wrapper-multi form.smb-reserva-form{
  padding-top: calc(var(--smb-datebar-h, 64px) + 12px) !important;
}

/* =========================
   3) LAYOUT (MAIN/ASIDE)
========================= */
.smb-layout{ display:block; }

@media (min-width: 900px){
  .smb-layout{
    display:grid;
    grid-template-columns: 1.4fr .9fr;
    gap:14px;
    align-items:start;
  }
}

.smb-col-aside .smb-step-datos{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,0.04);
}

.smb-col-aside .smb-step-datos button[type="submit"]{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:0;
  background:#48c774;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.smb-col-aside .smb-step-datos button[type="submit"]:hover{ filter:brightness(0.98); }

/* =========================
   4) LISTA ALOJAMIENTOS (GRID)
========================= */
.smb-alojamientos-lista{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:6px;
}

@media (min-width: 640px){
  .smb-alojamientos-lista{ grid-template-columns:1fr 1fr; }
}
@media (min-width: 1100px){
  .smb-alojamientos-lista{ grid-template-columns:1fr 1fr; }
}

/* =========================
   5) CARD PRO
========================= */
.smb-card{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
  padding:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:120px;
}

.smb-card.smb-card--selected{
  border-color: rgba(72,199,116,.55);
  box-shadow:0 0 0 3px rgba(72,199,116,.14), 0 10px 22px rgba(0,0,0,0.06);
}

.smb-aloj-card{ display:flex; gap:10px; align-items:flex-start; }

.smb-aloj-thumb{
  width:90px;
  height:74px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(0,0,0,.04);
  flex:0 0 auto;
}
.smb-aloj-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.smb-aloj-info{ flex:1; min-width:0; }

.smb-aloj-title{
  font-size:14px;
  font-weight:1000;
  line-height:1.2;
  margin-bottom:4px;
  color:#0b1f2a;
}

.smb-aloj-car{
  font-size:12px;
  color:#3a4a55;
  line-height:1.35;
  margin-bottom:6px;
}

.smb-aloj-precio{ font-size:13px; color:#0b1f2a; }
.smb-aloj-precio strong{ font-size:15px; }
.smb-aloj-precio-sub{ font-size:12px; opacity:.85; font-weight:800; }

.smb-aloj-cap{
  font-size:12px;
  font-weight:900;
  color:#1f4f66;
  background:rgba(45,156,219,.08);
  border:1px solid rgba(45,156,219,.16);
  border-radius:12px;
  padding:8px 10px;
}

/* Qty */
.smb-qty-wrap{ display:flex; flex-direction:column; gap:6px; }
.smb-qty-wrap label{ font-size:12px; font-weight:1000; color:#0b1f2a; }

/* Actions */
.smb-card-actions.smb-actions{ display:flex; gap:10px; margin-top:2px; }

.smb-btn{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  font-weight:1000;
  cursor:pointer;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}

.smb-btn.smb-btn-secondary{
  border-color: rgba(45,156,219,.35);
  color:#1f7fb2;
  background: rgba(45,156,219,.06);
}
.smb-btn.smb-btn-secondary:hover{ filter:brightness(0.98); }

.smb-btn.smb-btn-primary{
  border-color: rgba(72,199,116,.55);
  background:#48c774;
  color:#fff;
}
.smb-btn.smb-btn-primary:disabled{ opacity:.55; cursor:not-allowed; }

/* =========================
   6) RESUMEN TARIFARIO PRO
========================= */
.smb-tarifa-resumen{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:rgba(0,0,0,.02);
  padding:10px 12px;
}
.smb-tarifa-resumen h5{
  margin:0 0 8px;
  font-size:13px;
  font-weight:1000;
  color:#0b1f2a;
}
.smb-tarifa-resumen .row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12.5px;
  color:#22323d;
  padding:4px 0;
  font-weight:800;
}
.smb-tarifa-resumen .sep{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:8px 0;
}
.smb-tarifa-resumen .total{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  font-weight:1000;
  color:#0b1f2a;
}

/* =========================
   7) CALENDARIO MODAL (centrado)
========================= */
.smb-calendario-modal{
  position:fixed;
  inset:0;
  z-index:999900;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}
.smb-calendario-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.smb-calendario-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
}

.smb-calendario-box{
  position:fixed !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;

  width:min(420px, calc(100vw - 16px)) !important;
  max-height:calc(100svh - 16px) !important;

  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 16px 46px rgba(0,0,0,.20);
  border:1px solid rgba(0,0,0,.06);

  /* ✅ centra contenido dentro de la caja */
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
}

.smb-calendario-head{
  width:100% !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.smb-calendario-head .smb-cerrar{
  border:0;
  background:transparent;
  font-size:18px;
  line-height:1;
  padding:6px 8px;
  cursor:pointer;
}

.smb-calendario{
  width:100% !important;
  max-height:calc(100svh - 120px) !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;

  /* ✅ menos aire, y centrado */
  display:flex !important;
  justify-content:center !important;
  padding:8px !important;
  box-sizing:border-box !important;
}

/* Flatpickr “sin marco” */
.smb-calendario .flatpickr-calendar{
  width:auto !important;
  max-width:100% !important;
  border:0 !important;
  box-shadow:none !important;
  margin:0 !important;
}

/* Quitar borde/espacio izquierdo y paddings internos */
.smb-calendario-modal .flatpickr-innerContainer,
.smb-calendario-modal .flatpickr-rContainer,
.smb-calendario-modal .flatpickr-days,
.smb-calendario-modal .dayContainer{
  padding-left:0 !important;
  margin-left:0 !important;
  transform:translateX(0) !important;
}

.smb-calendario-modal .flatpickr-rContainer{ padding:0 !important; margin:0 !important; }

@media (max-width: 520px){
  .smb-calendario-box{
    width: min(380px, calc(100vw - 16px)) !important;
  }
}

/* =========================
   8) MODAL UNIDADES (centrado)
========================= */
.smb-unidades-modal{
  position:fixed;
  inset:0;
  z-index:1000000;

  display:flex;
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
  background:rgba(0,0,0,.40);
}
.smb-unidades-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.smb-unidades-modal .smb-unidades-box-modal{
  width:min(860px, calc(100vw - 24px)) !important;
  max-width:860px !important;
  max-height:min(86svh, 820px) !important;
  background:#fff;
  border-radius:16px !important;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 18px 60px rgba(0,0,0,.22);
}

.smb-unidades-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.smb-unidades-head h3{
  margin:0;
  font-size:14px;
  font-weight:1000;
  color:#0b1f2a;
}

.smb-unidades-cerrar{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  padding:6px 8px;
  line-height:1;
}

.smb-unidades-sub{
  margin:0;
  padding:10px 14px;
  font-size:12.5px;
  color:#334652;
  font-weight:800;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.smb-unidades-modal .smb-unidades-modal-body{
  overflow:auto !important;
  -webkit-overflow-scrolling:touch;
  padding:14px 14px 120px !important;
}

/* =========================
   9) SELECTOR UNIDADES (GRID)
========================= */
.smb-unidades-modal .smb-units-pick-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
  align-items:stretch;
  margin-bottom:12px;
}

.smb-unit-pick{
  width:100%;
  text-align:left;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:10px 12px;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,0.04);
}

.smb-unit-pick strong{
  display:block;
  font-size:13px;
  font-weight:1000;
  color:#0b1f2a;
  margin-bottom:4px;
}

.smb-unit-pick .meta{
  font-size:12px;
  font-weight:900;
  color:#3a4a55;
  opacity:.92;
}

.smb-unit-pick:hover{ filter:brightness(.99); }

.smb-unit-pick.is-selected{
  border-color: rgba(72,199,116,.65);
  box-shadow:0 0 0 3px rgba(72,199,116,.14), 0 8px 18px rgba(0,0,0,0.06);
  background: rgba(72,199,116,.06);
}

/* =========================
   10) PERSONAS POR HABITACIÓN (2 cols)
========================= */
.smb-unidades-modal .smb-unidades-personas{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:12px !important;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
}

.smb-persona-row{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(0,0,0,.02);
}

.smb-persona-row label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  font-weight:1000;
  color:#0b1f2a;
}

.smb-persona-row select{ width:100%; border-radius:12px; }

.smb-persona-row .smb-personas-hint{
  margin-top:6px;
  font-size:11.5px;
  font-weight:900;
  color:#3a4a55;
  opacity:.9;
}

/* Botón continuar sticky */
.smb-unidades-modal .smb-unidades-continuar{
  position:sticky;
  bottom:0;
  width:100%;
  border:0;
  border-radius:0 !important;
  padding:14px 14px calc(14px + env(safe-area-inset-bottom));
  background:#48c774;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 -8px 24px rgba(0,0,0,.08);
}
.smb-unidades-modal .smb-unidades-continuar:disabled{ opacity:.55; cursor:not-allowed; }



/* ===============================
   SMB — CONFIRMACION (GRACIAS) PRO
=============================== */
.smb-confirm-wrap{ width:100%; max-width:520px; margin:14px auto 0; }

.smb-confirm-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  overflow:hidden;
}

.smb-confirm-head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:14px 14px 10px;
}

.smb-confirm-head .icon{
  width:26px; height:26px;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(72,199,116,.15);
  color:#2e8b57;
  font-weight:900;
  flex:0 0 auto;
}

.smb-confirm-head h3{
  margin:0;
  font-size:16px;
  font-weight:900;
  line-height:1.2;
}

.smb-confirm-head p{
  margin:3px 0 0;
  font-size:12.5px;
  color:rgba(0,0,0,.65);
  line-height:1.35;
}

.smb-confirm-body{ padding:0 14px 14px; }

.smb-confirm-subtitle{
  margin:10px 0 8px;
  font-size:12px;
  font-weight:900;
  color:rgba(0,0,0,.55);
}

.smb-confirm-box{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:10px 10px;
  background:rgba(0,0,0,.02);
}

.smb-confirm-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  font-size:13px;
  color:rgba(0,0,0,.75);
}
.smb-confirm-row strong{ color:#111; font-weight:900; }

.smb-confirm-sep{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:8px 0;
}

.smb-confirm-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.smb-btn-pay{
  width:100%;
  border:0;
  border-radius:10px;
  padding:12px 12px;
  font-weight:900;
  cursor:pointer;
  background:#2d9cdb;
  color:#fff;
}

.smb-btn-wa{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:12px 12px;
  font-weight:900;
  cursor:pointer;
  background:#fff;
  color:#111;
}

.smb-btn-reset{
  width:100%;
  border:0;
  background:transparent;
  color:#e53935;
  font-weight:900;
  padding:6px 4px;
  cursor:pointer;
}

/* ==========================================
   SMB — MODAL DATOS HUÉSPED (UI PRO)
========================================== */
.smb-datos-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}
.smb-datos-modal.is-open{ display:block; }

.smb-datos-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.smb-datos-box{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 22px 70px rgba(0,0,0,.28);
  border:1px solid rgba(0,0,0,.06);
  -webkit-overflow-scrolling:touch;
}

.smb-datos-head{
  position:sticky;
  top:0;
  z-index:2;
  background: linear-gradient(#fff, rgba(255,255,255,.92));
  border-bottom:1px solid #eef1f4;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.smb-datos-head strong{
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
}

.smb-datos-close{
  margin-left:auto;
  border:0;
  background:#f3f5f7;
  width:36px;
  height:36px;
  border-radius:12px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.85;
}
.smb-datos-close:hover{ opacity:1; }

.smb-datos-body{ padding:14px 16px 16px; }

.smb-datos-modal .smb-step-datos{
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.smb-datos-modal .smb-step-datos p{ margin:0 0 10px !important; }

/* Inputs premium */
.smb-datos-modal input[type="text"],
.smb-datos-modal input[type="email"],
.smb-datos-modal input[type="tel"],
.smb-datos-modal textarea,
.smb-datos-modal select{
  width:100% !important;
  border:1px solid #dfe5eb !important;
  border-radius:12px !important;
  padding:12px 12px !important;
  font-size:14px !important;
  background:#fbfcfd !important;
  outline:none !important;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.smb-datos-modal textarea{ min-height:92px; resize:vertical; }

.smb-datos-modal input:focus,
.smb-datos-modal textarea:focus,
.smb-datos-modal select:focus{
  background:#fff !important;
  border-color:#b9d2ff !important;
  box-shadow:0 0 0 4px rgba(30,102,255,.12) !important;
}

.smb-datos-modal ::placeholder{ color: rgba(0,0,0,.45); }

/* Botón reservar */
.smb-datos-modal button[type="submit"],
.smb-datos-modal input[type="submit"],
.smb-datos-modal .smb-btn-submit{
  width:100% !important;
  border:0 !important;
  border-radius:14px !important;
  padding:12px 14px !important;
  font-weight:900 !important;
  font-size:14px !important;
  cursor:pointer !important;
  background: linear-gradient(135deg, #ff2f6f, #b4173d) !important;
  color:#fff !important;
  box-shadow:0 12px 26px rgba(180,23,61,.22) !important;
  transition: transform .08s ease, filter .15s ease;
}

.smb-datos-modal button[type="submit"]:active,
.smb-datos-modal input[type="submit"]:active{
  transform: translateY(1px);
  filter: brightness(.98);
}

/* FIX intl-tel-input dentro del modal SMB */
.smb-datos-modal .iti{
  width:100% !important;
  display:block !important;
  position:relative !important;
}

.smb-datos-modal .iti input[type="tel"],
.smb-datos-modal .iti input[name="smb_whatsapp"]{
  width:100% !important;
  padding-left:110px !important;
  padding-right:12px !important;
  box-sizing:border-box !important;
  font-size:16px !important; /* iOS no-zoom */
}

.smb-datos-modal .iti__flag-container{
  left:0 !important;
  right:auto !important;
  z-index:5 !important;
  padding-left:10px !important;
  padding-right:8px !important;
  display:flex !important;
  align-items:center !important;
  width:98px !important;
  justify-content:flex-start !important;
}

.smb-datos-modal .iti__selected-flag{
  display:flex !important;
  align-items:center !important;
}

.smb-datos-modal .iti__selected-dial-code{
  margin-left:6px !important;
  font-weight:700 !important;
  font-size:14px !important;
  line-height:1 !important;
}

.smb-datos-modal .iti__flag-container:after{
  content:"";
  width:1px;
  height:24px;
  background:#e5e7eb;
  margin-left:10px;
}

/* =================================================
   FIX FINAL: imagen grande arriba + texto debajo
================================================= */
.smb-alojamientos-lista .smb-card > .smb-aloj-card{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  align-items:stretch !important;
}
.smb-alojamientos-lista .smb-card > .smb-aloj-card > .smb-aloj-thumb{
  width:100% !important;
  height:220px !important;
  max-width:none !important;
  overflow:hidden !important;
  border-radius:16px !important;
  display:block !important;
  background:rgba(0,0,0,.04) !important;
}
.smb-alojamientos-lista .smb-card > .smb-aloj-card > .smb-aloj-thumb > img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.smb-alojamientos-lista .smb-card > .smb-aloj-card > .smb-aloj-info{
  width:100% !important;
  min-width:0 !important;
}
.smb-aloj-title{ font-size:15px; line-height:1.25; }

/* Ocultar otras tarjetas cuando hay un alojamiento seleccionado */
.smb-card.is-hidden{ display:none !important; }

/* =================================================
   FIX DESKTOP: Menú Elementor por ENCIMA de SMB Topbar
================================================= */
@media (min-width: 1024px){
  header,
  .elementor-location-header,
  .elementor-location-header *{
    z-index: 1000002 !important;
  }

  .elementor-nav-menu__container,
  .elementor-nav-menu--dropdown,
  .elementor-nav-menu ul{
    z-index: 1000003 !important;
    position: relative !important;
  }

  .smb-wrapper-multi .smb-fechas-resumen.smb-topbar{
    z-index: 1000000 !important;
  }
}


/* =========================================================
   SMB Results Modal + Detail Modal + Z-INDEX
========================================== */

/* Results Modal */
#smbResultsModal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999998; /* catálogo */
}
#smbResultsModal.is-open{ display:block; }

#smbResultsModal .smb-modal-overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

#smbResultsModal .smb-modal-dialog{
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  display:flex;
  flex-direction: column;

  /* ✅ no queda debajo de topbar */
  margin-top: calc(var(--smb-header-h, 0px) + var(--smb-datebar-h, 64px) + 14px) !important;
  max-height: calc(100svh - (var(--smb-header-h, 0px) + var(--smb-datebar-h, 64px) + 28px)) !important;
}

#smbResultsModal .smb-modal-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

#smbResultsModal .smb-modal-body{
  padding: 14px;
  overflow: auto;
}

#smbResultsList.smb-results-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 767px){
  #smbResultsList.smb-results-grid{ grid-template-columns: 1fr; }
}

/* Base genérica para .smb-modal (Detail usa esto) */
.smb-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999990; /* fallback */
}
.smb-modal.is-open{ display:block; }

.smb-modal .smb-modal-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.smb-modal .smb-modal-dialog{
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  display:flex;
  flex-direction: column;
}

.smb-modal .smb-modal-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.smb-modal .smb-modal-body{
  padding: 14px;
  overflow: auto;
}

/* Z-INDEX REAL: Results < Detail < Unidades */
#smbDetailModal{  z-index: 999999 !important; }    /* detalle */
.smb-unidades-modal{ z-index: 1000000 !important; }/* unidades siempre arriba */

@media (max-width: 767px){
  .smb-modal .smb-modal-dialog{
    width: min(980px, calc(100vw - 16px));
    margin: 4vh auto;
    max-height: 92vh;
  }
}



/* =========================================================
   SMB DRAWER — FINAL PRO (HEADER + FOOTER + SCROLL)
   - Respeta header + topbar de fechas (NO las tapa)
   - Scroll interno real
   - Header/CTA sticky
   Pegar al FINAL de smb-multi.css (y borrar otros bloques de drawer)
========================================================= */

/* Drawer ocupa SOLO el área bajo header + datebar */
#smbDrawer{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  /* ✅ CLAVE: debajo del header + topbar */
  top: calc(var(--smb-header-h, 0px) + var(--smb-datebar-h, 0px)) !important;
  height: calc(100dvh - (var(--smb-header-h, 0px) + var(--smb-datebar-h, 0px))) !important;

  z-index: 10000050 !important;
  display: none !important;
}
#smbDrawer.is-open{ display:block !important; }

/* Overlay */
#smbDrawer .smb-drawer__overlay{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.45) !important;
  backdrop-filter: blur(8px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
}

/* Panel: ahora ocupa todo el drawer (ya no bottom-sheet por altura fija) */
#smbDrawer .smb-drawer__panel{
  position: absolute !important;
  inset: 0 !important;

  background: #fff !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  box-shadow: 0 -18px 60px rgba(0,0,0,.28) !important;

  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* Header PRO */
#smbDrawer .smb-drawer__header{
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  padding: 12px 12px !important;

  background: rgba(45,156,219,.92) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.22) !important;

  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;

  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

#smbDrawer .smb-drawer__title{
  font-weight: 1000 !important;
  letter-spacing: .2px !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  color: #fff !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Botones header (← / ✕) */
#smbDrawer .smb-drawer__back,
#smbDrawer .smb-drawer__close{
  border: 0 !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#smbDrawer .smb-drawer__back:active,
#smbDrawer .smb-drawer__close:active{
  transform: translateY(1px) !important;
  filter: brightness(.98) !important;
}

/* Body scrolleable interno */
#smbDrawer .smb-drawer__body{
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #fff !important;
}

/* Solo una pantalla visible */
#smbDrawer .smb-screen{ display:none !important; }
#smbDrawer .smb-screen.is-active{ display:block !important; }

/* Grid Results */
#smbDrawer .smb-results-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  padding: 14px !important;
}

/* Footer sticky PRO */
#smbDrawer .smb-drawer__footer{
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;

  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;

  border-top: 1px solid rgba(0,0,0,.08) !important;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
}

#smbDrawer .smb-cta{
  width: 100% !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 14px 14px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #48c774, #2fae63) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(47,174,99,.22) !important;
}
#smbDrawer .smb-cta:disabled{
  opacity: .55 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#smbDrawer .smb-footer-hint{
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: rgba(0,0,0,.62) !important;
  line-height: 1.25 !important;
}


/* =========================================================
   PARCHE PRO — Control +/- dentro de cada caja (móvil)
   - Evita que el pill se salga o se superponga
   Pegar al FINAL de smb-multi.css
========================================================= */

/* La card del tipo debe "contener" todo */
.smb-unidades-modal .smb-type-row{
  position: relative !important;
  overflow: hidden !important; /* corta cualquier cosa que se salga */
  display: flex !important;
  flex-direction: column !important; /* ✅ botones abajo */
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* Info arriba */
.smb-unidades-modal .smb-type-info{
  width: 100% !important;
}

/* Control abajo, dentro de la card */
.smb-unidades-modal .smb-type-qty{
  position: static !important;   /* ✅ mata absolutes */
  transform: none !important;     /* ✅ mata translates */
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  width: 100% !important;
  margin-top: 10px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* -  valor  + */
  gap: 10px !important;

  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}

/* Botones no deben salirse */
.smb-unidades-modal .smb-qty-plus,
.smb-unidades-modal .smb-qty-minus{
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
}

/* Valor centrado */
.smb-unidades-modal .smb-qty-val{
  flex: 1 1 auto !important;
  text-align: center !important;
  font-size: 16px !important;
}

/* En pantallas un poco más grandes puedes volver a fila si quieres */
@media (min-width: 680px){
  .smb-unidades-modal .smb-type-row{
    flex-direction: row !important;       /* info izquierda, control derecha */
    align-items: center !important;
    justify-content: space-between !important;
  }
  .smb-unidades-modal .smb-type-qty{
    width: auto !important;
    margin-top: 0 !important;
    justify-content: center !important;
  }
}

/* ===== FIX iPhone: que el + y - NO se salgan del pill ===== */
@media (max-width: 430px){

  /* que el control SIEMPRE quepa dentro de la tarjeta */
  .smb-unidades-modal .smb-type-qty{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: 40px 1fr 40px !important; /* -  valor  + */
    align-items: center !important;

    padding: 8px !important;
    gap: 8px !important;

    border-radius: 14px !important;
    overflow: hidden !important;     /* ✅ corta cualquier cosa que se salga */
  }

  /* por si tus botones NO tienen clase smb-qty-plus/minus */
  .smb-unidades-modal .smb-type-qty button{
    width: 40px !important;
    height: 32px !important;
    min-width: 0 !important;         /* ✅ mata el min-width que rompe iPhone */
    padding: 0 !important;

    border-radius: 12px !important;
    font-size: 18px !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .smb-unidades-modal .smb-type-qty .smb-qty-val{
    min-width: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }
}





/* =========================================================
   UNIDADES — SKIN ULTRA PRO (iOS / Booking vibe) ✅
   - Solo estética (colores, sombras, glass)
   - NO toca layout del FORZADO
   Pegar AL FINAL del CSS
========================================================= */

/* Pill (contenedor del control) — glass suave */
.smb-unidades-modal .smb-type-qty{
  background: linear-gradient(180deg,
    rgba(45,156,219,.10),
    rgba(45,156,219,.05)
  ) !important;

  border: 1px solid rgba(45,156,219,.22) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.70),
    0 10px 24px rgba(15,23,42,.08) !important;
}

/* Botones +/- — “píldora” brillante con borde y sombra pro */
.smb-unidades-modal .smb-qty-minus,
.smb-unidades-modal .smb-qty-plus{
  border: 1px solid rgba(45,156,219,.28) !important;

  background: linear-gradient(180deg,
    rgba(255,255,255,1),
    rgba(240,248,255,1)
  ) !important;

  color: #0b5e88 !important;

  box-shadow:
    0 10px 18px rgba(45,156,219,.14),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
}

/* Hover */
@media (hover:hover){
  .smb-unidades-modal .smb-qty-minus:hover,
  .smb-unidades-modal .smb-qty-plus:hover{
    transform: translateY(-1px) !important;
    box-shadow:
      0 14px 26px rgba(45,156,219,.18),
      inset 0 1px 0 rgba(255,255,255,.90) !important;
  }
}

/* Tap / Active (móvil) */
.smb-unidades-modal .smb-qty-minus:active,
.smb-unidades-modal .smb-qty-plus:active{
  transform: translateY(1px) !important;
  filter: brightness(.98) !important;
  box-shadow:
    0 8px 16px rgba(45,156,219,.14),
    inset 0 1px 0 rgba(255,255,255,.80) !important;
}

/* Valor del centro */
.smb-unidades-modal .smb-qty-val{
  color: #0b1f2a !important;
  font-weight: 1000 !important;
  letter-spacing: .2px !important;
}

/* Extra: si quieres que + sea “verde” y - “azul/rojo” (más pro visual) */
.smb-unidades-modal .smb-qty-plus{
  border-color: rgba(72,199,116,.30) !important;
  box-shadow:
    0 12px 20px rgba(72,199,116,.14),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
}
.smb-unidades-modal .smb-qty-minus{
  border-color: rgba(229,57,53,.22) !important;
  box-shadow:
    0 12px 20px rgba(229,57,53,.10),
    inset 0 1px 0 rgba(255,255,255,.85) !important;
}
/* =========================================================
   UNIDADES — FINAL ÚNICO ✅ (CENTRADO + ARRIBA DEL DRAWER)
   - 1 sola versión, sin duplicados
   - z-index > #smbDrawer (10000050)
========================================================= */

.smb-unidades-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000080 !important;   /* ✅ arriba del drawer */
  background: rgba(0,0,0,.45) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .18s ease, visibility .18s ease !important;
}

.smb-unidades-modal.is-open{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.smb-unidades-modal .smb-unidades-box-modal{
  width: min(860px, calc(100vw - 24px)) !important;
  max-width: 860px !important;
  max-height: min(86svh, 820px) !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.22) !important;
  position: relative !important;
}

.smb-unidades-modal .smb-unidades-modal-body{
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 14px 14px 90px !important;
}

/* Tipos (cards) */
.smb-unidades-modal .smb-units-pick-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

.smb-unidades-modal .smb-type-row{
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.06) !important;
  padding: 12px !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow: hidden !important;
}

.smb-unidades-modal .smb-type-qty{
  width: 100% !important;
  box-sizing: border-box !important;

  display: grid !important;
  grid-template-columns: 40px 1fr 40px !important;
  align-items: center !important;
  gap: 8px !important;

  border-radius: 14px !important;
  padding: 8px !important;
  overflow: hidden !important;
}

/* Botones +/- (layout) */
.smb-unidades-modal .smb-qty-minus,
.smb-unidades-modal .smb-qty-plus{
  min-width: 0 !important;
  width: 40px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Mata pseudo duplicados */
.smb-unidades-modal .smb-qty-plus::before,
.smb-unidades-modal .smb-qty-plus::after,
.smb-unidades-modal .smb-qty-minus::before,
.smb-unidades-modal .smb-qty-minus::after{
  content: none !important;
}

.smb-unidades-modal .smb-qty-val{
  min-width: 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
}

/* CTA */
.smb-unidades-modal .smb-unidades-continuar{
  position: sticky !important;
  bottom: 0 !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom)) !important;
  background: #48c774 !important;
  color: #fff !important;
  font-weight: 1000 !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08) !important;
}

/* =========================================================
   UNIDADES — SKIN PREMIUM (GLASS + NEUMORPHISM) ✅
   - SOLO estética (no cambia layout)
   - Pill con blur real
   - Botones +/- tipo neumorphism premium
   Pegar AL FINAL del CSS
========================================================= */

:root{
  --smb-glass: rgba(255,255,255,.55);
  --smb-glass-2: rgba(255,255,255,.30);
  --smb-ink: #0b1f2a;
  --smb-blue: 45,156,219;   /* RGB */
  --smb-green: 72,199,116;  /* RGB */
  --smb-red: 229,57,53;     /* RGB */
}

/* Pill (contenedor) — glass real */
.smb-unidades-modal .smb-type-qty{
  background: linear-gradient(180deg,
    rgba(var(--smb-blue), .10),
    rgba(var(--smb-blue), .05)
  ) !important;

  border: 1px solid rgba(var(--smb-blue), .22) !important;

  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 14px 30px rgba(15,23,42,.10) !important;
}

/* Botones +/- — neumorphism */
.smb-unidades-modal .smb-qty-minus,
.smb-unidades-modal .smb-qty-plus{
  background: linear-gradient(180deg,
    rgba(255,255,255,.95),
    rgba(240,248,255,.95)
  ) !important;

  border: 1px solid rgba(var(--smb-blue), .20) !important;
  color: rgba(11,94,136, .95) !important;

  box-shadow:
    8px 10px 18px rgba(15,23,42,.10),
    -6px -6px 14px rgba(255,255,255,.85),
    inset 0 1px 0 rgba(255,255,255,.90) !important;

  transition: transform .12s ease, filter .15s ease, box-shadow .15s ease !important;
}

/* Hover (solo desktop) */
@media (hover:hover){
  .smb-unidades-modal .smb-qty-minus:hover,
  .smb-unidades-modal .smb-qty-plus:hover{
    transform: translateY(-1px) !important;
    box-shadow:
      10px 14px 26px rgba(15,23,42,.12),
      -8px -8px 18px rgba(255,255,255,.90),
      inset 0 1px 0 rgba(255,255,255,.95) !important;
    filter: none !important;
  }
}

/* Active (tap) */
.smb-unidades-modal .smb-qty-minus:active,
.smb-unidades-modal .smb-qty-plus:active{
  transform: translateY(1px) !important;
  filter: brightness(.98) !important;
  box-shadow:
    6px 8px 16px rgba(15,23,42,.12),
    -4px -4px 10px rgba(255,255,255,.75),
    inset 0 2px 6px rgba(15,23,42,.10) !important;
}

/* Valor */
.smb-unidades-modal .smb-qty-val{
  color: var(--smb-ink) !important;
  font-weight: 1000 !important;
  letter-spacing: .2px !important;
}

/* Detalle “pro”: + verdoso, - rojizo sutil (solo borde/sombra) */
.smb-unidades-modal .smb-qty-plus{
  border-color: rgba(var(--smb-green), .28) !important;
  box-shadow:
    8px 10px 18px rgba(15,23,42,.10),
    -6px -6px 14px rgba(255,255,255,.85),
    0 10px 18px rgba(var(--smb-green), .10),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}
.smb-unidades-modal .smb-qty-minus{
  border-color: rgba(var(--smb-red), .22) !important;
  box-shadow:
    8px 10px 18px rgba(15,23,42,.10),
    -6px -6px 14px rgba(255,255,255,.85),
    0 10px 18px rgba(var(--smb-red), .08),
    inset 0 1px 0 rgba(255,255,255,.90) !important;
}
/* ============================
   SMB DETALLE — IMAGEN FULL WIDTH
   Pegar al FINAL del CSS
============================ */

/* Fuerza layout en columna (imagen arriba, texto abajo) */
.smb-detail-card,
.smb-aloj-detail,
.smb-drawer-detail-card{
  display: block !important;
}

/* Contenedor de imagen (ajusta selector según tu HTML) */
.smb-detail-card .smb-card__img,
.smb-aloj-detail .smb-card__img,
.smb-drawer-detail-card .smb-card__img{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px 0 !important;
}

/* Imagen estilo banner */
.smb-detail-card .smb-card__img img,
.smb-aloj-detail .smb-card__img img,
.smb-drawer-detail-card .smb-card__img img{
  width: 100% !important;
  height: 190px !important;      /* ajusta 170-240 */
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
}
/* HERO IMAGE (detalle) */
.smb-aloj-hero{
  width:100%;
  margin:0 0 12px 0;
}
.smb-aloj-hero img{
  width:100%;
  height:210px;          /* ajusta 180-260 */
  object-fit:cover;
  display:block;
  border-radius:16px;
}

/* opcional: que el card en detail se vea más pro */
.smb-aloj-card.is-detail{
  display:block;
}
/* =========================
   RESULTS: card compacta pro
========================= */
.smb-aloj-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.smb-aloj-thumb{
  width:110px;
  flex:0 0 110px;
}
.smb-aloj-thumb img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

.smb-aloj-info{ min-width:0; }
.smb-aloj-title{ font-weight:900; font-size:16px; line-height:1.1; margin-bottom:4px; }

.smb-aloj-car{ font-size:13px; opacity:.82; line-height:1.25; }
.smb-car--clamp{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;              /* propiedad estándar (sugerida) */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.smb-aloj-precio{ margin-top:6px; font-size:14px; }
.smb-aloj-precio strong{ font-weight:900; }
.smb-aloj-extra{
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  opacity:.85;
}

/* =========================
   DETAIL: hero ancho completo
========================= */
.smb-aloj-card.is-detail{ display:block; }

.smb-aloj-hero{
  width:100%;
  margin:0 0 12px 0;
}
.smb-aloj-hero img{
  width:100%;
  height:220px;   /* ajusta 200-260 */
  object-fit:cover;
  display:block;
  border-radius:16px;
}

/* características completas en detail */
.smb-car--full{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fafbfc;
}


/* ==============================
   SELECT PREMIUM – Cantidad de habitaciones
============================== */

.premium-select{
  margin-top: 14px;
}

.premium-select label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
  font-size:14px;
  opacity:.85;
}

.premium-select select{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  padding:14px 44px 14px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,248,252,.95));
  box-shadow:
    0 6px 14px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.6);

  font-size:16px;
  font-weight:600;
  color:#111;

  background-image:
    url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;

  cursor:pointer;
}

/* Efecto focus */
.premium-select select:focus{
  outline:none;
  border-color:#4da3ff;
  box-shadow:
    0 0 0 3px rgba(77,163,255,.25),
    0 6px 14px rgba(0,0,0,.1);
}

.smb-summary-card{
  background:#fff;
  border-radius:18px;
  padding:14px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}
.smb-sum-head{ font-weight:800; font-size:16px; margin-bottom:10px; }
.smb-sum-block{ padding:10px 0; border-top:1px solid rgba(0,0,0,.07); }
.smb-sum-row{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; }
.smb-sum-row span{ opacity:.82; }
.smb-sum-total strong{ font-size:18px; }
.smb-sum-sub{ font-weight:700; margin-bottom:6px; }
.smb-sum-line{ padding:4px 0; opacity:.92; }
.smb-sum-note{ margin-top:10px; font-size:13px; opacity:.7; }
.smb-sum-change{ display:inline-block; margin-top:10px; font-size:13px; text-decoration:none; opacity:.85; }


/* ================================
   GUEST (Drawer) — Premium UI
================================ */
.smb-guest-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  padding: 14px;
}

.smb-guest-head{
  padding: 6px 2px 12px;
}
.smb-guest-title{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .2px;
}
.smb-guest-sub{
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.35;
}

.smb-guest-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.smb-field{ display:block; }
.smb-field--full{ grid-column: 1 / -1; }

.smb-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  opacity: .78;
  margin: 0 0 6px;
}

.smb-input, .smb-textarea, .smb-country{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.03);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.smb-input:focus, .smb-textarea:focus, .smb-country:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  transform: translateY(-1px);
}

.smb-textarea{
  resize: vertical;
  min-height: 90px;
}

.smb-phone{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: center;
}

.smb-country{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.45) 50%),
    linear-gradient(135deg, rgba(0,0,0,.45) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 10px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.smb-input--phone{
  letter-spacing: .3px;
}

.smb-help{
  margin-top: 6px;
  font-size: 12px;
  opacity: .7;
}

.smb-guest-note{
  font-size: 12px;
  opacity: .8;
  line-height: 1.4;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  padding: 10px 12px;
  border-radius: 14px;
}

@media (max-width: 520px){
  .smb-guest-grid{
    grid-template-columns: 1fr;
  }
  .smb-phone{
    grid-template-columns: 120px 1fr;
  }
}

/* ================================
   THANKS (Drawer) — Booking Style
================================ */
.smb-thanks-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  padding: 14px;
}

.smb-thanks-badge{
  display:inline-block;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.smb-thanks-ref{
  margin-top: 8px;
  font-weight: 900;
  font-size: 14px;
}

.smb-thanks-sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .78;
  line-height: 1.35;
}

.smb-thanks-summary{
  margin-top: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 12px;
}

.smb-thanks-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.smb-thanks-total{
  font-weight: 900;
}

.smb-thanks-sep{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 8px 0;
}


.smb-thanks-links{
  margin-top: 10px;
  text-align: center;
}

.smb-thanks-new{
  font-size: 12px;
  opacity: .8;
  text-decoration: underline;
}



/* BASE (estructura) */
.smb-pay-btn{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  text-decoration:none !important;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(0,0,0,.08);
}

/* Sub-elementos base (sin colores fuertes) */
.smb-pay-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  font-size:18px;
}

.smb-pay-btn__text{
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.1;
  flex:1;
}

.smb-pay-btn__text strong{
  font-size:15px;
  font-weight:800;
  letter-spacing:.2px;
}

.smb-pay-btn__text em{
  font-style:normal;
  font-size:14px;
  font-weight:700;
  opacity:.95;
}

.smb-pay-btn__chev{
  font-size:24px;
  opacity:.95;
  transform: translateY(-1px);
}

.smb-pay-note{
  margin-top:10px;
  font-size:12px;
  opacity:.78;
  text-align:center;
}


/* =========================================
   THANKS — BOTON PAGO PREMIUM (FORZADO)
   Pegar al FINAL del smb-multi.css
========================================= */

#smbDrawer .smb-pay-btn{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  min-height: 54px !important;

  padding: 14px 14px !important;
  border-radius: 14px !important;

  text-decoration: none !important;
  border: 1px solid rgba(0,0,0,.08) !important;

  background: linear-gradient(180deg, #fff6c9, #f7d977) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.14) !important;

  color: #2b2410 !important; /* ✅ para que nunca quede blanco */
}

#smbDrawer .smb-pay-btn:active{
  transform: translateY(1px) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.14) !important;
}

#smbDrawer .smb-pay-btn__icon{
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;

  display: grid !important;
  place-items: center !important;

  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(0,0,0,.08) !important;

  font-size: 16px !important;
  flex: 0 0 36px !important;
}

#smbDrawer .smb-pay-btn__text{
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;

  margin: 0 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#smbDrawer .smb-pay-btn__text strong{
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #2b2410 !important;
}

#smbDrawer .smb-pay-btn__text em{
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  opacity: .95 !important;
  color: #2b2410 !important;
}

#smbDrawer .smb-pay-btn__chev{
  font-size: 22px !important;
  line-height: 1 !important;
  opacity: .85 !important;
  flex: 0 0 auto !important;
  color: #2b2410 !important;
}

#smbDrawer .smb-pay-note{
  margin-top: 10px !important;
  text-align: center !important;
  font-size: 12px !important;
  opacity: .72 !important;
}
/* =========================================================
   SUMMARY — PREMIUM FINAL (GANA EN EL DRAWER)
   Pegar al FINAL del smb-multi.css (últimas líneas)
========================================================= */

#smbDrawer [data-smb-summary] .smb-summary-card{
  background:#fff !important;
  border-radius:18px !important;
  padding:14px 16px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.10) !important;
  border:1px solid rgba(0,0,0,.06) !important;
  margin-bottom:14px !important;
}

#smbDrawer [data-smb-summary] .smb-sum-head{
  font-size:15px !important;
  font-weight:800 !important;
  color:#0f172a !important;
  margin:2px 0 10px !important;
}

#smbDrawer [data-smb-summary] .smb-sum-block{
  background:#f8fafc !important;
  border-radius:14px !important;
  padding:12px !important;
  margin:10px 0 !important;
  border:1px solid rgba(0,0,0,.05) !important;
}

#smbDrawer [data-smb-summary] .smb-sum-row{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  padding:7px 0 !important;
  font-size:14px !important;
  color:#374151 !important;
}

#smbDrawer [data-smb-summary] .smb-sum-row strong{
  font-weight:800 !important;
  color:#111827 !important;
}

#smbDrawer [data-smb-summary] .smb-sum-row:not(:last-child){
  border-bottom:1px solid rgba(0,0,0,.06) !important;
}

#smbDrawer [data-smb-summary] .smb-sum-sub{
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  color:#6b7280 !important;
  margin:0 0 6px !important;
}

/* Detalle: más pequeño + premium */
#smbDrawer [data-smb-summary] .smb-sum-line{
  font-size:12.5px !important;
  line-height:1.4 !important;
  color:#4b5563 !important;
  padding:4px 0 !important;
}

#smbDrawer [data-smb-summary] .smb-sum-line:not(:last-child){
  border-bottom:1px dashed rgba(0,0,0,.10) !important;
}

/* Total destacado */
#smbDrawer [data-smb-summary] .smb-sum-row.smb-sum-total{
  font-size:16px !important;
  font-weight:900 !important;
  padding-top:10px !important;
}

/* Nota inferior */
#smbDrawer [data-smb-summary] .smb-sum-note{
  font-size:12px !important;
  color:#6b7280 !important;
  text-align:center !important;
  margin-top:10px !important;
}
#smbDrawer [data-smb-summary] .smb-summary-card{
  backdrop-filter: blur(10px) !important;
}
/* ===== THANKS: ocultar botón ATRÁS, dejar solo la X ===== */
#smbDrawer.is-thanks .smb-drawer__back{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================================
   SMB DRAWER — DESKTOP PREMIUM (tipo Booking)
   Solo afecta >= 992px. No rompe móvil.
========================================================= */
@media (min-width: 992px){

  /* Fondo overlay un poquito más suave en desktop */
  #smbDrawer .smb-drawer__overlay{
    background: rgba(0,0,0,.38) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
  }

  /* Panel: centrado y con ancho máximo */
  #smbDrawer .smb-drawer__panel{
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(980px, 92vw) !important;
    max-width: 980px !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.22) !important;
  }

  /* Header: compacto */
  #smbDrawer .smb-drawer__header{
    padding: 12px 14px !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
  }

  /* Body: más aire, no tan “expandido” */
  #smbDrawer .smb-drawer__body{
    padding: 14px !important;
  }

  /* Footer/CTA: compacto y premium */
  #smbDrawer .smb-drawer__footer{
    padding: 12px 14px !important;
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
  }

  /* Pantallas internas: evitar que el contenido se estire demasiado */
  #smbDrawer .smb-screen{
    max-width: 920px !important;
    margin: 0 auto !important;
  }

  /* Tarjetas/blocks dentro del summary/thanks: más “card” */
  #smbDrawer .smb-summary-card,
  #smbDrawer .smb-thanks-card,
  #smbDrawer .smb-guest-card{
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.08) !important;
  }

  /* Tipografía y separación más tipo Booking */
  #smbDrawer .smb-sum-row{
    padding: 10px 0 !important;
  }
}

/* =========================================================
   THANKS — ocultar back (solo X)
   Se activa cuando JS agrega: #smbDrawer.is-thanks
========================================================= */
#smbDrawer.is-thanks .smb-drawer__back{
  display: none !important;
}






/* =========================================================
   SMB CALENDARIO (Flatpickr) — PREMIUM OVERRIDES ✅
   Pegar al FINAL del smb-multi.css
========================================================= */

/* Overlay más “glass” */
.smb-calendario-modal.is-open .smb-calendario-overlay{
  background: rgba(0,0,0,.50) !important;
  backdrop-filter: blur(10px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
}

/* Caja del modal: ganar a element.style (left/top/transform/width) */
.smb-calendario-box{
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: min(420px, calc(100vw - 24px)) !important;
  max-height: min(620px, calc(100vh - 24px)) !important;
  overflow: hidden !important;

  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    0 2px 0 rgba(255,255,255,.6) inset !important;

  /* micro-animación suave al aparecer */
  animation: smbPopIn .16s ease-out both;
}

@keyframes smbPopIn{
  from { transform: translate(-50%, -48%) scale(.98); opacity: .0; }
  to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

/* Header más pro */
.smb-calendario-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 10px !important;

  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(0,0,0,.07) !important;
  background: rgba(255,255,255,.85) !important;
}

.smb-calendario-head .smb-calendario-titulo{
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: .2px !important;
  color: rgba(0,0,0,.85) !important;
}

/* Botón cerrar: circular premium */
.smb-calendario-head .smb-cerrar{
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  background: rgba(255,255,255,.9) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor: pointer !important;
}

.smb-calendario-head .smb-cerrar:hover{
  background: rgba(0,0,0,.04) !important;
}
.smb-calendario-head .smb-cerrar:active{
  transform: scale(.98) !important;
}

/* Si tu X es con pseudo-elementos, esto la hace más nítida */
.smb-calendario-head .smb-cerrar::before,
.smb-calendario-head .smb-cerrar::after{
  opacity: .75 !important;
}

/* Área del calendario */
.smb-calendario{
  padding: 10px 12px 14px !important;
}

/* Flatpickr: contenedor inline más limpio */
.smb-calendario .flatpickr-calendar{
  width: 100% !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* Barra del mes */
.smb-calendario .flatpickr-months{
  margin: 4px 0 10px !important;
}
.smb-calendario .flatpickr-month{
  border-radius: 12px !important;
}
.smb-calendario .flatpickr-current-month{
  font-weight: 800 !important;
  color: rgba(0,0,0,.85) !important;
}

/* Flechas prev/next con “botón” */
.smb-calendario .flatpickr-prev-month,
.smb-calendario .flatpickr-next-month{
  top: 6px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.smb-calendario .flatpickr-prev-month:hover,
.smb-calendario .flatpickr-next-month:hover{
  background: rgba(0,0,0,.05) !important;
}

/* Weekdays más finos */
.smb-calendario .flatpickr-weekdays{
  margin: 0 0 6px !important;
}
.smb-calendario .flatpickr-weekday{
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(0,0,0,.55) !important;
}

/* Días: más “touch friendly” y redondos */
.smb-calendario .flatpickr-days{
  border-top: 1px solid rgba(0,0,0,.06) !important;
  padding-top: 10px !important;
}
.smb-calendario .flatpickr-day{
  border-radius: 12px !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 2px 0 !important;
  font-weight: 600 !important;
}

/* Hover suave */
.smb-calendario .flatpickr-day:hover{
  background: rgba(0,0,0,.06) !important;
  border-color: transparent !important;
}

/* Selección rango (manteniendo look “Booking”) */
.smb-calendario .flatpickr-day.selected,
.smb-calendario .flatpickr-day.startRange,
.smb-calendario .flatpickr-day.endRange{
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.18) !important;
}

.smb-calendario .flatpickr-day.inRange{
  border-color: transparent !important;
  background: rgba(0,0,0,.06) !important;
}

/* Días deshabilitados */
.smb-calendario .flatpickr-day.disabled,
.smb-calendario .flatpickr-day.flatpickr-disabled{
  opacity: .35 !important;
}

/* Focus accesible */
.smb-calendario .flatpickr-day:focus{
  outline: 2px solid rgba(0,0,0,.35) !important;
  outline-offset: 2px !important;
}


.smb-booking-rooms-wrap{margin:18px 0}
.smb-booking-rooms-head{margin-bottom:12px}
.smb-booking-rooms-title{margin:0 0 6px;font-weight:800}
.smb-booking-rooms-sub{margin:0;opacity:.75}

.smb-bk-type{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;margin:10px 0;background:#fff}
.smb-bk-type-title{font-weight:800}
.smb-bk-type-meta{opacity:.7;font-size:13px;margin-top:2px}

.smb-bk-type-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:10px;margin-top:10px}
.smb-bk-label{font-size:12px;opacity:.7}
.smb-bk-val,.smb-bk-total{font-weight:800;margin-top:2px}
.smb-bk-small{font-size:12px;opacity:.7;margin-top:6px}

.smb-bk-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.smb-bk-slot{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:8px}
.smb-bk-slot-label{font-weight:700;font-size:13px}
.smb-bk-persons,.smb-bk-qty{width:110px;padding:8px;border-radius:10px;border:1px solid rgba(0,0,0,.12)}

.smb-bk-ops{margin-top:10px;font-size:13px;opacity:.9}
.smb-bk-opline{margin-top:6px}

.smb-booking-rooms-sticky{position:sticky;bottom:12px;margin-top:12px}
.smb-bk-stk{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.smb-bk-stk-row{display:flex;justify-content:space-between;gap:10px;margin:6px 0}
.smb-bk-reserve{width:100%;margin-top:10px;padding:12px 14px;border-radius:12px;border:0;font-weight:800;cursor:pointer}
.smb-bk-stk-note{margin-top:8px;opacity:.75;font-size:12px}


/* =========================================================
   SMB MINI-BOOKING — PREMIUM UI (SINGLE)
   Pegar al FINAL de smb-multi.css
========================================================= */

:root{
  --smb-radius: 18px;
  --smb-radius-sm: 14px;
  --smb-border: rgba(15, 23, 42, .12);
  --smb-text: #0f172a;
  --smb-muted: rgba(15, 23, 42, .65);
  --smb-bg: #ffffff;
  --smb-soft: rgba(2, 6, 23, .04);
  --smb-shadow: 0 12px 30px rgba(2, 6, 23, .10);
  --smb-shadow-sm: 0 8px 18px rgba(2, 6, 23, .08);
}

.smb-booking-rooms-wrap{
  max-width: 980px;
  margin: 18px auto 22px;
  padding: 16px 14px;
  border: 1px solid var(--smb-border);
  border-radius: var(--smb-radius);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(2,6,23,.015));
  box-shadow: var(--smb-shadow-sm);
  position: relative;
}

.smb-booking-rooms-head{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 8px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  margin-bottom: 14px;
}

.smb-booking-rooms-title{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--smb-text);
}

.smb-booking-rooms-sub{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--smb-muted);
  max-width: 56ch;
}

/* contenedor tabla */
.smb-booking-rooms-table{
  display: grid;
  gap: 12px;
}

/* estados vacíos */
.smb-bk-empty{
  padding: 14px 14px;
  border-radius: var(--smb-radius-sm);
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(255,255,255,.75);
  color: rgba(15,23,42,.75);
  font-size: 14px;
}

/* card tipo */
.smb-bk-type{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--smb-radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.smb-bk-type:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,6,23,.10);
  border-color: rgba(15,23,42,.16);
}

.smb-bk-type-head{
  padding: 14px 14px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.smb-bk-type-title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--smb-text);
}

.smb-bk-type-meta{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(15,23,42,.68);
  line-height: 1.35;
}

/* grid info */
.smb-bk-type-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 10px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(2,6,23,.02), rgba(2,6,23,.00));
  border-top: 1px solid rgba(15,23,42,.07);
}

@media (max-width: 860px){
  .smb-bk-type-grid{
    grid-template-columns: 1fr;
  }
}

.smb-bk-col{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--smb-radius-sm);
  background: rgba(255,255,255,.88);
  padding: 12px 12px;
  box-shadow: 0 8px 16px rgba(2,6,23,.05);
}

.smb-bk-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(15,23,42,.62);
  margin-bottom: 6px;
}

.smb-bk-val{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--smb-text);
}

.smb-bk-small{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(15,23,42,.66);
  line-height: 1.35;
}

/* select premium */
.smb-bk-qty{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.95);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--smb-text);
  outline: none;
  box-shadow: 0 8px 16px rgba(2,6,23,.06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.smb-bk-qty:focus{
  border-color: rgba(15,23,42,.28);
  box-shadow: 0 12px 24px rgba(2,6,23,.10);
  transform: translateY(-1px);
}

/* contenedor slots (si luego metes selects de personas por habitación) */
.smb-bk-rooms{
  padding: 0 14px 14px;
}

.smb-bk-ops{
  padding: 0 14px 14px;
}

/* Sticky premium */
.smb-booking-rooms-sticky{
  position: sticky;
  bottom: 14px;
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(2,6,23,.16);
  padding: 12px 12px;
  z-index: 10;
}

/* (si tu JS mete contenido dentro del sticky, esto lo deja pro) */
.smb-booking-rooms-sticky .smb-stk-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.smb-booking-rooms-sticky .smb-stk-title{
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--smb-text);
}

.smb-booking-rooms-sticky .smb-stk-sub{
  font-size: 12.5px;
  color: rgba(15,23,42,.70);
  margin-top: 2px;
}

.smb-booking-rooms-sticky .smb-stk-total{
  font-size: 18px;
  font-weight: 900;
  color: var(--smb-text);
  white-space: nowrap;
}

.smb-booking-rooms-sticky .smb-stk-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.92);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2,6,23,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.smb-booking-rooms-sticky .smb-stk-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(2,6,23,.22);
}

.smb-booking-rooms-sticky .smb-stk-btn[disabled],
.smb-booking-rooms-sticky .smb-stk-btn.is-disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Ajuste de separación para móviles */
@media (max-width: 520px){
  .smb-booking-rooms-wrap{ padding: 14px 12px; }
  .smb-booking-rooms-title{ font-size: 18px; }
  .smb-bk-val{ font-size: 17px; }
}

/* === UPGRADE CTA sticky (sin tocar tu CSS base) === */
.smb-bk-reserve{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(15,23,42,.82));
  color:#fff;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 16px 32px rgba(2,6,23,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.smb-bk-reserve:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(2,6,23,.22);
}
.smb-bk-reserve:active{
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(2,6,23,.16);
}

/* === UPGRADE slots huéspedes === */
.smb-bk-slot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 18px rgba(2,6,23,.06);
  margin-top: 10px;
}
.smb-bk-slot-label{
  font-weight: 900;
  color: rgba(15,23,42,.86);
  font-size: 13.5px;
}
.smb-bk-persons{
  width: 160px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.98);
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(2,6,23,.06);
}

/* === UPGRADE select focus === */
.smb-bk-qty:focus,
.smb-bk-persons:focus{
  outline: none;
  border-color: rgba(15,23,42,.28);
  box-shadow: 0 0 0 4px rgba(15,23,42,.10), 0 14px 28px rgba(2,6,23,.12);
}

.smb-magazine{ margin: 0 0 14px; }
.smb-magazine__grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:10px;
}
.smb-magazine__hero,
.smb-magazine__thumb{
  display:block;
  background-size:cover;
  background-position:center;
  border-radius:14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.smb-magazine__hero{ min-height: 280px; }
.smb-magazine__mini{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.smb-magazine__thumb{ min-height: 135px; }

/* Mobile: stack */
@media (max-width: 720px){
  .smb-magazine__grid{ grid-template-columns: 1fr; }
  .smb-magazine__hero{ min-height: 220px; }
}

.smb-type-row{
  display:flex;
  gap:12px;
  align-items:center;
}

.smb-type-img{
  width:90px;
  height:70px;
  border-radius:10px;
  background-size:cover;
  background-position:center;
  background-color:#eee;
  flex-shrink:0;
}

.smb-type-img.is-placeholder{
  background:#f2f2f2;
}

.smb-bk-type-head{
  display:flex;
  gap:14px;
  align-items:center;
}

.smb-bk-thumb{
  width:92px;
  height:72px;
  border-radius:14px;
  overflow:hidden;
  background:#f2f2f2;
  flex:0 0 auto;
}

.smb-bk-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.smb-bk-thumb.is-placeholder{
  background:#f2f2f2;
}

.smb-bk-type-headtext{
  min-width:0;
  flex:1;
}

/* =========================================================
   BOOKING TYPE CARD — Layout pro (Media grande + Precio arriba)
========================================================= */

.smb-bk-type-head{
  display:flex;
  gap:16px;
  align-items:stretch;
}

/* Columna izquierda grande */
.smb-bk-media{
  width:260px;              /* desktop: ancho de la imagen */
  flex:0 0 260px;
  border-radius:18px;
  overflow:hidden;
  background:#f2f2f2;
}

/* tu thumb actual tiene un div.smb-bk-thumb dentro */
.smb-bk-media .smb-bk-thumb{
  width:100%;
  height:100%;
  min-height:160px;         /* asegura alto */
  border-radius:0;
}

/* asegura que img cubra */
.smb-bk-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.smb-bk-type-headtext{
  flex:1;
  min-width:0;
  padding:6px 0;
}

/* Precio arriba derecha */
.smb-bk-priceTop{
  flex:0 0 auto;
  text-align:right;
  padding:6px 0;
  min-width:140px;
}
.smb-bk-priceLbl{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.65;
}
.smb-bk-priceVal{
  font-size:22px;
  font-weight:900;
  line-height:1.05;
}

/* Grid 2 columnas */
.smb-bk-type-grid.is-2col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:12px;
}

/* =========================
   Mobile: hero image + overlay text/price
========================= */
@media (max-width: 720px){
  .smb-bk-type-head{
    position: relative;
    padding: 0;
  }

  .smb-bk-media{
    width: 100%;
    flex: 0 0 auto;
    height: 220px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
  }

  .smb-bk-media .smb-bk-thumb{
    min-height: 220px;
  }

  .smb-bk-media::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.08));
    z-index: 1;
  }

  .smb-bk-type-headtext,
  .smb-bk-priceTop{
    position: absolute;
    left: 14px;
    right: 14px;
    z-index: 2;
  }

  .smb-bk-type-headtext{
    bottom: 64px;
    color: #fff;
  }

  .smb-bk-type-title{ color: #fff; }
  .smb-bk-type-meta{ color: rgba(255,255,255,.86); }

  .smb-bk-priceTop{
    bottom: 12px;
    text-align: left;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
  }

  .smb-bk-priceLbl{ opacity: .75; }
  .smb-bk-priceVal{ font-size: 18px; }

  .smb-bk-type-grid.is-2col{
    grid-template-columns: 1fr;
  }
}

.smb-meal-block{
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.smb-meal-label{
  display:block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}
.smb-meal-select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #f9fafb;
  font-weight: 700;
}
.smb-meal-select:focus{
  outline:none;
  border-color: rgba(16,185,129,.75);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  background:#fff;
}
.smb-meal-hint{
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}


.smb-noav-wrap{
  margin:12px 0;
  padding:12px;
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
}
.smb-noav-title{ font-weight:800; margin-bottom:6px; }
.smb-noav-sub{ font-size:13px; opacity:.85; margin-bottom:10px; }
.smb-noav-ranges{
  display:flex; flex-wrap:wrap; gap:8px;
}
.smb-range-btn{
  border:1px solid #ddd;
  background:#f8f9fb;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:13px;
}
.smb-range-btn:hover{ background:#eef3ff; border-color:#cdd9ff; }
.smb-noav-foot{ margin-top:10px; font-size:12px; opacity:.75; }


/* ============================================================
   SMB BOOKING SINGLE — CSS limpio
   - En SINGLE no usamos screen "summary": lo ocultamos
   - (results actúa como summary visual)
   ============================================================ */
body.smb-is-single #smbDrawer [data-screen="summary"]{
  display:none !important;
}

/* =========================================
   SMB GUEST — Teléfono layout FIX (definitivo)
   - Gana sobre Elementor / estilos globales
   - Select (indicativo) fijo + input ocupa resto
   ========================================= */

#smbDrawer .smb-phone{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  width:100% !important;

  background:#f7f7f7;
  padding:6px;
  border-radius:12px;
  box-sizing:border-box !important;
}

/* Reset de controles dentro del contenedor */
#smbDrawer .smb-phone select,
#smbDrawer .smb-phone input{
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  box-sizing:border-box !important;
}

/* Indicativo: ancho fijo */
#smbDrawer .smb-phone select#smb_g_country.smb-country{
  flex:0 0 110px !important;
  width:110px !important;
  min-width:110px !important;
  max-width:110px !important;
}

/* Número: ocupa TODO el resto */
#smbDrawer .smb-phone input#smb_g_tel.smb-input--phone{
  flex:1 1 auto !important;
  width:100% !important;
  min-width:0 !important; /* clave para que no se encoja raro */
}

/* Mobile más compacto */
@media (max-width:480px){
  #smbDrawer .smb-phone select#smb_g_country.smb-country{
    flex:0 0 95px !important;
    width:95px !important;
    min-width:95px !important;
    max-width:95px !important;
  }
}

/* FIX layout teléfono (select + input) */
#smbDrawer #smb_g_country{
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

#smbDrawer #smb_g_tel{
  width: calc(100% - 110px) !important;
  display: inline-block !important;
  vertical-align: top !important;
}

/* =========================================
   CTA PRO — SMB Booking Style
   ========================================= */

#smbDrawer [data-smb-drawer-cta],
#smbDrawer .smb-cta,
#smbDrawer .smb-drawer__cta button {

  width: 100%;
  height: 52px;

  border: 0;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;

  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;

  cursor: pointer;

  transition: all .18s ease;

  box-shadow:
    0 6px 16px rgba(34,197,94,.35),
    inset 0 -2px 0 rgba(0,0,0,.12);
}

/* hover */
#smbDrawer .smb-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(34,197,94,.45),
    inset 0 -2px 0 rgba(0,0,0,.12);
}

/* active */
#smbDrawer .smb-cta:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(34,197,94,.35),
    inset 0 2px 6px rgba(0,0,0,.15);
}

/* disabled real */
#smbDrawer .smb-cta:disabled {
  background: #d1d5db !important;
  color: #6b7280 !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

/* loading */
#smbDrawer .smb-cta.is-loading {
  pointer-events: none;
  opacity: .7;
}

/* =========================================
   SMB UNIDADES MODAL — OCULTO POR DEFECTO
   ========================================= */

.smb-unidades-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;            /* 🔥 CLAVE */
}

/* Solo visible cuando JS lo abre */
.smb-unidades-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   FIX DEFINITIVO — MODAL UNIDADES NO DEBE VERSE EN PAGE FLOW
   ========================================= */

/* 1) Oculto SIEMPRE por defecto */
.smb-unidades-modal{
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 2) Solo se muestra cuando JS lo abre */
.smb-unidades-modal.is-open{
  display: flex !important;
}

/* 3) Caja interna */
.smb-unidades-box-modal{
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

/* 4) Backdrop (si quieres que oscurezca) */
.smb-unidades-modal.is-open::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
}
/* =========================================================
   SMB UNIDADES MODAL — CERRADO POR DEFECTO
   (evita que "Ocupación por habitación" se vea abajo)
   ========================================================= */

/* 1) Estado base: oculto */
.smb-unidades-modal{
  position: fixed !important;
  inset: 0 !important;            /* top/right/bottom/left */
  z-index: 999999 !important;

  display: flex !important;
  align-items: flex-end !important; /* modal tipo bottom-sheet */
  justify-content: center !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2) Caja */
.smb-unidades-box-modal{
  width: min(680px, calc(100% - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: auto !important;

  transform: translateY(14px) !important;
  transition: transform .18s ease, opacity .18s ease !important;
}

/* 3) Abierto SOLO con .is-open */
.smb-unidades-modal.is-open{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.smb-unidades-modal.is-open .smb-unidades-box-modal{
  transform: translateY(0) !important;
}

/* 4) Bloqueo scroll fondo cuando está abierto */
html.smb-modal-open,
body.smb-modal-open{
  overflow: hidden !important;
}

/* =========================================================
   SMB UNIDADES MODAL — NUNCA visible por defecto
   Solo se muestra con .is-open
   ========================================================= */

/* Estado base: oculto SIEMPRE */
.smb-unidades-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: none !important;          /* 🔥 clave: que NO se renderice en el flujo */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  align-items: flex-end !important;
  justify-content: center !important;
}

/* Caja */
.smb-unidades-box-modal{
  width: min(680px, calc(100% - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: auto !important;

  transform: translateY(14px) !important;
  transition: transform .18s ease, opacity .18s ease !important;
}

/* Abierto SOLO con .is-open */
.smb-unidades-modal.is-open{
  display: flex !important;          /* 🔥 solo aquí aparece */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.smb-unidades-modal.is-open .smb-unidades-box-modal{
  transform: translateY(0) !important;
}

/* Bloqueo scroll fondo cuando está abierto */
html.smb-modal-open,
body.smb-modal-open{
  overflow: hidden !important;
}
