/* Bayside hall booking — hourly calendar, matches the punk zine theme */
.bxh, .bxh-rates { --ink: #0b0b0b; --paper: #f4efe4; --pink: #ff2e88; --acid: #c6ff00; --tblue: #5bcefa; --violet: #b48cff; --orange: #ffb02e; }
.bxh { margin-block: 2.5rem; }
.bxh-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.bxh-left { display: grid; gap: 2rem; min-width: 0; }
@media (max-width: 900px) { .bxh-wrap { grid-template-columns: 1fr; } }

/* ---------- rate card ---------- */
.bxh-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; margin-block: 2rem; }
.bxh-rate { background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: .9rem 1rem; display: grid; gap: .25rem; }
.bxh-rate:nth-child(5n+1) { box-shadow: 6px 6px 0 var(--acid); } .bxh-rate:nth-child(5n+2) { box-shadow: 6px 6px 0 var(--tblue); }
.bxh-rate:nth-child(5n+3) { box-shadow: 6px 6px 0 var(--violet); } .bxh-rate:nth-child(5n+4) { box-shadow: 6px 6px 0 var(--pink); }
.bxh-rate:nth-child(5n+5) { box-shadow: 6px 6px 0 var(--orange); }
.bxh-rate-label { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.bxh-rate-when { font-family: "Special Elite", monospace; font-size: .85rem; }
.bxh-rate-price { font-family: "Anton", Impact, sans-serif; font-size: 2.3rem; line-height: 1; }
.bxh-rate-price small { font-size: 1rem; }
.bxh-rate-min { font-family: "Permanent Marker", cursive; font-size: .95rem; color: var(--pink); }

/* ---------- month calendar ---------- */
.bxh-cal, .bxh-day-panel { background: #fff; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 1rem; }
.bxh-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.bxh-title { margin: 0 !important; font-size: clamp(1.6rem, 4vw, 2.4rem) !important; }
.bxh-nav button, .bxh-dp-close {
  font-family: "Anton", Impact, sans-serif; font-size: 1.6rem; line-height: 1; cursor: pointer;
  background: var(--acid); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); width: 3rem; height: 3rem; flex: none;
}
.bxh-nav button:disabled { opacity: .25; cursor: default; box-shadow: none; }
.bxh-nav button:not(:disabled):hover, .bxh-dp-close:hover { background: var(--pink); }

.bxh-dow, .bxh-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.bxh-dow span { font-family: "Special Elite", monospace; text-transform: uppercase; font-size: .8rem; text-align: center; padding: .3rem 0; }
.bxh-grid { min-height: 18rem; }
.bxh-loading { grid-column: 1 / -1; font-family: "Special Elite", monospace; padding: 2rem 0; text-align: center; }

.bxh-day {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1; min-height: 3.4rem;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: .35rem .4rem; text-align: left; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; font: inherit; transition: transform .1s, background .1s;
}
.bxh-day .n { font-family: "Anton", Impact, sans-serif; font-size: 1.15rem; line-height: 1; }
.bxh-day .p { font-family: "Archivo", sans-serif; font-weight: 800; font-size: .85rem; line-height: 1.05; white-space: nowrap; }
.bxh-day .p .pf { font-weight: 400; font-size: .75rem; }
.bxh-day .p small { font-weight: 400; font-size: .7em; }
.bxh-day .note { position: absolute; top: .3rem; right: .3rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--pink); }
.bxh-day.s-open:hover, .bxh-day.s-partial:hover { background: var(--tblue); transform: rotate(-2deg) scale(1.04); z-index: 2; }
.bxh-day.s-partial { background: linear-gradient(135deg, var(--paper) 62%, #ffd2e6 62%); }
.bxh-day.s-full { background: var(--ink); color: var(--paper); cursor: not-allowed; }
.bxh-day.s-closed, .bxh-day.s-later { background: #d9d4ca; color: #6d6a64; cursor: not-allowed; }
.bxh-day.s-past { background: transparent; color: #aaa; border-color: #ccc; cursor: not-allowed; }
.bxh-day.is-open { outline: 4px solid var(--pink); outline-offset: -1px; z-index: 3; background: var(--acid) !important; transform: rotate(-2deg) scale(1.05); }
.bxh-day.is-mine::after { content: "✓"; position: absolute; right: .3rem; top: .05rem; font-family: "Permanent Marker", cursive; font-size: 1.2rem; color: var(--pink); }
.bxh-day:focus-visible, .bxh-hour:focus-visible { outline: 4px solid var(--pink); outline-offset: 1px; z-index: 4; }
.bxh-day .stamp {
  position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%) rotate(-18deg);
  font-family: "Permanent Marker", cursive; font-size: .75rem; text-transform: uppercase; color: var(--pink); border: 2px solid var(--pink); padding: 0 .3rem;
}

.bxh-legend { list-style: none; padding: 0 !important; margin: 1rem 0 0 !important; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.bxh-legend li { font-family: "Special Elite", monospace; font-size: .85rem !important; display: flex; align-items: center; gap: .35rem; }
.bxh-legend i { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--ink); }
.k-open { background: var(--paper); } .k-partial { background: linear-gradient(135deg, var(--paper) 55%, #ffd2e6 55%); }
.k-full { background: var(--ink); } .k-closed { background: #d9d4ca; }

/* ---------- day panel / hour picker ---------- */
.bxh-day-panel { box-shadow: 10px 10px 0 var(--pink); scroll-margin-top: 1rem; }
.bxh-dp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bxh-dp-title { margin: 0 !important; font-size: clamp(1.5rem, 3.6vw, 2.2rem) !important; }
.bxh-dp-note { font-family: "Permanent Marker", cursive; color: var(--pink); margin: .5rem 0 0 !important; }
.bxh-dp-blocks { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.bxh-chip { font-size: .85rem; padding: .25rem .55rem; border: 2px solid var(--ink); background: var(--blk); }
.bxh-chip b { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.bxh-dp-help { font-family: "Special Elite", monospace; font-size: .9rem !important; margin: .4rem 0 .7rem !important; }

.c0 { --blk: #e9ffb3; } .c1 { --blk: #d4f1ff; } .c2 { --blk: #e6dbff; } .c3 { --blk: #ffd2e6; } .c4 { --blk: #ffe2b0; }

.bxh-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 6px; }
.bxh-hour {
  display: grid; gap: .15rem; text-align: left; padding: .45rem .5rem; cursor: pointer; font: inherit;
  background: var(--blk, var(--paper)); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; transition: transform .08s;
}
.bxh-hour .t { font-family: "Anton", Impact, sans-serif; font-size: 1.1rem; line-height: 1; text-transform: uppercase; }
.bxh-hour .r { font-size: .8rem; font-weight: 700; line-height: 1; }
.bxh-hour.h-open:hover { transform: rotate(-2deg) scale(1.04); box-shadow: 3px 3px 0 var(--ink); }
.bxh-hour.is-sel { background: var(--acid); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); }
.bxh-hour:disabled { cursor: not-allowed; }
.bxh-hour.h-hold { background: repeating-linear-gradient(-45deg, #ffd2e6 0 5px, #fff 5px 10px); }
.bxh-hour.h-booked { background: var(--ink); color: var(--paper); }
.bxh-hour.h-closed, .bxh-hour.h-past, .bxh-hour.h-later { background: #d9d4ca; color: #6d6a64; }
.bxh-hour.h-mine { background: var(--ink); color: var(--acid); }

.bxh-dp-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-top: 1rem; }
.bxh-dp-range { margin: 0 !important; font-weight: 800; font-size: 1.05rem !important; }
.bxh-dp-range .warn { font-weight: 400; color: #c0002f; font-size: .95rem; }
.bxh-dp-range.is-err { color: #c0002f; }
.bxh-add:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- request form ---------- */
.bxh-form { background: var(--paper); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--pink); padding: 1.2rem 1.3rem 1.4rem; }
.bxh-form h3 { margin: 0 0 .6rem !important; font-size: 2rem !important; }
.bxh-picked ul { list-style: none; padding: 0 !important; margin: 0 0 .5rem !important; }
.bxh-picked li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 2px dashed var(--ink); font-size: .98rem !important; line-height: 1.25; }
.bxh-picked li > span:nth-child(2) { font-weight: 800; }
.bxh-picked li button { background: var(--ink); color: var(--paper); border: 0; width: 1.8rem; height: 1.8rem; cursor: pointer; }
.bxh-picked li button:hover { background: var(--pink); color: var(--ink); }
.bxh-empty { font-family: "Special Elite", monospace; font-size: .95rem !important; opacity: .8; }
.bxh-total { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: 1.5rem !important; margin: .4rem 0 1rem !important; }
.bxh-total strong { background: var(--acid); padding: 0 .3rem; font-weight: 400; }
.bxh-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; }
.bxh-form label { display: grid; gap: .25rem; font-family: "Special Elite", monospace; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.bxh-form input, .bxh-form select, .bxh-form textarea {
  font: 1rem/1.3 "Archivo", sans-serif; text-transform: none; letter-spacing: 0; padding: .55rem .6rem;
  border: 3px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box;
}
.bxh-form input:focus, .bxh-form select:focus, .bxh-form textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--pink); }
.bxh-form .bxh-check { display: flex; align-items: center; gap: .5rem; text-transform: none; font-size: .95rem; }
.bxh-form .bxh-check input { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--pink); }
.bxh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bxh-submit { margin-top: 1.1rem; width: 100%; cursor: pointer; }
.bxh-submit:disabled { opacity: .6; cursor: wait; }
.bxh-msg { min-height: 1.2em; margin: .9rem 0 0 !important; font-weight: 700; }
.bxh-msg.is-err { color: #c0002f; }
.bxh-msg.is-ok { background: var(--acid); border: 3px solid var(--ink); padding: .6rem .7rem; }
.bxh-fine { font-size: .85rem !important; opacity: .8; margin-top: .8rem !important; }

@media (max-width: 760px) { .bxh-day .p .pf, .bxh-day .p small { display: none; } }
@media (max-width: 520px) {
  .bxh-cal, .bxh-day-panel { padding: .6rem; box-shadow: 6px 6px 0 var(--ink); }
  .bxh-day-panel { box-shadow: 6px 6px 0 var(--pink); }
  .bxh-dow, .bxh-grid { gap: 3px; }
  .bxh-day { padding: .2rem .2rem; min-height: 2.9rem; aspect-ratio: auto; }
  .bxh-day .n { font-size: .95rem; }
  .bxh-day .p { font-size: .66rem; letter-spacing: -.03em; }
  .bxh-day .stamp { font-size: .5rem; }
  .bxh-hours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- public event option ---------- */
.bxh-public { border: 3px dashed var(--ink); padding: .7rem .8rem; background: #fff; }
.bxh .is-public .bxh-public, .bxh.is-public .bxh-public { border-style: solid; box-shadow: 5px 5px 0 var(--acid); }
.bxh-public-toggle span { line-height: 1.3; }
.bxh-public-toggle small { font-family: "Archivo", sans-serif; text-transform: none; letter-spacing: 0; font-size: .82rem; opacity: .8; }
.bxh-public-fields { display: grid; gap: .7rem; margin-top: .8rem; }
.bxh-public-fields[hidden] { display: none; }
.bxh-public-note { font-family: "Permanent Marker", cursive; color: var(--pink); font-size: .95rem !important; margin: 0 !important; }

/* ---------- upcoming public events list ---------- */
.bxh-upcoming { list-style: none; padding: 0 !important; margin: 1rem 0 0 !important; display: grid; gap: 1.1rem; }
.bxh-ev { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: start; background: #fff; border: 3px solid #0b0b0b; box-shadow: 6px 6px 0 #0b0b0b; padding: .8rem; }
.bxh-ev:nth-child(odd) { transform: rotate(-.6deg); box-shadow: 6px 6px 0 #ff2e88; }
.bxh-ev:nth-child(even) { transform: rotate(.5deg); box-shadow: 6px 6px 0 #c6ff00; }
.bxh-ev-date { background: #0b0b0b; color: #f4efe4; text-align: center; padding: .4rem .2rem; display: grid; line-height: 1; }
.bxh-ev-date .m { font-family: "Special Elite", monospace; text-transform: uppercase; font-size: .85rem; color: #c6ff00; }
.bxh-ev-date .d { font-family: "Anton", Impact, sans-serif; font-size: 2.3rem; margin: .1rem 0; }
.bxh-ev-date .w { font-family: "Special Elite", monospace; text-transform: uppercase; font-size: .75rem; }
.bxh-ev-title { margin: 0 0 .2rem !important; font-size: clamp(1.4rem, 3vw, 2rem) !important; }
.bxh-ev-title a { text-decoration: none; }
.bxh-ev-meta { font-family: "Special Elite", monospace; font-size: .9rem !important; margin: 0 !important; }
.bxh-ev-desc { margin: .45rem 0 0 !important; font-size: 1rem !important; }
.bxh-up-empty { font-family: "Special Elite", monospace; }
@media (max-width: 520px) { .bxh-ev { grid-template-columns: 3.8rem 1fr; gap: .7rem; } .bxh-ev-date .d { font-size: 1.8rem; } .bxh-ev { transform: none !important; } }
