/* Usability layer, loaded only on sites with site.ux (see build.js). Loaded after styles.css. */

/* Scroll reveals: content starts fully visible and only drifts into place, so the facts box and
   buttons never look greyed out or disabled before they animate */
.js-reveal .reveal, .js-reveal .refresh .reveal { opacity: 1; transform: translateY(10px); }
.js-reveal .reveal.in, .js-reveal .refresh .reveal.in { opacity: 1; transform: none; }
.reveal-on .rv { opacity: 1; transform: translateY(10px); }
.reveal-on .rv.is-in { transform: none; }
.js-reveal .venue .reveal { transform: none; }

/* "At a glance" strip under the venue title */
.glance { display: flex; flex-wrap: wrap; margin: -8px 0 28px; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.glance-item { flex: 1 1 150px; display: grid; gap: 3px; align-content: start; padding: 12px 16px; border-left: .5px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.glance-item:first-child { border-left: 0; padding-left: 0; }
.glance-k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glance-v { font-size: .95rem; color: var(--ink, inherit); overflow-wrap: anywhere; }
.glance-item:hover .glance-v, .glance-item:focus-visible .glance-v { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .glance { display: grid; grid-template-columns: 1fr 1fr; margin: -4px 0 20px; }
  .glance-item { padding: 10px 12px 10px 0; border-left: 0; border-top: .5px solid var(--line); }
  .glance-item:nth-child(-n+2) { border-top: 0; }
  .glance-item:nth-child(2n) { padding-left: 12px; border-left: .5px solid var(--line); }
}

/* Phones: the floating "Ask" and back-to-top buttons stay small, step aside while you scroll
   down to read, and come back when you scroll up; the page ends with room to clear them */
@media (max-width: 720px) {
  .ask-btn { gap: 8px; padding: 0 16px; height: 44px; font-size: 0; }
  .ask-btn::after { content: "Ask"; font-size: .88rem; letter-spacing: .04em; }
  .has-venue-bar { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  body:not(.has-venue-bar) { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .ask-btn, .to-top.is-on { transition: opacity .2s, transform .2s; }
  .ux-float-away .ask-btn, .ux-float-away .to-top.is-on { opacity: 0; transform: translateY(12px); pointer-events: none; }
}

/* Hotel booking search: never wider than a phone screen */
.booking-form input, .booking-form select, .booking-form .btn { max-width: 100%; box-sizing: border-box; }

/* .ink (opt-in through the site's bodyClass): black instead of the blue cyclades accent for headings, kickers and links */
.ink { --cyc: #000; }
.ink .badge, .ink .guide-nav a { border-color: rgba(0, 0, 0, .3); }
.ink .venue-about p.byline, .ink .guide-feature .byline { color: #555; }
.ink .feature-kicker, .ink .cta-kicker, .ink .wx-card-name, .ink .season dt, .ink .faq-q summary::after, .ink .ferry-table tbody th a, .ink .itin-links a, .ink .discuss-jump a { color: #000; }
.ink .guide-tile:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.ink .cta-panel { background: #f5f5f5; border-color: rgba(0, 0, 0, .14); }
.ink .wx-card { background: #f7f7f7; border-color: rgba(0, 0, 0, .12); }
.ink .cta-panel .btn-ghost, .ink .guide-links .btn-ghost { color: #000 !important; border-color: rgba(0, 0, 0, .45) !important; }
.ink .cta-panel .btn-ghost:hover, .ink .guide-links .btn-ghost:hover { background: #000 !important; color: #fff !important; }
.ink .pick-chip { border-color: rgba(0, 0, 0, .3); color: #000; }
.ink .pick-chip[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.ink .ferry-table tbody tr:nth-child(odd) { background: rgba(0, 0, 0, .03); }
.ink .feature-more summary { background: #000; }
.ink .feature-more[open] summary { background: #fff; color: #000; border-color: rgba(0, 0, 0, .4); }

/* Price filter row on list pages (site.ux.priceFilter) */
.filter-price { margin-top: -6px; }

/* "Hotels nearby" on sight pages (site.ux.hotelsNearby) */
.hotels-near { margin: 0 0 40px; }
.hotels-near h2 { margin-bottom: .2em; }
.hotels-near-list { list-style: none; margin: 14px 0 10px; padding: 0; border-top: .5px solid var(--line); }
.hotels-near-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: .5px solid var(--line); }
.hotels-near-list a { display: grid; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.hotels-near-list a:hover .hn-name { text-decoration: underline; text-underline-offset: 3px; }
.hn-name { font-size: 1.02rem; }
.hn-meta { font-size: .85rem; color: var(--muted); }
.hn-d { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hn-d small { display: block; font-size: .8rem; color: var(--muted); }

/* "Tonight" page (site.ux.tonight) */
.tonight-page { padding-top: 40px; padding-bottom: 56px; }
.tonight-intro { max-width: 70ch; }
.tonight-tabs { display: flex; gap: 8px; margin: 22px 0 6px; }
.tonight-list { list-style: none; margin: 10px 0 40px; padding: 0; border-top: .5px solid var(--line); }
.tonight-item { display: grid; grid-template-columns: 9rem 1fr; gap: 2px 20px; padding: 14px 0; border-bottom: .5px solid var(--line); }
.tonight-item p { margin: 0; }
.tn-time { grid-row: span 2; font-variant-numeric: tabular-nums; font-weight: 500; }
.tn-name { font-size: 1.05rem; }
.tn-name .whatson-tag { margin-left: 8px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tn-venue { font-size: .9rem; color: var(--muted); }
.tonight-venues { columns: 2 260px; padding-left: 1.1em; margin: 6px 0 22px; }
.tonight-venues li { margin: 0 0 6px; break-inside: avoid; }
.tonight-kind { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; font-family: inherit; }
@media (max-width: 560px) { .tonight-item { grid-template-columns: 1fr; } .tn-time { grid-row: auto; } }

