/* ======================================================
   ATLAS (v4.1) — "Estate" layout
   - Hero con overlay suave
   - Booking bar flotante (inyectado por JS)
   - Cards limpias, look premium
   ====================================================== */

:root[data-theme="atlas"] {
  --vtw-bg: #fbfbf9;
  --vtw-text: #14181f;
  --vtw-muted: rgba(0,0,0,.62);
  --vtw-border: rgba(0,0,0,.10);

  --vtw-accent: #0f2a44;
  --vtw-accent-hover: #0a223a;
  --vtw-accent-soft: #e8eef5;

  --vtw-header-bg: #fbfbf9;
  --vtw-header-border: rgba(0,0,0,.10);
  --vtw-header-link: #14181f;

  --vtw-footer-bg: #0b1623;
  --vtw-footer-text: rgba(255,255,255,.92);

  /* Map global tokens */
  --accent: var(--vtw-accent);
  --accent-2: var(--vtw-accent-hover);
  --accent-soft: var(--vtw-accent-soft);
  --header-bg: var(--vtw-header-bg);
  --header-link: var(--vtw-header-link);
  --link-color: var(--vtw-accent);
}

html[data-theme="atlas"][data-palette="charcoal"]{
  --vtw-accent:#27313c;
  --vtw-accent-hover:#18212a;
  --vtw-accent-soft:#edf0f2;
}
html[data-theme="atlas"][data-palette="navy"]{
  --vtw-accent:#0f2a44;
  --vtw-accent-hover:#0a223a;
  --vtw-accent-soft:#e8eef5;
}
html[data-theme="atlas"][data-palette="olive"]{
  --vtw-accent:#4b5634;
  --vtw-accent-hover:#394226;
  --vtw-accent-soft:#eef1e7;
}
html[data-theme="atlas"][data-palette="sandstone"]{
  --vtw-accent:#7a5b43;
  --vtw-accent-hover:#604532;
  --vtw-accent-soft:#f3ece6;
}
html[data-theme="atlas"][data-palette="ruby"]{
  /* Rojo elegante / vino, con contraste suficiente sin resultar chillón */
  --vtw-accent:#a3263a;
  --vtw-accent-hover:#7f1d2d;
  --vtw-accent-soft:#f7e8eb;
}
html[data-theme="atlas"][data-palette="evergreen"]{
  /* Verde medio-oscuro: sobrio y natural, sin llegar a verde casi negro */
  --vtw-accent:#2f6b57;
  --vtw-accent-hover:#255545;
  --vtw-accent-soft:#e7f1ed;
}

html[data-theme="atlas"] body{
  background: var(--vtw-bg);
  color: var(--vtw-text);
}

/* Header clean */
html[data-theme="atlas"] .header{
  background: rgba(251,251,249,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,24,31,.08);
}
html[data-theme="atlas"] .nav a{ opacity:.82; }
html[data-theme="atlas"] .nav a.active{ border-bottom:2px solid var(--vtw-accent); opacity:1; }

/* Hero: taller + overlay */
html[data-theme="atlas"] .hero.hero--detail{
  max-width:none;
  margin:0;
  padding:0;
  border-radius:0;
}
html[data-theme="atlas"] .hero.hero--detail img,
html[data-theme="atlas"] .hero.hero--detail #heroImg{
  width:100%;
  height:72vh;
  min-height:520px;
  object-fit:cover;
  border-radius:0;
  display:block;
}
html[data-theme="atlas"] .hero.hero--detail .hero-media{ position:relative; }
html[data-theme="atlas"] .hero.hero--detail .hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.46), rgba(0,0,0,.10) 55%, rgba(0,0,0,.00));
  pointer-events:none;
}

/* Hide default hero CTA (we use booking bar) */
html[data-theme="atlas"] .hero-cta{ display:none !important; }


/* Hero card (injected by atlas-menu.js) */
html[data-theme="atlas"] .at-heroCard{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(980px, calc(100% - 32px));
  text-align: center;
  color: #fff;
  z-index: 4;
  pointer-events: none;
}
html[data-theme="atlas"] .at-heroTitle{
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-shadow: 0 18px 50px rgba(0,0,0,.55);
  margin: 0 0 10px 0;
}
html[data-theme="atlas"] .at-heroSub{
  font-size: 15px;
  opacity: .92;
  font-weight: 700;
  text-shadow: 0 14px 34px rgba(0,0,0,.55);
  margin: 0;
}

/* Booking bar (injected by atlas-menu.js) */
html[data-theme="atlas"] .at-bookbar{
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
  width:min(1100px, calc(100% - 32px));
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(20,24,31,.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  padding: 10px;
  z-index: 5;
}
html[data-theme="atlas"] .at-bookbar-inner{
  display:flex;
  gap:10px;
  align-items:stretch;
}
html[data-theme="atlas"] .at-field{
  flex:1 1 0;
  border-radius: 12px;
  border: 1px solid rgba(20,24,31,.08);
  background: #fff;
  padding: 10px 12px;
  cursor:pointer;
  min-height:46px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
html[data-theme="atlas"] .at-field .k{
  font-size:12px;
  opacity:.65;
  font-weight:700;
  letter-spacing:.02em;
}
html[data-theme="atlas"] .at-field .v{
  font-size:14px;
  font-weight:800;
}
html[data-theme="atlas"] .at-cta{
  flex:0 0 auto;
  border-radius: 12px;
  border: none;
  padding: 0 18px;
  min-height:46px;
  cursor:pointer;
  background: var(--vtw-accent);
  color:#fff;
  font-weight:900;
  letter-spacing:.02em;
}
html[data-theme="atlas"] .at-cta:hover{ background: var(--vtw-accent-hover); }

/* Push content down a bit because bar overlaps hero bottom */
html[data-theme="atlas"] .intro{ margin-top: 56px; }

@media (max-width: 900px){
  html[data-theme="atlas"] .hero.hero--detail #heroImg{ height:64vh; min-height:420px; }
  html[data-theme="atlas"] .at-bookbar{ bottom:-40px; }
  html[data-theme="atlas"] .at-bookbar-inner{ flex-wrap:wrap; }
  html[data-theme="atlas"] .at-field{ flex:1 1 calc(50% - 10px); }
  html[data-theme="atlas"] .at-cta{ flex:1 1 100%; }
  html[data-theme="atlas"] .intro{ margin-top: 74px; }
}

/* Gallery "tiles" feel */
html[data-theme="atlas"] .image-grid img,
html[data-theme="atlas"] .gallery-grid img{
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16,24,40,.10);
}

/* Footer */
html[data-theme="atlas"] .footer{
  background: var(--vtw-footer-bg);
  color: var(--vtw-footer-text);
}
html[data-theme="atlas"] .footer a{ color:#fff; opacity:.92; }
html[data-theme="atlas"] .footer a:hover{ opacity:1; }


/* =========================================================
   ATLAS — Drawer móvil (<=1024px)
   JS crea: #atHamb, #atOverlay, #atDrawer
   ========================================================= */

@media (max-width: 1024px) {
  html[data-theme="atlas"] .nav { display:none !important; }
  html[data-theme="atlas"] #atHamb { display:flex; }
}

@media (min-width: 1025px) {
  html[data-theme="atlas"] #atHamb { display:none; }
}

html[data-theme="atlas"] #atHamb {
  position: fixed;
  right: 16px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1110;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
html[data-theme="atlas"] #atHamb .at-bars {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
html[data-theme="atlas"] #atHamb .at-bars span {
  height: 2px;
  border-radius: 999px;
  background: var(--vtw-accent);
  display: block;
}

html[data-theme="atlas"] #atOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1090;
}
html[data-theme="atlas"] body.at-menu-open #atOverlay {
  opacity: 1;
  pointer-events: auto;
}

html[data-theme="atlas"] #atDrawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 360px;
  max-width: 88%;
  background: #fff;
  box-shadow: -6px 0 24px rgba(0,0,0,.22);
  transform: translateX(100%);
  transition: transform .25s ease-out;
  z-index: 1110;
  display: flex;
  flex-direction: column;
}
html[data-theme="atlas"] body.at-menu-open #atDrawer {
  transform: translateX(0);
}

html[data-theme="atlas"] #atDrawer .at-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
html[data-theme="atlas"] #atDrawer .at-logo img {
  max-height: 58px;
  width: auto;
  display: block;
}
html[data-theme="atlas"] #atDrawer .at-close {
  position: absolute;
  left: 14px;
  top: 18px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  opacity: .8;
}
html[data-theme="atlas"] #atDrawer .at-close:hover { opacity: 1; }

html[data-theme="atlas"] #atDrawer .at-nav {
  padding: 16px 18px;
  flex: 1 1 auto;
  overflow-y: auto;
}
html[data-theme="atlas"] #atDrawer .at-nav a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  color: #111;
  text-decoration: none;
  font-size: 15px;
}
html[data-theme="atlas"] #atDrawer .at-nav a:hover {
  background: color-mix(in srgb, var(--vtw-accent) 10%, #fff);
}
html[data-theme="atlas"] #atDrawer .at-nav a.active {
  background: var(--vtw-accent);
  color: #fff;
  font-weight: 800;
}

html[data-theme="atlas"] #atDrawer .at-bottom {
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}
html[data-theme="atlas"] #atDrawer .at-langLabel {
  font-size: 13px;
  color: rgba(0,0,0,.62);
  margin-bottom: 6px;
}
html[data-theme="atlas"] #atDrawer .at-langSelect {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 12px;
  background: #fff;
}
html[data-theme="atlas"] #atDrawer .at-reserve-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  background: var(--vtw-accent);
  color: #fff;
}
html[data-theme="atlas"] #atDrawer .at-reserve-btn:hover {
  background: var(--vtw-accent-hover);
}

@media (max-width: 768px) {
  html[data-theme="atlas"] #atDrawer {
    width: 100%;
    max-width: none;
  }
}
/* =========================================================
   ATLAS v4 — Booking launcher + compact PMS checkout
   Same reserve.js engine; Atlas only changes presentation.
   ========================================================= */

html[data-theme="atlas"] .hero.hero--detail,
html[data-theme="atlas"] .hero.hero--detail .hero-media{
  overflow: visible !important;
}

html[data-theme="atlas"] .at-bookbar{
  box-sizing:border-box;
  isolation:isolate;
}

html[data-theme="atlas"] .at-bookbar-inner{
  position:relative;
}

html[data-theme="atlas"] .at-field{
  position:relative;
  box-sizing:border-box;
  text-align:left;
  font:inherit;
  color:var(--vtw-text);
  outline:none;
  appearance:none;
}

html[data-theme="atlas"] button.at-field{
  width:auto;
}

html[data-theme="atlas"] .at-field:hover,
html[data-theme="atlas"] .at-field:focus-within,
html[data-theme="atlas"] button.at-field:focus-visible{
  border-color:color-mix(in srgb,var(--vtw-accent) 38%,rgba(20,24,31,.12));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--vtw-accent) 9%,transparent);
}

html[data-theme="atlas"] .at-date-input{
  width:100%;
  min-width:0;
  margin:1px 0 0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--vtw-text);
  font:inherit;
  font-size:14px;
  line-height:1.35;
  font-weight:800;
  cursor:pointer;
}

html[data-theme="atlas"] .at-date-input::placeholder{
  color:var(--vtw-text);
  opacity:.84;
}

html[data-theme="atlas"] .at-guests-field{
  padding-right:38px;
}

html[data-theme="atlas"] .at-guests-field .v{
  display:block;
}

html[data-theme="atlas"] .at-chevron{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  opacity:.58;
}

html[data-theme="atlas"] .at-guest-popover{
  position:absolute;
  right:118px;
  bottom:calc(100% + 12px);
  width:min(330px,calc(100vw - 36px));
  box-sizing:border-box;
  padding:12px;
  border:1px solid rgba(20,24,31,.10);
  border-radius:18px;
  background:#fff;
  color:var(--vtw-text);
  box-shadow:0 24px 70px rgba(15,23,42,.22);
  z-index:30;
}

html[data-theme="atlas"] .at-guest-popover[hidden]{
  display:none!important;
}

html[data-theme="atlas"] .at-guest-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:11px 4px;
  border-bottom:1px solid rgba(20,24,31,.08);
}

html[data-theme="atlas"] .at-guest-row[hidden]{
  display:none!important;
}

html[data-theme="atlas"] .at-guest-row > div:first-child{
  display:grid;
  gap:2px;
}

html[data-theme="atlas"] .at-guest-row strong{
  font-size:14px;
  line-height:1.2;
}

html[data-theme="atlas"] .at-guest-row small{
  color:var(--vtw-muted);
  font-size:11px;
  line-height:1.25;
}

html[data-theme="atlas"] .at-stepper{
  display:grid;
  grid-template-columns:32px 26px 32px;
  align-items:center;
  justify-items:center;
  gap:4px;
}

html[data-theme="atlas"] .at-stepper button{
  width:32px;
  height:32px;
  border-radius:9px;
  border:1px solid rgba(20,24,31,.14);
  background:#fff;
  color:var(--vtw-text);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

html[data-theme="atlas"] .at-stepper button:hover:not(:disabled){
  border-color:var(--vtw-accent);
  color:var(--vtw-accent);
}

html[data-theme="atlas"] .at-stepper button:disabled{
  opacity:.34;
  cursor:not-allowed;
}

html[data-theme="atlas"] .at-stepper span{
  font-size:14px;
  font-weight:800;
}

html[data-theme="atlas"] .at-guest-done{
  width:100%;
  min-height:40px;
  margin-top:10px;
  border-radius:11px;
  border:1px solid rgba(20,24,31,.12);
  background:#fff;
  color:var(--vtw-text);
  font-weight:800;
  cursor:pointer;
}

html[data-theme="atlas"] .at-guest-done:hover{
  border-color:var(--vtw-accent);
  color:var(--vtw-accent);
}

html[data-theme="atlas"] .at-bookbar-status{
  display:none;
  margin:7px 3px 0;
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

html[data-theme="atlas"] .at-bookbar-status.is-error,
html[data-theme="atlas"] .at-bookbar-status.is-info{
  display:block;
}

html[data-theme="atlas"] .at-bookbar-status.is-error{
  background:#fff1f2;
  color:#9f1239;
  border:1px solid #fecdd3;
}

html[data-theme="atlas"] .at-bookbar-status.is-info{
  background:#eff6ff;
  color:#1e3a8a;
  border:1px solid #bfdbfe;
}

html[data-theme="atlas"] .at-cta:disabled{
  opacity:.66;
  cursor:wait;
}

html[data-theme="atlas"] body > .flatpickr-calendar{
  z-index:2147483700!important;
  box-shadow:0 22px 65px rgba(15,23,42,.20)!important;
  border-radius:16px!important;
  border:1px solid rgba(20,24,31,.10)!important;
}


html[data-theme="atlas"] .vtw-rsv-identity-modal{
  z-index:2147483800!important;
}

/* ---------- Compact reserve inspired by a staged OTA checkout ---------- */
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.is-open{
  position:fixed!important;
  inset:0!important;
  z-index:2147482500!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(15,23,42,.46)!important;
  backdrop-filter:blur(5px)!important;
  box-sizing:border-box!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-backdrop{
  position:fixed!important;
  inset:0!important;
  background:transparent!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-panel{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  width:min(1240px,calc(100vw - 36px))!important;
  max-width:1240px!important;
  height:min(820px,calc(100dvh - 36px))!important;
  max-height:calc(100dvh - 36px)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(15,23,42,.10)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 30px 95px rgba(15,23,42,.28)!important;
  display:flex!important;
  flex-direction:column!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow #reserveTitle,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-actions{
  display:none!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:20!important;
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  border:1px solid rgba(15,23,42,.12)!important;
  background:rgba(255,255,255,.96)!important;
  color:#0f172a!important;
  box-shadow:0 8px 22px rgba(15,23,42,.08)!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow #vtwReserveAirbnbLike{
  flex:1 1 auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:auto!important;
  background:#fff!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-sep{
  display:none!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-demo-banner{
  margin:16px 72px 0 28px!important;
}

html[data-theme="atlas"] .vtw-atlas-flowbar{
  position:sticky;
  top:0;
  z-index:10;
  min-height:64px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 74px 0 30px;
  border-bottom:1px solid rgba(15,23,42,.09);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  box-sizing:border-box;
}

html[data-theme="atlas"] .vtw-atlas-flowbar button{
  padding:0 0 8px;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#64748b;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

html[data-theme="atlas"] .vtw-atlas-flowbar button.is-active{
  color:#0f172a;
  border-bottom-color:var(--vtw-accent);
}

html[data-theme="atlas"] .vtw-atlas-flowbar button:disabled{
  opacity:1;
  cursor:default;
}

html[data-theme="atlas"] .vtw-atlas-flowbar span{
  color:#94a3b8;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-grid{
  width:min(1180px,calc(100% - 44px))!important;
  margin:0 auto!important;
  padding:26px 0 102px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(330px,.85fr)!important;
  gap:34px!important;
  align-items:start!important;
  box-sizing:border-box!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-left,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-right{
  min-width:0!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-card{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-left > .vtw-rsv-card{
  padding:0!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-right .vtw-rsv-summary{
  position:sticky!important;
  top:86px!important;
  padding:22px!important;
  border:1px solid rgba(15,23,42,.12)!important;
  border-radius:20px!important;
  box-shadow:0 8px 28px rgba(15,23,42,.055)!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-contact{
  display:none!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-head{
  margin-bottom:22px!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-head .vtw-rsv-title{
  font-size:23px!important;
  letter-spacing:-.025em!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-intent{
  display:none!important;
}

html[data-theme="atlas"] .vtw-atlas-selection{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 22px;
  padding:15px 17px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#f8fafc;
}

html[data-theme="atlas"] .vtw-atlas-selection[hidden]{
  display:none!important;
}

html[data-theme="atlas"] .vtw-atlas-selection > div{
  min-width:0;
  display:grid;
  gap:4px;
}

html[data-theme="atlas"] .vtw-atlas-selection-kicker{
  color:#64748b;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.10em;
}

html[data-theme="atlas"] #vtwAtlasSelectionText{
  overflow:hidden;
  color:#0f172a;
  font-size:14px;
  line-height:1.35;
  text-overflow:ellipsis;
}

html[data-theme="atlas"] #vtwAtlasEditDates{
  flex:0 0 auto;
  min-height:36px;
  padding:0 13px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--vtw-accent);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-form{
  display:grid!important;
  gap:14px!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-field input,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-field select,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-field textarea{
  border-radius:12px!important;
  min-height:48px!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-field textarea{
  min-height:112px!important;
}

/* Dates step: only search controls; the footer Continue moves to Contact. */
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-dates .vtw-atlas-name-field,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-dates .vtw-atlas-email-field,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-dates .vtw-atlas-message-field,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-dates .vtw-atlas-terms-field,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-dates #vtwInquirySubmit{
  display:none!important;
}

/* Contact step: dates/guest selection is condensed into "Tu estancia". */
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-contact .vtw-atlas-dates-row,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-contact .vtw-atlas-guests-field,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-contact #vtwMinorGuestRow,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-contact #vtwInquirySubmit{
  display:none!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.vtw-atlas-step-contact .vtw-rsv-row2:has(.vtw-atlas-name-field){
  grid-template-columns:1fr!important;
}

html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow #vtwPayDeposit,
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow #vtwInquirySubmitBottom{
  visibility:hidden!important;
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

/* Keep the pricing/payment explanation but remove duplicated action chrome. */
html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-pay{
  margin-top:18px!important;
  padding-top:16px!important;
  border-top:1px solid rgba(15,23,42,.09)!important;
}

html[data-theme="atlas"] .vtw-atlas-actions{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:14;
  min-height:78px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:13px 28px;
  border-top:1px solid rgba(15,23,42,.09);
  background:rgba(255,255,255,.97);
  box-shadow:0 -10px 30px rgba(15,23,42,.055);
  backdrop-filter:blur(12px);
  box-sizing:border-box;
}

html[data-theme="atlas"] .vtw-atlas-actions button{
  min-height:48px;
  padding:0 22px;
  border-radius:12px;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

html[data-theme="atlas"] .vtw-atlas-back{
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  color:#334155;
}

html[data-theme="atlas"] .vtw-atlas-continue{
  min-width:200px;
  border:1px solid transparent;
  background:var(--vtw-accent);
  color:#fff;
  box-shadow:0 10px 26px color-mix(in srgb,var(--vtw-accent) 24%,transparent);
}

html[data-theme="atlas"] .vtw-atlas-continue:hover{
  background:var(--vtw-accent-hover);
}

html[data-theme="atlas"] body.vtw-atlas-flow-open{
  overflow:hidden!important;
}

@media (max-width:900px){
  html[data-theme="atlas"] .at-guest-popover{
    right:10px;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow.is-open{
    padding:8px!important;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-panel{
    width:calc(100vw - 16px)!important;
    height:calc(100dvh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:18px!important;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-grid{
    width:calc(100% - 28px)!important;
    grid-template-columns:1fr!important;
    gap:18px!important;
    padding:18px 0 104px!important;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-right .vtw-rsv-summary{
    position:relative!important;
    top:auto!important;
  }

  html[data-theme="atlas"] .vtw-atlas-flowbar{
    min-height:58px;
    padding:0 58px 0 18px;
    gap:9px;
  }

  html[data-theme="atlas"] .vtw-atlas-flowbar button{
    font-size:12.5px;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .reserve-close{
    top:10px!important;
    right:10px!important;
  }
}

@media (max-width:640px){
  html[data-theme="atlas"] .at-bookbar{
    left:12px;
    right:12px;
    bottom:-116px;
    transform:none;
    width:auto;
    padding:8px;
  }

  html[data-theme="atlas"] .at-bookbar-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  html[data-theme="atlas"] .at-field{
    min-height:54px;
    padding:9px 10px;
  }

  html[data-theme="atlas"] .at-guests-field{
    grid-column:1 / 2;
    width:100%!important;
  }

  html[data-theme="atlas"] .at-cta{
    grid-column:2 / 3;
    min-height:54px;
    padding:0 12px;
  }

  html[data-theme="atlas"] .at-guest-popover{
    right:0;
    bottom:calc(100% + 8px);
    width:100%;
  }

  html[data-theme="atlas"] .intro{
    margin-top:136px;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-demo-banner{
    margin:10px 50px 0 12px!important;
  }

  html[data-theme="atlas"] .vtw-atlas-flowbar{
    overflow-x:auto;
    white-space:nowrap;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-grid{
    width:calc(100% - 20px)!important;
    padding-top:14px!important;
  }

  html[data-theme="atlas"] .vtw-atlas-selection{
    align-items:flex-start;
    flex-direction:column;
  }

  html[data-theme="atlas"] #vtwAtlasEditDates{
    width:100%;
  }

  html[data-theme="atlas"] .vtw-atlas-actions{
    min-height:72px;
    display:grid;
    grid-template-columns:1fr 1.15fr;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  html[data-theme="atlas"] .vtw-atlas-actions button{
    min-width:0;
    width:100%;
    padding:0 10px;
    font-size:13px;
  }

  html[data-theme="atlas"] .reserve-modal.vtw-atlas-flow .vtw-rsv-row2{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================
   ATLAS · AJUSTE FINAL 2026-08-19
   - Booking bar un poco más alta para separarla del contenido
   - Tipografía coherente con el resto del sitio
   ========================================================== */

html[data-theme="atlas"] .at-bookbar,
html[data-theme="atlas"] .at-bookbar button,
html[data-theme="atlas"] .at-bookbar input,
html[data-theme="atlas"] .at-bookbar select,
html[data-theme="atlas"] .at-bookbar textarea{
  font-family:inherit !important;
}

html[data-theme="atlas"] .at-cta{
  font-family:inherit !important;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:0;
}

/* Desktop: la barra entra más en la foto y queda separada del bloque inferior. */
@media (min-width:901px){
  html[data-theme="atlas"] .at-bookbar{
    bottom:-12px;
  }
}

/* Tablet: mismo criterio, sin tocar el layout móvil compacto. */
@media (min-width:641px) and (max-width:900px){
  html[data-theme="atlas"] .at-bookbar{
    bottom:-24px;
  }
}

/* ==========================================================
   ATLAS · AJUSTE POSICIÓN + TIPOGRAFÍA V2 · 2026-08-19
   Corrección visual definitiva:
   - La booking bar queda completamente DENTRO del hero.
   - No invade tabs/overview/index.
   - Tipografía menos pesada y coherente con navegación.
   - CTA con forma de píldora; JS sincroniza además el estilo
     computado del botón Reservar superior cuando existe.
   ========================================================== */

/* Desktop: la barra queda dentro de la imagen, con aire respecto al borde. */
@media (min-width:901px){
  html[data-theme="atlas"] .at-bookbar{
    bottom:18px !important;
  }
}

/* Tablet: también dentro del hero. */
@media (min-width:641px) and (max-width:900px){
  html[data-theme="atlas"] .at-bookbar{
    bottom:14px !important;
  }
}

/* Móvil: anula el antiguo bottom:-116px para que tampoco se solape. */
@media (max-width:640px){
  html[data-theme="atlas"] .at-bookbar{
    bottom:10px !important;
  }
  html[data-theme="atlas"] .intro{
    margin-top:28px !important;
  }
}

/* Tipografía de la barra: misma familia que el sitio; pesos más naturales. */
html[data-theme="atlas"] .at-bookbar,
html[data-theme="atlas"] .at-bookbar *,
html[data-theme="atlas"] .at-bookbar button,
html[data-theme="atlas"] .at-bookbar input,
html[data-theme="atlas"] .at-bookbar select{
  font-family:inherit !important;
}

html[data-theme="atlas"] .at-field .k{
  font-size:11px !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  line-height:1.15 !important;
}

html[data-theme="atlas"] .at-field .v,
html[data-theme="atlas"] .at-date-input{
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  line-height:1.25 !important;
}

/* CTA alineado visualmente con el botón Reservar del header. */
html[data-theme="atlas"] .at-cta{
  align-self:center !important;
  min-height:40px !important;
  border-radius:999px !important;
  padding:0 18px !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}

@media (max-width:640px){
  html[data-theme="atlas"] .at-cta{
    min-height:44px !important;
    border-radius:999px !important;
  }
}
