/* =========================
   BOOKING
========================= */

.booking-section{
  width:100%;
  padding:72px 18px;
  background:#FBF0EE;
  color:#111;
}

.booking-wrap{
  max-width:min(1480px, calc(100% - 32px));
  margin:0 auto;
}

.booking-title{
  text-align:center;
  font-size:clamp(1.7rem, 4vw, 2.8rem);
  font-weight:800;
  margin:0 0 26px;
  letter-spacing:.01em;
}

.booking-grid{
  display:grid;
  grid-template-columns:minmax(320px, 1fr) minmax(380px, 1.25fr);
  gap:26px;
  align-items:start;
}

.booking-days,
.booking-times{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(0,0,0,.08);
  border-radius:26px;
  padding:26px;
  box-shadow:
    0 18px 45px rgba(0,0,0,.08),
    0 2px 10px rgba(0,0,0,.05);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overflow:visible;
}

.booking-h3{
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:0 0 14px;
  color:rgba(0,0,0,.78);
}


/* =========================
   CALENDAR
========================= */

.cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:12px;
}

.cal-title{
  flex:1;
  text-align:center;
  font-weight:900;
  letter-spacing:.02em;
  font-size:1.2rem;
  color:rgba(0,0,0,.80);
}

.cal-nav{
  width:48px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:12px;
  background:rgba(0,0,0,.04);
  color:#111;
  cursor:pointer;
  font-size:1.25rem;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease;
}

.cal-nav:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  background:#fff;
}

.cal-week{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  margin:10px 0 8px;
}

.cal-weekday{
  text-align:center;
  font-weight:900;
  font-size:.82rem;
  color:rgba(0,0,0,.48);
  padding:6px 0;
}

.cal-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:8px;
}

.cal-day{
  position:relative;
  min-height:58px;
  border:1px solid transparent;
  border-radius:16px;
  background:transparent;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(0,0,0,.42);
  cursor:default;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease,
    color .12s ease;
}

.cal-num{
  font-weight:800;
  font-size:.95rem;
}

/* bežný deň bez admin dostupnosti */
.cal-day.no-slot{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  opacity:.58;
  pointer-events:none;
}

.cal-day.past{
  opacity:.35;
}

.cal-day.outside{
  opacity:.18;
  pointer-events:none;
}

/* admin nastavil aspoň jeden voľný čas */
.cal-day.available{
  background:rgba(255,255,255,.95);
  border-color:rgba(220,135,155,.42);
  color:#111;
  cursor:pointer;
  opacity:1;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.cal-day.available::after{
  content:"";
  position:absolute;
  bottom:7px;
  left:50%;
  width:5px;
  height:5px;
  border-radius:50%;
  transform:translateX(-50%);
  background:#e89aae;
}

.cal-day.available:hover{
  transform:translateY(-2px);
  background:#fff;
  border-color:rgba(210,95,125,.55);
  box-shadow:0 10px 24px rgba(0,0,0,.09);
}

/* admin mal termíny, ale všetky sú obsadené */
.cal-day.full{
  background:rgba(0,0,0,.035);
  border-color:rgba(0,0,0,.08);
  color:rgba(0,0,0,.38);
  opacity:1;
  cursor:not-allowed;
}

.cal-day.full::after{
  content:"";
  position:absolute;
  bottom:7px;
  left:50%;
  width:5px;
  height:5px;
  border-radius:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.28);
}

.cal-day.selected{
  background:rgba(247,183,198,.72);
  border-color:rgba(180,90,120,.42);
  color:#111;
  opacity:1;
  box-shadow:0 12px 26px rgba(0,0,0,.10);
}

.cal-day.selected::after{
  background:#b85870;
}


/* =========================
   LEGEND
========================= */

.cal-legend{
  margin:16px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  color:rgba(0,0,0,.55);
  font-weight:700;
  font-size:.82rem;
}

.legend-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
}

.dot-av{
  background:#fff;
  border-color:rgba(210,95,125,.50);
}

.dot-se{
  background:rgba(247,183,198,.75);
}

.dot-full{
  background:rgba(0,0,0,.12);
}


/* =========================
   TIMES
========================= */

.time-list{
  min-height:76px;
}

.booking-hint{
  margin:0;
  color:rgba(0,0,0,.62);
  line-height:1.5;
}

.time-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.time-btn{
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.72);
  padding:12px 10px;
  border-radius:14px;
  color:#111;
  cursor:pointer;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease;
}

.time-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
  background:#fff;
}

.time-btn.active{
  background:rgba(247,183,198,.45);
  border-color:rgba(180,90,120,.25);
  box-shadow:0 12px 24px rgba(0,0,0,.10);
}

.booking-divider{
  height:1px;
  background:rgba(0,0,0,.10);
  margin:22px 0;
}


/* =========================
   SERVICE AFTER TIME
========================= */

.service-stage{
  transition:opacity .15s ease;
}

.service-stage.is-locked{
  opacity:.58;
}

.service-stage-hint{
  margin-bottom:12px;
}


/* =========================
   FORM
========================= */

.booking-form{
  display:grid;
  gap:14px;
}

.field label{
  display:block;
  font-size:1rem;
  font-weight:700;
  color:rgba(0,0,0,.72);
  margin:0 0 8px;
}

.field input,
.field textarea{
  width:100%;
  max-width:100%;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.78);
  padding:12px;
  border-radius:16px;
  color:#111;
  outline:none;
  font:inherit;
  line-height:1.25;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}

.field input{
  height:52px;
}

.field textarea{
  min-height:120px;
  max-height:180px;
  resize:vertical;
  line-height:1.35;
}

.field input:focus,
.field textarea:focus{
  border-color:rgba(180,90,120,.28);
  box-shadow:0 0 0 4px rgba(247,183,198,.22);
}


/* =========================
   SELECTED
========================= */

.selected-slot{
  width:100%;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.70);
  border-radius:18px;
  padding:12px 14px;
  display:flex;
  gap:10px;
  align-items:center;
  box-sizing:border-box;
  flex-wrap:wrap;
}

.slot-label{
  font-weight:900;
  color:rgba(0,0,0,.70);
}

.slot-value{
  font-weight:700;
}


/* =========================
   CUSTOM SELECT
========================= */

.select-wrap{
  position:relative;
  width:100%;
  overflow:visible;
}

.select-btn{
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.82);
  padding:0 16px;
  border-radius:16px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  font:inherit;
  min-height:52px;
  box-sizing:border-box;
  color:#111;
}

.select-btn:hover:not(:disabled){
  background:#fff;
}

.select-btn:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(247,183,198,.22);
}

.select-btn:disabled{
  cursor:not-allowed;
  opacity:.72;
  background:rgba(0,0,0,.035);
}

.select-caret{
  font-size:.9rem;
  opacity:.7;
}

.select-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:100%;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.98);
  border-radius:18px;
  max-height:min(420px, 60vh);
  overflow-y:auto;
  overflow-x:hidden;
  z-index:99999;
  padding:10px;
  box-sizing:border-box;
  box-shadow:0 18px 45px rgba(0,0,0,.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.select-menu::-webkit-scrollbar{
  width:8px;
}

.select-menu::-webkit-scrollbar-track{
  background:transparent;
}

.select-menu::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.20);
  border-radius:999px;
}

.select-item{
  width:100%;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.72);
  padding:12px;
  cursor:pointer;
  text-align:left;
  border-radius:14px;
  margin-bottom:8px;
  color:#111;
  transition:
    background .12s ease,
    transform .12s ease;
}

.select-item:last-child{
  margin-bottom:0;
}

.select-item:hover{
  background:rgba(247,183,198,.30);
  transform:translateY(-1px);
}

.hidden{
  display:none !important;
}


/* =========================
   BUTTON / STATUS / LINKS
========================= */

.booking-price-link{
  color:rgba(0,0,0,.75);
}

.field a{
  color:#111;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.book-btn{
  width:100%;
  margin:8px 0 0;
  display:block;
  border:0;
  background:#111;
  color:#fff;
  padding:14px 16px;
  border-radius:18px;
  cursor:pointer;
  font-weight:900;
  letter-spacing:.02em;
  transition:
    transform .12s ease,
    opacity .12s ease,
    box-shadow .12s ease;
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.book-btn:hover:not(:disabled){
  transform:translateY(-1px);
}

.book-btn:disabled{
  background:rgba(0,0,0,.35);
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.booking-status{
  margin:4px 0 0;
  line-height:1.45;
  color:rgba(0,0,0,.75);
  min-height:20px;
}


/* =========================
   OVERFLOW / RESPONSIVE
========================= */

.booking-section,
.booking-wrap,
.booking-grid,
.booking-times,
.booking-form,
.field,
.select-wrap{
  overflow:visible;
}

html,
body{
  overflow-x:hidden;
}

@media(max-width:1150px){
  .booking-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:980px){
  .time-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media(max-width:600px){
  .booking-section{
    padding:56px 10px;
  }

  .booking-wrap{
    max-width:100%;
  }

  .booking-days,
  .booking-times{
    padding:18px 14px;
    border-radius:22px;
  }

  .cal-grid,
  .cal-week{
    gap:4px;
  }

  .cal-day{
    min-height:46px;
    border-radius:12px;
    padding:5px;
  }

  .cal-num{
    font-size:.84rem;
  }

  .time-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .select-menu{
    max-height:55vh;
    overflow-y:scroll;
  }

  .cal-legend{
    gap:10px;
  }
}
.cal-empty{
  background:transparent;
  border:none;
  box-shadow:none;
  pointer-events:none;
}