/* Venue pages (docs/venue-ecosystem, VEN-06/07). Builds on BookingProtection.css: .gp-*, .ef-*, .ce-*, .xa-*, .fa-*.
   Colours only through the --gp-* tokens so the pages follow the app theme. */

.vn { display: flex; flex-direction: column; gap: 16px; }
.vn .fa-head { margin-bottom: 0; }
.vn-panel-title { font-size: 1.05rem; margin: 8px 0 0; }
.vn-panel { gap: 14px; }
.vn-locked { gap: 10px; }
.vn-bar { justify-content: flex-start; margin-bottom: 0; }
.vn-check { display: flex; align-items: center; gap: 10px; color: var(--gp-text); font-size: .95rem; cursor: pointer; }
.vn-check input { width: 18px; height: 18px; accent-color: var(--gp-lime); margin: 0; }
.vn-narrow { max-width: 320px; }

/* Status chip */
.vn-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--gp-line); color: var(--gp-muted); white-space: nowrap; }
.vn-status--published { border-color: var(--gp-lime); color: var(--gp-lime); }
.vn-status--draft { border-color: var(--gp-orange, #FBA419); color: var(--gp-orange, #FBA419); }

/* My venues */
.vn-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vn-card__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vn-card__name { font-size: 1.1rem; overflow-wrap: anywhere; }
.vn-card__meta, .vn-card__counts { color: var(--gp-muted); font-size: .9rem; margin: 0; }
.vn-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Editor */
.vn-head__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vn-publish { gap: 10px; }
.vn-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vn-link code { background: var(--gp-bg); border: 1px solid var(--gp-line); border-radius: 10px; padding: 6px 10px; font-size: .85rem;
                color: var(--gp-text); overflow-wrap: anywhere; min-width: 0; flex: 1 1 220px; }
.vn-progress { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vn-progress__step { border: 1px dashed var(--gp-line); background: transparent; color: var(--gp-muted); border-radius: 999px;
                     padding: 5px 12px; font-size: .85rem; text-transform: none; letter-spacing: 0; cursor: pointer; }
.vn-progress li.is-done .vn-progress__step { border-style: solid; border-color: var(--gp-lime); color: var(--gp-text); }
.vn-progress__step:focus-visible, .vn-tab:focus-visible { outline: 2px solid var(--gp-lime); outline-offset: 2px; }
.vn-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gp-line); overflow-x: auto; }
.vn-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--gp-muted); padding: 10px 14px;
          font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; border-radius: 0; }
.vn-tab.is-active { color: var(--gp-text); border-bottom-color: var(--gp-lime); }
.vn-dot { color: var(--gp-orange, #FBA419); margin-left: 4px; }
.vn-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vn-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vn-row { border: 1px solid var(--gp-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vn-row__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vn-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, .7fr); }
.vn-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.vn-quick .genre-chip { cursor: pointer; }

/* Public page */
.vn-preview { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vn-preview .gp-text { margin: 0; }
.vn-hero { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.vn-hero__name { font-size: 2rem; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.vn-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.vn-facts > div { border: 1px solid var(--gp-line); border-radius: 12px; padding: 8px 12px; min-width: 110px; }
.vn-facts dt { color: var(--gp-muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.vn-facts dd { margin: 2px 0 0; font-weight: 600; }
.vn-section { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--gp-line); padding-top: 14px; }
.vn-prose { margin: 0; white-space: pre-line; color: var(--gp-text); line-height: 1.55; }
.vn-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vn-room { padding: 14px; gap: 4px; }
.vn-room span { color: var(--gp-muted); font-size: .88rem; }
.vn-team-only { color: var(--gp-orange, #FBA419); font-size: .8rem; }
.vn-group { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gp-muted); margin: 8px 0 0; }
.vn-kit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vn-kit li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--gp-line); }
.vn-kit__item { font-weight: 600; }
.vn-kit__meta { color: var(--gp-muted); font-size: .88rem; }
.vn-signin-hint a { color: var(--gp-lime); }

@media (max-width: 600px) {
    .vn-rules, .vn-eq { grid-template-columns: minmax(0, 1fr); }
    .vn-hero__name { font-size: 1.6rem; }
    .vn-card__top { flex-direction: column-reverse; gap: 6px; }
}

/* Event's venue panel in Gig Manager › Advance (VEN-08) */
.ev { gap: 10px; margin-bottom: 16px; }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ev-head .vn-panel-title { margin: 0; }
.ev-current { display: flex; flex-direction: column; gap: 10px; }
.ev-current__name { margin: 0; font-weight: 600; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-current__name a { color: var(--gp-text); text-decoration: underline; text-underline-offset: 3px; }
.ev-muted { color: var(--gp-muted); font-weight: 400; font-size: .9rem; }
.ev-own { font-size: .65rem; }
.ev-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.ev-option { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--gp-line); border-radius: 12px; padding: 10px 12px; }
.ev-option__main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.ev-room { height: 36px; border-radius: 10px; background: var(--gp-bg); border: 1px solid var(--gp-line); color: var(--gp-text); padding: 0 10px; }
.ev-message { margin: 0; color: var(--gp-lime); font-size: .9rem; }

/* Upcoming nights on the public venue page */
.vn-upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vn-upcoming li { border-bottom: 1px solid var(--gp-line); }
.vn-upcoming a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; color: var(--gp-text); text-decoration: none; }
.vn-upcoming a:hover strong, .vn-upcoming a:focus-visible strong { text-decoration: underline; }
.vn-upcoming time { color: var(--gp-lime); font-weight: 700; font-size: .85rem; letter-spacing: .04em; min-width: 76px; text-transform: uppercase; }
.vn-upcoming span { color: var(--gp-muted); font-size: .88rem; }

/* A stored venue on its organiser's profile, Bookings tab (the venue's public face) */
.vn-profile { gap: 14px; margin-top: 16px; }
.vn-profile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.vn-profile__name { margin: 2px 0 0; overflow-wrap: anywhere; }
.vn-profile__team { display: flex; align-items: center; gap: 8px; }
.vn-profile .vn-facts { margin-top: 0; }
.vn-profile .ce-hint { margin: 0; }

/* Nights tab in the venue editor */
.vn-night { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; }
.vn-night time { color: var(--gp-lime); font-weight: 700; font-size: .85rem; letter-spacing: .04em; min-width: 76px; text-transform: uppercase; }
.vn-night a { color: var(--gp-text); }
.vn-night span { display: block; color: var(--gp-muted); font-size: .88rem; }

/* Find a venue: why each result fits, and where it doesn't */
.vn-reasons { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }
.vn-reason--ok { color: var(--gp-lime); }
.vn-reason--warn { color: var(--gp-muted); }
.vn-claim { border-top: 1px solid var(--gp-line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vn-claim textarea { width: 100%; border-radius: 10px; background: var(--gp-bg); border: 1px solid var(--gp-line); color: var(--gp-text); padding: 8px 10px; }
.vn-claim-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--gp-line); }

/* Venue bookings */
.vn-booking-link { display: block; color: inherit; text-decoration: none; }
.vn-booking-link:hover .vn-card__name, .vn-booking-link:focus-visible .vn-card__name { text-decoration: underline; }
.vn-move { margin: 6px 0 0; color: var(--gp-lime); font-weight: 600; font-size: .9rem; }
.vb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; padding: 0; }
.vb-step { border: 1px solid var(--gp-line); border-radius: 999px; padding: 3px 12px; font-size: .8rem; color: var(--gp-muted); }
.vb-step--done { color: var(--gp-text); border-color: var(--gp-lime); }
.vb-step--now { color: var(--gp-bg); background: var(--gp-lime); border-color: var(--gp-lime); font-weight: 700; }
.vb-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.vb-facts dt { color: var(--gp-muted); font-size: .88rem; font-weight: 400; text-transform: none; letter-spacing: 0; margin: 0; }
.vb-facts dd { margin: 0; overflow-wrap: anywhere; font-size: .92rem; }
.vb-facts select { max-width: 100%; }
.vb-pitch { white-space: pre-wrap; margin: 12px 0 0; }
.vb-clash ul { margin: 0; padding-left: 18px; }
.vb-actions { flex-wrap: wrap; align-items: center; }
.vb-inline { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.vb-inline select, .vb-line select, .vb-line input, .vb-compose textarea { border-radius: 10px; background: var(--gp-bg); border: 1px solid var(--gp-line); color: var(--gp-text); padding: 6px 8px; }
.vb-offer p { margin: 6px 0; }
.vb-lines { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .92rem; }
.vb-lines td, .vb-lines th { padding: 6px 4px; border-bottom: 1px solid var(--gp-line); text-align: left; }
.vb-lines td:last-child, .vb-lines th:last-child { text-align: right; }
.vb-total td { font-weight: 700; }
.vb-overdue td { color: #ff8a80; }
.vb-line { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) minmax(0, 7rem) auto; gap: 6px; align-items: center; }
.vb-history { margin-top: 10px; color: var(--gp-muted); font-size: .9rem; }
.vb-agreement { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--gp-bg); border: 1px solid var(--gp-line); border-radius: 12px; padding: 12px; max-height: 420px; overflow-y: auto; font-size: .82rem; }
.vb-payments { list-style: none; margin: 8px 0; padding: 0; }
.vb-payments li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--gp-line); }
.vb-pay-state { color: var(--gp-muted); font-size: .88rem; }
.vb-thread { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column-reverse; gap: 8px; max-height: 420px; overflow-y: auto; }
.vb-msg { display: flex; flex-direction: column; gap: 2px; max-width: 85%; border: 1px solid var(--gp-line); border-radius: 12px; padding: 8px 10px; }
.vb-msg--mine { align-self: flex-end; border-color: var(--gp-lime); }
.vb-msg--system { align-self: center; max-width: 100%; border: none; color: var(--gp-muted); font-size: .85rem; text-align: center; padding: 2px; }
.vb-msg__who { color: var(--gp-muted); font-size: .78rem; }
.vb-msg__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.vb-msg time { color: var(--gp-muted); font-size: .72rem; }
.vb-compose { display: flex; gap: 8px; align-items: flex-end; }
.vb-compose textarea { flex: 1; min-width: 0; }
@media (max-width: 560px) { .vb-line { grid-template-columns: 1fr 1fr; } }
.vb .fa-head .vn-status { align-self: flex-start; width: auto; }
.vb-upload { position: relative; cursor: pointer; }
.vb-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Venue calendar (VEN-09) and open-dates link (VEN-10) */
.vc__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.vc__month { margin: 0; font-size: 1.05rem; flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap; }
.vc__room { margin-left: auto; border-radius: 10px; background: var(--gp-bg); border: 1px solid var(--gp-line); color: var(--gp-text); padding: 6px 8px; }
.vc__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.vc__dow { text-align: center; color: var(--gp-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 0; }
.vc__day { width: 100%; justify-self: stretch; box-sizing: border-box; min-height: 56px; border-radius: 10px; border: 1px solid var(--gp-line); background: transparent; color: var(--gp-text); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 4px 6px; text-align: left; cursor: pointer; min-width: 0; }
.vc__day:disabled { opacity: .35; cursor: default; }
.vc__num { font-weight: 600; font-size: .9rem; }
.vc__state { font-size: .66rem; color: var(--gp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; }
.vc__day--open { border-color: var(--gp-lime); }
.vc__day--open .vc__state { color: var(--gp-lime); }
.vc__day--blocked { background: rgba(255, 255, 255, .05); }
.vc__day--held { border-style: dashed; border-color: #fba419; }
.vc__day--held .vc__state { color: #fba419; }
.vc__day--booked { background: rgba(197, 232, 66, .14); border-color: rgba(197, 232, 66, .5); }
.vc__day.is-selected { outline: 2px solid var(--gp-text); outline-offset: 1px; }
.vc__share { margin-top: 20px; border-top: 1px solid var(--gp-line); padding-top: 14px; }
.vc__url { display: flex; gap: 8px; }
.vc__url input { flex: 1; min-width: 0; border-radius: 10px; background: var(--gp-bg); border: 1px solid var(--gp-line); color: var(--gp-text); padding: 6px 8px; }
.ve__item { border-bottom: 1px solid var(--gp-line); padding: 10px 0; }
.vc__short { display: none; }
/* Phone: the arrows and month stay on one line, the room picker gets its own; day labels in plain case, and "Blocked"
   (too wide for a 36px cell in Poppins) reads "Off". */
@media (max-width: 560px) {
    .vc__day { min-height: 50px; padding: 3px 2px; }
    .vc__state { font-size: .55rem; }
    .vc__bar { flex-wrap: wrap; }
    .vc__room { order: 4; flex: 1 1 100%; margin-left: 0; }
    .vc__long { display: none; }
    .vc__short { display: inline; }
}
.vc__nav { width: 36px; height: 36px; min-width: 36px; min-height: 36px; max-width: 36px; padding: 0; flex: 0 0 36px; border-radius: 10px; border: 1px solid var(--gp-line); background: transparent; color: var(--gp-text); font-size: 1.2rem; line-height: 1; }
.ve .ce-hint a { color: var(--gp-text); text-decoration: underline; text-underline-offset: 3px; }
.vc__count { font-size: .62rem; font-weight: 700; color: var(--gp-lime); line-height: 1; }
