/* RETOO Play unificado: mantiene el diseño original de inicio.
   Sólo aporta estilos a pantallas operativas, menú y reserva real. */
html{scroll-padding-top:85px}
body:not(.on-home) #main-hero{display:none}
.navtab{border:0;background:transparent;color:#d2e6d1;padding:9px 6px;font-size:12px;font-weight:800;white-space:nowrap;border-radius:10px}
.navtab.active{color:#c8f769;background:#ffffff13}
.desktop-links{gap:8px;align-items:center;flex-wrap:wrap}
.desktop-links #unread-count{background:#d95340;color:white;padding:1px 6px;border-radius:30px;margin-left:4px}
.view-section[hidden],main .view[hidden]{display:none!important}
main .view{background:transparent;border:0;color:inherit;padding:0;border-radius:0;font:inherit;display:block}
.section .filters{margin-top:0}
.filter-select{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750}
.filter-select select,.filter-select input{border:0;background:transparent;color:#2c4932;font-size:12px;max-width:150px;min-width:90px;padding:8px}
.filter-price input{border:0;background:transparent;max-width:100px;padding:7px;font-size:12px}
.filter-submit,.filter-clear{border:0;background:#142f20;color:white;padding:11px 13px;border-radius:10px;font-size:12px;font-weight:800}
.filter-clear{background:#edf4e8;color:#35613d;border:1px solid #cde0c5}
.venue-art{position:relative;background:linear-gradient(120deg,#1e7549,#74ac65)}
.venue-art[data-sport=padel],.venue-art[data-sport=tenis]{background:linear-gradient(120deg,#16788a,#57b1b9)}
.venue-art[data-sport=basquet]{background:linear-gradient(120deg,#bd723c,#e0af75)}
.venue-art[data-sport=natacion]{background:linear-gradient(120deg,#258caf,#80cbdf)}
.venue-art[data-sport=voley]{background:linear-gradient(120deg,#ae9855,#ddc787)}
.venue-art-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:65px;opacity:.9}
.venue-art .type{bottom:13px}
.venue-art .fav{position:absolute;right:12px;top:12px;z-index:2}
.venue .venue-foot{align-items:center}
.venue .venue-foot .view{border:0;background:#142e20;color:white;padding:10px 14px;border-radius:10px;font-size:12px;font-weight:800}
.venue-info-location,.location{line-height:1.6}
.empty{grid-column:1/-1;display:block}
.note-inline{font-size:12px;color:#718472;line-height:1.6;margin:17px 0}
.bottomnav .bottomnav-item{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;justify-content:center;color:#708071;font-size:10px;font-weight:750;padding:6px 0 3px;min-width:0}
.bottomnav .bottomnav-item span{font-size:20px;line-height:1.15}
.bottomnav .bottomnav-item.active{color:#183b27}
.bottomnav .bottomnav-item{position:relative}
.bottomnav #bottom-unread{position:absolute;top:1px;right:11%;min-width:17px;height:17px;line-height:17px;background:#d24c34;color:white;border-radius:100px;font-size:10px;font-weight:900;text-align:center}
.bottomnav .bottomnav-item.active span{background:#e6f5d6;border-radius:11px;padding:3px 10px}
.page-heading{margin:26px 0}
.page-heading h1{margin:10px 0 6px;font-size:clamp(27px,4vw,36px)}
.page-heading p{color:#68806d;font-size:13px}
.stack{display:flex;flex-direction:column;gap:13px}
.card{background:white;border:1px solid #dce8d7;border-radius:20px;padding:24px;box-shadow:0 3px 16px #15392308}
.status-card h3{font-size:20px;margin:8px 0 10px}
.status-card .eyebrow{background:transparent;border:0;padding:0;color:#44844d;font-size:11px}
.status-card .quiet{color:#687b6b;font-size:13px}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:18px}
.profile-side{display:flex;flex-direction:column;gap:18px}
.profile-card form{display:flex;flex-direction:column;gap:17px}
.profile-card label,.selected-date label,.play-overlay label{display:flex;flex-direction:column;gap:7px;font-weight:800;font-size:12px}
.profile-card input,.profile-card select,.play-overlay input{width:100%;padding:13px;border:1px solid #d8e7d0;border-radius:10px;background:white;color:#263f2a;min-width:0;font-size:13px}
.profile-card input:disabled{background:#f2f5ee;color:#899889}
.profile-card small,.quiet{font-size:12px;color:#738373;line-height:1.65}
.profile-card .check{flex-direction:row;gap:12px;align-items:flex-start;line-height:1.7}
.profile-card .check input{width:18px;height:18px;flex:0 0 18px;margin-top:1px}
.primary{border:0;background:var(--deep);color:white;border-radius:11px;padding:13px 17px;font-weight:850;font-size:12px}
.primary:disabled{opacity:.45;cursor:not-allowed}
.subtle{border:1px solid #c7dfbd;background:#edf6e6;color:#295834;border-radius:10px;padding:11px 13px;font-size:12px;font-weight:800}
.record{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:1px solid #dde8d7;background:white;border-radius:18px;padding:21px}
.record h3{font-size:17px;margin:0 0 8px}
.record p{font-size:12px;line-height:1.65;color:#5c7562;margin:5px 0}
.badge{display:inline-block;padding:8px 11px;border-radius:24px;font-size:10px;font-weight:850;background:#fff3d7;color:#93601e}
.badge.ok{background:#e0f4d9;color:#277335}
.badge.off{background:#fce7e3;color:#9d4433}
.play-overlay{position:fixed;inset:0;background:#091a10d8;z-index:40;display:flex;align-items:center;justify-content:center;padding:15px}
.play-overlay .dialog{max-height:91vh;overflow-y:auto;position:relative;width:min(640px,100%);background:white;border-radius:21px;padding:27px}
.play-overlay .dialog.slim{max-width:430px}
.dialog-close{position:absolute;right:13px;top:12px;width:35px;height:35px;border:0;background:#ecf4e6;color:#24512a;border-radius:50%;font-size:24px}
.play-overlay h2{font-size:25px;letter-spacing:-.7px;margin:12px 36px 9px 0}
.play-overlay .eyebrow{background:transparent;border:0;padding:0;color:#4e8c4c;font-size:11px}
.selected-date{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:20px 0}
.selected-date label{flex:1}
.slot-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.slot-grid .slot{padding:12px 5px;font-size:12px}
.slot-grid .slot.selected{background:#245d30;color:white;border-color:#245d30}
.booking-summary{border:1px solid #cee1c5;border-radius:12px;background:#edf7e6;padding:15px;margin-top:18px;font-weight:800;font-size:13px}
.booking-actions{display:flex;justify-content:flex-end;margin-top:14px}
.fineprint{font-size:11px!important;line-height:1.65!important;color:#8b7854!important;margin-top:15px}
.play-message{position:fixed;top:88px;right:18px;z-index:60;width:min(400px,calc(100vw - 30px));background:#f2ffea;border:1px solid #b7db9b;border-left:5px solid #4a9b2e;border-radius:15px;padding:16px 19px;box-shadow:0 12px 36px #11281739;font-size:12px;font-weight:700;white-space:pre-line}
.play-message.error{background:#fff4ef;border-color:#f0c2b4;border-left-color:#ce482e;color:#963725}
.footer-inner{display:flex;justify-content:space-between;gap:15px}
@media(max-width:1100px){.desktop-links{gap:3px}.navtab{font-size:11px}}
@media(max-width:930px){.desktop-links{display:none!important}.bottomnav{position:fixed;z-index:15;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));bottom:0;left:0;right:0;background:white;border-top:1px solid #dde9d8;box-shadow:0 -6px 22px #0f30101a;padding:8px 5px calc(8px + env(safe-area-inset-bottom))}main{padding-bottom:110px}footer{padding-bottom:105px}}
@media(max-width:720px){.profile-grid{grid-template-columns:1fr}.record{flex-direction:column}.slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.selected-date{flex-wrap:wrap}.play-overlay .dialog{padding:20px}.filter-select{min-width:0}.filter-select input,.filter-select select{min-width:70px;max-width:100%}.filters{gap:7px}.filter-submit{grid-column:1/-1}.filter-clear{grid-column:1/-1}.bottomnav .bottomnav-item{font-size:9px}.bottomnav .bottomnav-item span{font-size:18px}.bottomnav .bottomnav-item.active span{padding:3px 7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* RETOO Play · selector tipo ruleta.
   La opción enfocada ocupa el centro; soporte táctil, trackpad y rueda del mouse. */
@media(max-width:930px){
  .bottomnav.wheel-nav{
    --wheel-item:104px;
    display:flex!important;
    flex-wrap:nowrap;
    width:100%;
    height:calc(101px + env(safe-area-inset-bottom,0px));
    gap:7px;
    align-items:center;
    justify-content:flex-start;
    box-sizing:border-box;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:calc(50% - var(--wheel-item)/2);
    padding:5px calc(50% - var(--wheel-item)/2) calc(6px + env(safe-area-inset-bottom,0px));
    scrollbar-width:none;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
    background:linear-gradient(180deg,#ffffff 0%,#f9fcf6 100%);
    box-shadow:0 -6px 24px rgba(14,44,21,.13);
  }
  .bottomnav.wheel-nav::-webkit-scrollbar{display:none}
  .bottomnav.wheel-nav .bottomnav-item{
    flex:0 0 var(--wheel-item);
    width:var(--wheel-item);
    height:82px;
    padding:4px 6px;
    margin:0;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;
    border:0;
    outline-offset:-2px;
    scroll-snap-align:center;
    scroll-snap-stop:normal;
    transform:scale(var(--wheel-scale,.84));
    opacity:var(--wheel-opacity,.65);
    transition:transform .16s ease, opacity .16s ease;
    will-change:transform;
    color:#718374;
    background:transparent;
    border-radius:18px;
  }
  .bottomnav.wheel-nav .wheel-icon{
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:52px;
    height:50px;
    background:transparent;
    border-radius:17px;
    box-shadow:none;
    transition:background-color .17s ease,box-shadow .17s ease;
    padding:0!important;
    line-height:1;
  }
  .bottomnav.wheel-nav .wheel-icon svg{
    width:34px;
    height:34px;
    stroke-width:1.8;
    transition:width .17s ease,height .17s ease;
  }
  .bottomnav.wheel-nav .wheel-label{
    font-size:11px;
    font-weight:850;
    letter-spacing:-.15px;
    white-space:nowrap;
    padding:0 2px;
    line-height:1.1;
  }
  .bottomnav.wheel-nav .bottomnav-item.is-centered{
    color:#173d27;
    opacity:1!important;
    font-weight:900;
  }
  .bottomnav.wheel-nav .bottomnav-item.is-centered .wheel-icon{
    background:linear-gradient(150deg,#dbf8bc,#c0ec90);
    box-shadow:0 5px 19px #5caa4560;
  }
  .bottomnav.wheel-nav .bottomnav-item.is-centered svg{width:38px;height:38px}
  .bottomnav.wheel-nav .bottomnav-item.active:not(.is-centered){color:#246b32}
  .bottomnav.wheel-nav .bottomnav-item.active span.wheel-icon{padding:0}
  .bottomnav.wheel-nav #bottom-unread{
    top:0;right:12px;font-size:10px;min-width:17px;
    height:17px;line-height:17px;z-index:2;
  }
  main{padding-bottom:145px}
  footer{padding-bottom:125px}
}
@media(max-width:420px){
  .bottomnav.wheel-nav{--wheel-item:97px;height:calc(99px + env(safe-area-inset-bottom,0px))}
  .bottomnav.wheel-nav .bottomnav-item{height:80px}
  .bottomnav.wheel-nav .wheel-icon{height:49px}
  .bottomnav.wheel-nav .wheel-label{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
  .bottomnav.wheel-nav .bottomnav-item,
  .bottomnav.wheel-nav .wheel-icon,
  .bottomnav.wheel-nav .wheel-icon svg{transition:none!important}
}


/* Selector de fecha en reserva: layout adaptable a Safari de iPhone 13,
   SE, orientación horizontal y teclado/zoom. Evita solapamientos. */
.selected-date{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:end;
  gap:12px;
  width:100%;
  min-width:0;
}
.selected-date > label{
  min-width:0;
  max-width:100%;
}
.selected-date input[type="date"]{
  display:block;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:48px;
  font-size:16px; /* evita zoom automático de Safari */
  line-height:1.4;
  -webkit-text-size-adjust:100%;
}
.selected-date #slots-refresh{
  box-sizing:border-box;
  max-width:100%;
  min-height:48px;
  min-width:0;
  padding:10px 13px;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:break-word;
}
@media(max-width:640px){
  .selected-date{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    gap:10px;
  }
  .selected-date #slots-refresh{
    width:100%;
    justify-self:stretch;
  }
  .play-overlay{
    padding:12px;
  }
  .play-overlay .dialog{
    box-sizing:border-box;
    width:100%;
    max-width:640px;
    max-height:calc(100vh - 24px);
    overflow-x:hidden;
    overflow-y:auto;
  }
}
@supports(height:100dvh){
  @media(max-width:640px){
    .play-overlay .dialog{max-height:calc(100dvh - 24px)}
  }
}
@media(max-width:400px){
  .play-overlay .dialog{padding:18px 16px}
  .slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .booking-actions .primary{width:100%;min-height:46px}
}

/* Ancho real del diálogo de reserva (además del viewport): evita solapar
   selector de fecha y Consultar horarios en iPhone, split view y zoom. */
.play-overlay .dialog{container-type:inline-size}
.selected-date > label,
.selected-date #slots-refresh{min-inline-size:0;max-inline-size:100%}
.selected-date input[type="date"]{
  inline-size:100%;
  max-inline-size:100%;
  min-inline-size:0;
  overflow:hidden;
}
@container (max-width:550px){
  .selected-date{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
    gap:10px;
  }
  .selected-date > label,
  .selected-date #slots-refresh{
    inline-size:100%;
    justify-self:stretch;
  }
}
@media(max-width:720px){
  .selected-date{
    grid-template-columns:minmax(0,1fr);
    align-items:stretch;
  }
  .selected-date > label,
  .selected-date #slots-refresh{width:100%;justify-self:stretch}
}
