.booking-shell { max-width: 1100px; }
.booking-panel { border: 1px solid #e1e4e8; border-radius: 12px; padding: 32px; background: white; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.calendar-toolbar h2 { margin: 0; text-transform: capitalize; font-size: clamp(20px, 3vw, 28px); }
.calendar-toolbar button { min-width: 44px; min-height: 44px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays { text-align: center; margin-bottom: 10px; color: #555555; font-size: 13px; }
.calendar-day { min-height: 98px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid #e1e4e8; border-radius: 8px; padding: 14px; font: inherit; color: var(--navy); background: white; }
.day-open { border-color: #f2390350; background: #fff5f2; cursor: pointer; }
.day-number { font-weight: 700; font-size: 20px; }
.day-label { font-size: 12px; }
.day-booked { background: #e9edf1; color: #596371; }
.day-closed { background: #fafbfc; color: #77818d; }
.day-plus { position: absolute; right: 10px; top: 8px; color: #b82b02; font-size: 28px; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
  .day-plus { opacity: 0; }
  .day-open:hover, .day-open:focus-visible { background: #ffded4; border-color: var(--gold); }
  .day-open:hover .day-plus, .day-open:focus-visible .day-plus { opacity: 1; }
}
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 13px; }
.calendar-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border: 1px solid #a6afb9; border-radius: 3px; margin-right: 7px; background: #fafbfc; }
.calendar-legend .legend-open::before { background: var(--gold); border-color: var(--gold); }
.calendar-legend .legend-booked::before { background: #8995a3; }
.booking-note { border-left: 3px solid var(--gold); padding: 16px 20px; margin: 24px 0; background: #fff5f2; line-height: 1.7; }
.booking-note a { color: inherit; }
.booking-status { line-height: 1.6; min-height: 24px; }
.is-error { color: #a12323; }
.booking-dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 40px); border: 1px solid #e1e4e8; border-radius: 12px; padding: 28px; color: var(--navy); }
.booking-dialog::backdrop { background: #222222a8; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin-top: 0; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.booking-form input, .booking-form textarea, .booking-form select, .admin-search { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid #adb7c2; border-radius: 5px; background: white; color: var(--navy); }
.booking-form textarea { min-height: 110px; resize: vertical; }
.form-wide { grid-column: 1 / -1; }
.booking-form .checkbox-label { flex-direction: row; align-items: flex-start; font-weight: 400; line-height: 1.6; }
.checkbox-label input { width: 18px; height: 18px; flex: 0 0 18px; }
.booking-form a { color: #b82b02; }
.booking-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button { cursor: pointer; }
button.btn { border: 0; }
button.btn-outline { border: 1px solid var(--navy); }
button:disabled { cursor: default; opacity: .6; }
.calendar-day:disabled { opacity: 1; }
.admin-layout { max-width: 1200px; padding-block: 40px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-header a { color: var(--navy); }
.admin-login { max-width: 520px; margin: 40px auto; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.admin-tabs button[aria-pressed="true"] { background: var(--navy); color: white; }
.admin-section { margin-bottom: 28px; }
.admin-list { display: grid; gap: 14px; margin: 20px 0; }
.admin-item { border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px; background: white; overflow-wrap: anywhere; }
.admin-item h3 { margin: 0 0 10px; }
.admin-item p { white-space: pre-wrap; line-height: 1.6; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.admin-actions button { border: 1px solid #ccd2da; border-radius: 4px; background: white; color: var(--navy); padding: 10px 14px; font: inherit; }
.admin-actions button:hover { border-color: var(--gold); background: #fff5f2; }
.admin-actions .danger { color: #a12323; }
.admin-mail-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; }
.admin-day { cursor: pointer; }
.admin-day.day-closed:hover { border-color: var(--gold); }
@media (max-width: 600px) {
  .booking-panel { padding: 16px; }
  .calendar-days, .calendar-weekdays { gap: 4px; }
  .calendar-day { min-height: 76px; padding: 7px 4px; border-radius: 5px; }
  .day-number { font-size: 17px; }
  .day-label { font-size: 9px; }
  .day-plus { top: 5px; right: 3px; font-size: 18px; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-dialog { padding: 20px; }
  .calendar-toolbar h2 { font-size: 19px; }
}

@media (max-width: 600px) {
  .day-label { font-size: 10px; }
  .day-closed .day-label { font-size: 0; }
  .day-closed .day-label::after { content: "—"; font-size: 12px; }
  .day-plus { top: auto; bottom: 6px; }
}

.admin-day[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.admin-day[aria-disabled="true"]:hover { border-color: #e1e4e8; }
.admin-day:not([aria-disabled="true"]):hover .day-plus,
.admin-day:not([aria-disabled="true"]):focus-visible .day-plus { opacity: 1; }
@media (max-width: 600px) {
 .admin-day.day-closed .day-label { font-size: 9px; }
 .admin-day.day-closed .day-label::after { content: none; }
}

/* A single reserved half-day is shown in blue; a fully booked day stays gray. */
.day-partial { background: #24486a12; border-color: #24486a50; color: #24486a; cursor: pointer; }
.day-partial .day-plus { color: #24486a; }
.calendar-legend .legend-partial::before { background: #24486a26; border-color: #24486a50; }
.day-label { overflow-wrap: anywhere; text-align: left; }
@media (hover: hover) and (pointer: fine) {
  .day-partial:hover, .day-partial:focus-visible { background: #24486a26; border-color: #24486a; }
  .day-partial:hover .day-plus, .day-partial:focus-visible .day-plus { opacity: 1; }
}
@media (max-width: 600px) {
  .day-partial .day-plus { top: 5px; bottom: auto; font-size: 14px; }
}

.photo-upload label { display: block; font-weight: 600; margin-bottom: 8px; }
.photo-upload input { max-width: 100%; }
.photo-upload p { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.photo-grid img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.photo-preview { min-width: 0; }
.photo-preview button { width: 100%; min-height: 36px; margin-top: 6px; font-size: 12px; }
.booking-photos { margin: 16px 0; }
.booking-photos summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
