/*
 * ZAEREEN — crawlable hotel destination pages
 * (/zaereen/hotels/<country>-hotels/<city>-hotels/<hotel>)
 *
 * Loaded AFTER zaereen.css, so these rules win where they overlap. It only
 * adds what the theme has no component for: the destination link lists, the
 * hotel detail layout and the pager. Cards, buttons, pageheads, crumbs and
 * the grid all come from zaereen.css — this sheet must never restyle them,
 * or the TBO pages would drift away from the curated hotel listing.
 *
 * Zaereen is ONE LIGHT THEME (the header declares color-scheme: light), so
 * everything here is written for the cream surface. No dark-mode variants.
 */

.zh-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.zh-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 14px;
    background: var(--z-card, #fffdf7);
    text-decoration: none;
    color: var(--z-ink, #23301f);
    font-family: var(--z-body, inherit);
    font-size: .95rem;
    font-weight: 600;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.zh-links a:hover {
    transform: translateY(-2px);
    border-color: var(--z-gold, #b9975b);
    box-shadow: 0 12px 26px rgba(35, 48, 31, .10);
}
.zh-links b {
    font-size: .8rem;
    font-weight: 700;
    color: var(--z-gold, #b9975b);
    background: rgba(185, 151, 91, .12);
    border-radius: 999px;
    padding: 3px 11px;
    white-space: nowrap;
}

/* Star filter chips ------------------------------------------------- */
.zh-stars-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-star-chip { cursor: pointer; }
/* The checkbox itself is hidden but still focusable and still submitted --
   the visible chip is its label, so keyboard and screen readers keep
   working. display:none would take it out of the form entirely. */
.zh-star-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.zh-star-chip span {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 999px;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: var(--z-ink, #23301f);
    transition: all .15s ease;
}
.zh-star-chip.is-on span,
.zh-star-chip input:checked + span {
    background: var(--z-green, #12332a);
    border-color: var(--z-green, #12332a);
    color: #fff;
}
.zh-star-chip input:focus-visible + span {
    outline: 2px solid var(--z-gold, #b9975b);
    outline-offset: 2px;
}

/* Hotel detail ------------------------------------------------------ */
.zh-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.zh-shot {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--z-card, #fffdf7);
    border: 1px solid var(--z-line, #e4ddcc);
}
.zh-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.zh-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.zh-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--z-line, #e4ddcc);
    cursor: pointer;
    background: var(--z-card, #fffdf7);
    transition: border-color .15s ease;
}
.zh-thumbs img:hover { border-color: var(--z-gold, #b9975b); }

.zh-aside {
    background: var(--z-card, #fffdf7);
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 18px;
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 96px;
}
.zh-aside h2 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--z-green, #12332a);
}
.zh-aside-note {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--z-muted, #6d7566);
    margin: 0 0 16px;
}
.zh-aside .z-btn { width: 100%; text-align: center; }
.zh-aside-back { margin-top: 10px; }

/* Fact lists -------------------------------------------------------- */
.zh-facts { list-style: none; padding: 0; margin: 0 0 18px; }
.zh-facts li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--z-line, #e4ddcc);
    font-size: .88rem;
}
.zh-facts li:last-child { border-bottom: 0; }
.zh-facts span { color: var(--z-muted, #6d7566); }
.zh-facts b { color: var(--z-ink, #23301f); text-align: right; font-weight: 600; }
.zh-facts.is-wide li { display: grid; grid-template-columns: 140px 1fr; }
.zh-facts.is-wide b { text-align: left; }

/* Panels ------------------------------------------------------------ */
.zh-panel {
    background: var(--z-card, #fffdf7);
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 20px;
}
.zh-panel h2 {
    font-size: 1.15rem;
    margin: 0 0 14px;
    color: var(--z-green, #12332a);
}
.zh-panel h2 small { color: var(--z-muted, #6d7566); font-size: .8rem; font-weight: 500; }
.zh-prose { font-size: .93rem; line-height: 1.85; color: var(--z-ink, #23301f); }
.zh-prose p { margin: 0 0 12px; }
.zh-more { font-size: .84rem; color: var(--z-muted, #6d7566); margin: 14px 0 0; }

.zh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-chip {
    padding: 7px 13px;
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 999px;
    background: #fff;
    font-size: .82rem;
    color: var(--z-ink, #23301f);
}

/* Pager -------------------------------------------------------------- */
.zh-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.zh-pager a, .zh-pager span {
    padding: 9px 15px;
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--z-ink, #23301f);
    font-size: .87rem;
}
.zh-pager a:hover { border-color: var(--z-gold, #b9975b); }
.zh-pager .is-current {
    background: var(--z-green, #12332a);
    border-color: var(--z-green, #12332a);
    color: #fff;
    font-weight: 700;
}

.zh-empty {
    text-align: center;
    padding: 56px 20px;
    background: var(--z-card, #fffdf7);
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 18px;
    color: var(--z-muted, #6d7566);
}
.zh-empty h1, .zh-empty h2 { color: var(--z-green, #12332a); margin-bottom: 10px; font-size: 1.35rem; }

/* The card photo keeps its box even while an image is retried or has
   failed, so cards in a row stay aligned. */
.z-story-pic img { background: var(--z-card, #fffdf7); }

@media (max-width: 900px) {
    .zh-detail-top { grid-template-columns: 1fr; }
    .zh-aside { position: static; }
}

/* Rate row in the Plan Your Stay panel.
   detail.php fills this slot with a computed estimate from the hotel row's
   per_night_adult_price; a TBO hotel has no such row, so this states the
   fact instead of leaving a gap where a number belongs. */
.zh-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    margin: 4px 0 14px;
    border: 1px dashed var(--z-line, #e4ddcc);
    border-radius: 12px;
    background: rgba(185, 151, 91, .07);
}
.zh-rate span {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--z-muted, #6d7566);
    font-weight: 700;
}
.zh-rate b {
    font-family: var(--z-display, inherit);
    font-size: 1.15rem;
    color: var(--z-green, #12332a);
}

/* Region groups on the destination hub ------------------------------- */
/* One column per region, each sized to its own content.
   align-items:start is what makes that true -- grid items stretch to the
   tallest row by default, which would give Asia's 12 countries the same
   height as Oceania's 2 and leave a column of empty card. */
/* MULTI-COLUMN, not grid. Grid lays items out in ROWS, so a row holding
   New South Wales (292 destinations) alongside Kangaroo Island (1) is as
   tall as New South Wales -- leaving a screen-and-a-half of empty cream
   under the short cards. align-items:start fixed the stretching but not
   the row height, because the row still reserves that space.

   Multicol has no rows: sections flow down one column and continue in the
   next, so a one-line card is followed immediately by the next section.
   column-width lets the count follow the viewport; the 4 caps it so the
   columns stay readable on a wide monitor. */
.zh-regiongrid {
    columns: 290px 4;
    column-gap: 18px;
}
.zh-region {
    /* Keep a state and its cities together in one column. The
       inline-block + width pair is what makes break-inside actually hold;
       on its own it is ignored by some engines. */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;

    /* Multicol has no row gap, so the margin provides it. */
    margin: 0 0 18px;
    border: 1px solid var(--z-line, #e4ddcc);
    border-radius: 16px;
    background: var(--z-card, #fffdf7);
    padding: 14px 14px 10px;
}
.zh-region-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    font-size: 1.02rem;
    color: var(--z-green, #12332a);
    margin: 0 0 8px;
    padding: 0 4px 8px;
    border-bottom: 1px solid var(--z-line, #e4ddcc);
}
.zh-region-head small {
    font-size: .72rem;
    font-weight: 600;
    color: var(--z-muted, #6d7566);
    font-family: var(--z-body, inherit);
}

/* Compact country rows inside a region column.
   The default .zh-links is a grid of bordered 260px cards, which cannot
   also be a dense list -- so this overrides it to a plain single column of
   text rows. Every border, shadow and lift is removed: at this density the
   card treatment is what made the old layout so tall, and a row that lifts
   on hover in a list of 40 is noise rather than feedback. */
.zh-links.is-compact {
    grid-template-columns: 1fr;
    gap: 0;
}
.zh-links.is-compact a {
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: .88rem;
    font-weight: 600;
    gap: 10px;
    transition: background-color .15s ease;
}
.zh-links.is-compact a:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: rgba(185, 151, 91, .12);
}
.zh-links.is-compact li + li {
    border-top: 1px solid rgba(228, 221, 204, .55);
}
/* Smaller than the 30px flag on the country cards: at this row height the
   full-size one is taller than the name beside it. */
.zh-links.is-compact .hs-flag {
    width: 22px;
    height: 15px;
    flex: 0 0 22px;
}
.zh-links.is-compact b {
    font-size: .72rem;
    padding: 2px 8px;
}

/* Country row with flag on the destination hub ----------------------- */
.zh-country {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;   /* lets a long country name ellipsis instead of pushing the count out */
}
.zh-country em {
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Fixed box, so a row whose flag fails to load still lines up with its
   neighbours instead of the name jumping left. */
.hs-flag {
    width: 30px;
    height: 20px;
    flex: 0 0 30px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(35, 48, 31, .25);
    display: block;
}

/* City thumbnail on the country page --------------------------------- */
/* Wider than the flag box it sits in the place of, because this is a
   photo rather than a 3:2 flag. Fixed size either way so rows align. */
.zh-citypic {
    width: 46px;
    height: 34px;
    flex: 0 0 46px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: var(--z-line, #e4ddcc);
}
/* Placeholder for a city whose hotels have no photo: keeps the name in
   the same column as every other row. */
.zh-citypic.is-blank { background: var(--z-line, #e4ddcc); opacity: .5; }


/* Bound the height of a state's city list ---------------------------- */
/* Australia's states run from 1 destination (Kangaroo Island) to 358
   (Other), and New South Wales alone is ~6,300px of rows. Left to grow,
   the four columns balance at roughly 9,100px and the page is nine
   screens tall no matter how it is packed -- the earlier grid holes were
   only half the problem.
   Capping the list makes every box a similar size, which is what lets the
   columns pack tightly, and takes the page from ~9,100px to ~1,400px.
   The rows are still in the HTML, so every city keeps its crawlable link
   -- this hides nothing from Google, it only stops one state from being
   taller than the other nine combined. */
.zh-links.is-compact {
    max-height: 460px;
    overflow-y: auto;
    /* Stops a scroll that reaches the end of this list from carrying on
       and jumping the whole page. */
    overscroll-behavior: contain;
}
/* A quiet scrollbar: the default chrome one is wide enough to crowd the
   hotel count sitting at the right edge of every row. */
.zh-links.is-compact::-webkit-scrollbar {
    width: 6px;
}
.zh-links.is-compact::-webkit-scrollbar-thumb {
    background: rgba(185, 151, 91, .45);
    border-radius: 999px;
}
.zh-links.is-compact::-webkit-scrollbar-track {
    background: transparent;
}
.zh-links.is-compact {
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 151, 91, .45) transparent;
}
