/* ── Availability Calendar ── */

.cal-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:16px 0 20px;
}

.cal-nav-btn{
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid var(--border);
  background:none;
  color:var(--text);
  cursor:pointer;
  font-size:17px;
  display:flex; align-items:center; justify-content:center;
  transition:background .12s;
  line-height:1;
}
.cal-nav-btn:hover{ background:rgba(0,0,0,.06); }
html[data-theme="dark"] .cal-nav-btn:hover{ background:rgba(255,255,255,.09); }

.cal-month-label{
  font-weight:600;
  font-size:16px;
  min-width:194px;
  text-align:center;
  color:var(--text);
  letter-spacing:.01em;
}

.cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:3px;
  margin-bottom:14px;
}

.cal-dow{
  text-align:center;
  font-size:10px;
  font-weight:700;
  color:var(--muted);
  padding:5px 2px 8px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.cal-day{
  min-height:66px;
  padding:5px 6px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card);
  position:relative;
  transition:background .10s, box-shadow .10s;
  cursor:default;
  user-select:none;
}

.cal-day.avail{
  cursor:pointer;
}
.cal-day.avail:hover{
  background:rgba(0,0,0,.045);
}
html[data-theme="dark"] .cal-day.avail:hover{
  background:rgba(255,255,255,.07);
}

.cal-day.other-mo{ opacity:.28; pointer-events:none; }
.cal-day.past{ opacity:.40; pointer-events:none; }

.cal-day.booked{
  background:rgba(0,0,0,.08);
  cursor:not-allowed;
}
html[data-theme="dark"] .cal-day.booked{ background:rgba(255,255,255,.08); }

/* Loading state */
.cal-loading .cal-grid{ pointer-events:none; }
.cal-loading .cal-day:not(.other-mo):not(.past){
  background:rgba(0,0,0,.05);
  cursor:default;
}
.cal-loading .day-price{ display:none; }
html[data-theme="dark"] .cal-loading .cal-day:not(.other-mo):not(.past){ background:rgba(255,255,255,.05); }

.cal-day.sel{
  background:rgba(18,18,18,.09) !important;
  box-shadow:inset 0 0 0 2px rgba(18,18,18,.36);
}
html[data-theme="dark"] .cal-day.sel{
  background:rgba(255,255,255,.10) !important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.42);
}

.cal-day.in-range{
  background:rgba(18,18,18,.045) !important;
  border-color:transparent;
  border-radius:0;
}
html[data-theme="dark"] .cal-day.in-range{
  background:rgba(255,255,255,.06) !important;
}

.day-num{
  font-size:12px;
  font-weight:600;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px; height:22px;
  line-height:1;
}

.cal-day.is-today .day-num{
  background:var(--text);
  color:var(--card);
  border-radius:50%;
}

.day-price{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.25;
}

/* ── Summary ── */

.cal-summary{
  display:none;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(0,0,0,.02);
  font-size:14px;
}
html[data-theme="dark"] .cal-summary{ background:rgba(255,255,255,.03); }

.cal-sum-row{
  display:flex;
  justify-content:space-between;
  padding:4px 0;
  color:var(--muted);
}
.cal-sum-row.total{
  font-weight:700;
  color:var(--text);
  border-top:1px solid var(--border);
  margin-top:8px;
  padding-top:10px;
}


/* ── Enquire button ── */

.btn-enquire{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  background:rgba(18,18,18,.93);
  color:rgba(255,255,255,.96);
  border:none;
  border-radius:12px;
  padding:15px 20px;
  font-size:15px;
  font-weight:650;
  cursor:pointer;
  transition:background .15s, transform .08s;
  font-family:var(--body-font);
  text-decoration:none;
}
.btn-enquire:hover:not(:disabled){
  background:rgba(18,18,18,1);
  transform:translateY(-1px);
  color:rgba(255,255,255,.96);
}
.btn-enquire:disabled{
  background:rgba(18,18,18,.28);
  cursor:not-allowed;
  transform:none;
}
html[data-theme="dark"] .btn-enquire:disabled{
  background:rgba(255,255,255,.22);
}
html[data-theme="dark"] .btn-enquire{
  background:rgba(255,255,255,.92);
  color:rgba(18,18,18,.96);
}
html[data-theme="dark"] .btn-enquire:hover:not(:disabled){
  background:#fff;
  color:rgba(18,18,18,.96);
}

/* ── Enquiry modal ── */

.enquiry-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9998;
}
.enquiry-overlay.open{ display:flex; }

.enquiry-box{
  max-width:min(490px,94vw);
  width:100%;
  border-radius:20px;
  background:var(--card);
  padding:30px 26px;
  position:relative;
  border:1px solid var(--border);
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}

.enquiry-box h3{
  margin:0 0 4px;
  font-size:1.2rem;
  font-weight:700;
  font-family:var(--body-font);
  color:var(--text);
}
.enquiry-box .eq-sub{
  font-size:13px;
  color:var(--muted);
  margin:0 0 20px;
}
.enquiry-box label{
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  margin:12px 0 4px;
}
.enquiry-box input,
.enquiry-box textarea,
.enquiry-box select{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 13px;
  font-size:14px;
  font-family:var(--body-font);
  background:var(--bg);
  color:var(--text);
  outline:none;
  transition:border-color .15s;
}
.enquiry-box input:focus,
.enquiry-box textarea:focus{ border-color:rgba(18,18,18,.40); }
html[data-theme="dark"] .enquiry-box input:focus,
html[data-theme="dark"] .enquiry-box textarea:focus{ border-color:rgba(255,255,255,.40); }
.enquiry-box textarea{ resize:vertical; min-height:78px; }

.enquiry-close{
  position:absolute;
  top:14px; right:16px;
  background:none;
  border:none;
  font-size:1.5rem;
  cursor:pointer;
  color:var(--muted);
  line-height:1;
  padding:2px 6px;
}

/* ── Responsive ── */

@media (max-width: 900px){
  /* Topbar: dissolve groups so all buttons wrap as one row */
  .topbar{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .topbar .cta{ display:contents; }
}

@media (max-width: 640px){
  .cal-day{ min-height:52px; padding:4px; }
  .day-price{ font-size:10px; }
  .day-num{ font-size:11px; }
  .enquiry-box{ padding:22px 16px; }
}
