/**
 * Region amenity bar.
 *
 * Loaded by inc/region-page.php on region archives only, for blocks/region-amenity-bar.php -
 * both of its variants on templates/region-template.php: the row of icon-over-label cells
 * inside the panoramic hero, and the `accordion` cells in the Amenities section.
 *
 * It is section 1b of css/location-editorial.css on the `amenities-bar` branch (as of
 * 2026-11-11), the rules the same cells take on the Editorial location template, with the
 * body class in each selector swapped for `.tax-region`. The `bar` grid row the hero row
 * sits in belongs to the hero and is in css/location-pano-hero.css, which both templates
 * share.
 *
 * Class names are `.lab-*`; nothing here may reuse `.icon-list` / `.icon-item`.
 *
 * @see blocks/region-amenity-bar.php
 * @see blocks/region-pano-hero.php
 */


/* blocks/region-amenity-bar.php, handed to the hero through its `before_strip` slot and
   taking the `bar` row of the hero's grid: the panorama, then this, then the filmstrip.
   The row is placed explicitly because `.lph-strip-wrap` claims the `strip` area by name -
   auto-placement would step over it and drop the icons below the thumbnails.

   No rules and no fill. The hero's scrim has already resolved the panorama into the page
   background, and anything drawn around this row would cut the two apart again; the space
   above and below is what separates it. The section is already the full viewport width
   (`.wp-block-group`, see the note on `.lph-copy` above), so there is no full-bleed
   calculation here - `.lab-row` takes the same 1280px measure the copy and the filmstrip
   take, which is what lines the first icon up with the title and the first thumbnail. */
.tax-region .entry-content .lab {
    grid-area: bar;
    width: 100%;
}

/* The 1280px measure and the 1rem gutter the hero copy and the filmstrip take, so the
   first and last icon line up with the title above and the sections below.

   `--lab-cols` is the number of cells the partial actually printed, set inline there. One
   track per amenity rather than a fixed eight: a location that curates a shorter list
   still gets an evenly spread row instead of eight tracks with empty ones at the end.

   The three resets undo `.entry-content ul` (style.css:8067, a 22px indent and no list
   style) and `.entry-content ul li` (:8078, a 1em bottom margin that would show up as an
   uneven gap between the two rows at the narrow breakpoints). */
.tax-region .entry-content .lab-row {
    display: grid;
    grid-template-columns: repeat(var(--lab-cols, 8), minmax(0, 1fr));
    gap: 26px 14px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    /* Nothing at the foot: `.lph-strip-wrap` brings its own 40px margin-top, which is the
       gap between the icons and the thumbnails. */
    padding: 34px 1rem 0;
    list-style: none;
}

.tax-region .entry-content .lab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.tax-region .entry-content .lab-item::before {
    content: none;
}

/* The ACF icons arrive at three different drawn sizes (24, 30 and 32 viewBox units) with
   their width and height attributes stripped by the partial, so the box sets the size and
   the artwork scales into it. Gold rather than white: it is the one accent on a row of
   quiet labels, and it ties the band to the hero's own accent directly above. */
.lab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--color-text-accent);
}

.lab-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* A caption, not a heading: the same tracked uppercase as the filmstrip's "view all
   photos" link, a step smaller, and held off pure white so eight of them in a row read as
   one band rather than eight separate statements. */
.lab-label {
    font-family: var(--font-sans-serif);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /* --color-text-primary at 0.8; there is no white-rgb token to lean on. */
    color: rgba(255, 255, 255, 0.8);
    text-wrap: balance;
}

/* The partial splits every label into two lines at its most even break, so all eight cells
   are the same height whatever the name is. */
.lab-line {
    display: block;
}

/* Nine across is tight on a small laptop: at 1024px a track is 97px and "Professional" is
   wider than that, while "Meeting Room Access" breaks onto a third line. A narrower gutter
   and a little less tracking give each label its two lines back without wrapping the row. */
@media (min-width: 1024px) and (max-width: 1199px) {

    .tax-region .entry-content .lab-row {
        column-gap: 6px;
    }

    .lab-label {
        letter-spacing: 0.08em;
    }
}

/* The tracks stop fitting before the labels do: below 1024px the row wraps to
   `--lab-cols-narrow` across, which the partial sets from the cell count - four for eight
   cells, three for nine, so the last row is never one cell on its own - and on a phone to
   two. */
@media (max-width: 1023px) {

    .tax-region .entry-content .lab-row {
        grid-template-columns: repeat(var(--lab-cols-narrow, 4), minmax(0, 1fr));
        gap: 24px 14px;
    }
}

@media (max-width: 599px) {

    .tax-region .entry-content .lab-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
        /* A little at the foot here: `.lph-strip-wrap` drops to a 20px margin-top below
           880px, which on its own leaves the last row of labels sitting on the photos. */
        padding: 28px 1rem 10px;
    }

    .lab-icon {
        width: 24px;
        height: 24px;
    }

    .lab-label {
        font-size: 10.5px;
        letter-spacing: 0.1em;
    }
}

/* The accordion variant: the same cells printed a second time inside the Amenities
   section, each label a button that opens the amenity's description. It is the phone's
   version of that section and nothing else - hidden here, and swapped in below. */
.lab--accordion {
    display: none;
}

/* The shared `.accordion-toggle` is styled per context, so this starts from a bare button.
   The left padding is the chevron's 12px plus the 8px gap, which keeps the label - not the
   label and its arrow - centred under the icon. */
.tax-region .entry-content .lab-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 0 20px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    text-align: center;
    cursor: pointer;
}

.lab-chevron {
    flex: none;
    color: var(--color-text-accent);
}

/* Closed until js/more.js slide-toggles it, which sets an inline `display: block` - so a
   plain `display: none`, with no `!important` and no media query over it. */
.lab-text {
    display: none;
    font-size: var(--fs-body-md);
    line-height: var(--lh-body-md);
    letter-spacing: var(--ls-body-md);
    color: var(--color-text-secondary);
}

.lab-text p {
    margin: 0;
}

/* The Amenities section is these cells at every width (templates/region-template.php prints no
   checkmark list beside them any more). Five across on a desktop: nine across, as the hero
   row runs, would leave each opened description about 100px wide. The 1023px and 599px
   rules above take it to `--lab-cols-narrow` and then two. */
.tax-region #amenities .lab--accordion {
    display: block;
}

@media (min-width: 1024px) {

    .tax-region .entry-content #amenities .lab--accordion .lab-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 36px 24px;
        max-width: none;
        padding: 8px 0 0;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {

    .tax-region .entry-content #amenities .lab--accordion .lab-row {
        padding: 8px 0 0;
    }
}

@media (max-width: 599px) {

    /* The row under the hero goes: on a phone it pushed the photographs a screen down
       and said the same thing the Amenities section says two scrolls later. */
    .tax-region .location-pano-hero .lab,
    .tax-region .entry-content .lab:not(.lab--accordion) {
        display: none;
    }

    /* The section already has its gutters; the hero's padding would double them. */
    .tax-region .entry-content .lab--accordion .lab-row {
        gap: 30px 12px;
        padding: 0;
    }
