/* ==========================================================================
   Experience hub pages (Vatican Tours first, Nov 2026), layout B
   "The Departure Board". Loaded after css/pages/escorted-v5.css, which owns
   the shared V5 shell (main.esc5: containers, eyebrow/h2/sub, bands, tour
   cards, advantage captions, enquiry band). Only what hubs add lives here.
   ========================================================================== */

/* ── Hero: one photograph, text bottom-left like the tour V5 hero ──
   Same height as the tour page hero (.tv5-hero): the first screen is
   [hero] + [sticky subnav]. CSS gives the first paint; the inline script in
   experience-hub.blade.php then locks it to viewport minus the real subnav,
   exactly as tour-detail-v5 does, so both pages open on the same picture size. */
main.hub5 .hub5-hero {
    position: relative;
    height: calc(100svh - 3.5rem);
    min-height: 520px;
    overflow: hidden;
    background: var(--v5-ink, #201f1d);
    color: #fff;
}
main.hub5 .hub5-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
    display: block;
}
main.hub5 .hub5-hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 85% 70% at 15% 100%, rgba(0, 0, 0, 0.5), transparent 68%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.78) 100%);
}
main.hub5 .hub5-hero-content {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: flex-end;
    padding: 0 0 2rem;
}
main.hub5 .hub5-hero-title { color: #fff; max-width: 18ch; }
main.hub5 .hub5-hero-sub { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
main.hub5 .hub5-hero-btns { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
main.hub5 .hub5-hero-btns .ivs-btn { padding: 0.95rem 1.8rem; }
main.hub5 .hub5-hero .esc5-hero-meta { margin-top: 1.8rem; }

/* ── Tours section: its own surface so it reads as a new chapter after the
   ivory intro (parchment, hairline on top; the white tour cards sit on it).
   Surface rhythm down the page: ivory intro, parchment tours, white chooser,
   ivory why, ink aside, parchment know, ivory FAQ, photo enquiry. ── */
/* Intro: parchment band with the Italy tile and the inset shadows, the same
   treatment as "Before you go". Tours below sit on white, so the chapter break
   between the two is unmistakable and the white tour cards get a frame.
   Surface rhythm down the page: photo hero, parchment intro, white tours,
   parchment chooser, ivory why, ink aside, ivory voices, parchment know,
   ivory FAQ, photo enquiry. */
main.hub5 .hub5-intro { padding: clamp(3.4rem, 6vw, 5rem) 0; }
main.hub5 .hub5-tours { background: #fff; }

/* ── Departure board: ink strip of group tabs with counts ── */
main.hub5 .hub5-board {
    margin-top: 2.2rem;
    background: var(--v5-ink, #201f1d);
}
main.hub5 .hub5-board-in {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem;
    padding-block: 0.7rem;
}
main.hub5 .hub5-tab {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 3px;
    font-family: var(--v5-font-label);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(250, 249, 246, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}
main.hub5 .hub5-tab i { font-style: normal; font-weight: 500; color: rgba(250, 249, 246, 0.45); }
main.hub5 .hub5-tab:hover { color: #fff; }
main.hub5 .hub5-tab.is-on { background: var(--v5-ivory, #faf9f6); color: var(--v5-ink, #201f1d); }
main.hub5 .hub5-tab.is-on i { color: var(--v5-olive-700, #4a5e2f); }
main.hub5 .hub5-tab:focus-visible { outline: 2px solid var(--v5-amber, #fcb913); outline-offset: 2px; }
main.hub5 .hub5-count-sel { color: var(--v5-ink); }
main.hub5 .hub5-section-intro {
    margin-top: 0.6rem;
    font-size: 1rem; line-height: 1.7;
    color: var(--v5-stone);
    max-width: 70ch;
}

/* "Book online" badge on a card photo: only when the tour is bookable now. */
main.esc5 .esc5-book {
    position: absolute; z-index: 3; right: 0; top: 16px;
    padding: 0.42rem 0.75rem 0.42rem 0.85rem;
    background: var(--v5-olive-700, #4a5e2f);
    color: var(--v5-ivory, #faf9f6);
    font-family: var(--v5-font-label);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    pointer-events: none;
}

/* ── Which tour is right for you: an editorial ledger, not three cards.
   Left column holds the question, a lede and one photograph; right column
   lists the three questions as Roman numerals with hairlines. Each answer is
   a pill the visitor can press (olive hairline, fills olive on hover) that
   jumps to the matching group on the board. ── */
main.hub5 .hub5-choose-in {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.4rem, 6vw, 6rem); align-items: stretch;
}
/* The questions set the height; the photograph fills whatever is left under
   the lede (cropped, never stretched), so the two columns end on one line
   without padding the list out. */
main.hub5 .hub5-choose-lead { display: flex; flex-direction: column; }
main.hub5 .hub5-choose-lead .esc5-sub { margin-top: 0.9rem; }
main.hub5 .hub5-choose-ph { position: relative; flex: 1 1 auto; min-height: 240px; margin: 1.8rem 0 0; box-shadow: 0 18px 40px -22px rgba(32, 31, 29, 0.45); }
main.hub5 .hub5-choose-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
main.hub5 .hub5-choose-list { list-style: none; margin: 0; padding: 0; }
main.hub5 .hub5-choose-q {
    display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1rem;
    padding: 1.4rem 0 1.5rem;
    border-top: 1px solid var(--v5-line);
}
main.hub5 .hub5-choose-end {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.5rem;
    padding: 1.3rem 0 0.2rem;
    border-top: 1px solid var(--v5-line);
}
main.hub5 .hub5-choose-end p { margin: 0; font-family: var(--v5-font-display); font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--v5-stone); }
main.hub5 .hub5-choose-end-link {
    display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
    font-family: var(--v5-font-label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--v5-olive-700); border-bottom: 1px solid currentColor; padding-bottom: 0.15rem;
}
main.hub5 .hub5-choose-end-link svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main.hub5 .hub5-choose-num {
    font-family: var(--v5-font-display); font-style: italic; font-weight: 400;
    font-size: 1.9rem; line-height: 1; color: var(--v5-gold, #b9995b);
    padding-top: 0.15rem;
}
main.hub5 .hub5-choose-body h3 {
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.25;
    color: var(--v5-ink); margin: 0 0 1rem;
}
main.hub5 .hub5-picks { display: flex; flex-wrap: wrap; gap: 0.6rem; }
main.hub5 .hub5-pick {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.62rem 0.95rem 0.62rem 1.05rem;
    border: 1px solid var(--v5-olive-500, #6f8a4a); border-radius: 3px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--v5-ink); text-decoration: none;
    transition: background var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease), color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease), border-color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease);
}
main.hub5 .hub5-pick-txt { font-family: var(--v5-font-body); font-size: 0.98rem; line-height: 1.3; }
main.hub5 .hub5-pick-go {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--v5-font-label); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--v5-olive-700);
    padding-left: 0.75rem; border-left: 1px solid var(--v5-line); white-space: nowrap;
}
main.hub5 .hub5-pick-go svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease); }
main.hub5 .hub5-pick:hover,
main.hub5 .hub5-pick:focus-visible { background: var(--v5-olive-700); border-color: var(--v5-olive-700); color: #fff; }
main.hub5 .hub5-pick:hover .hub5-pick-go,
main.hub5 .hub5-pick:focus-visible .hub5-pick-go { color: rgba(255, 255, 255, 0.85); border-left-color: rgba(255, 255, 255, 0.3); }
main.hub5 .hub5-pick:hover .hub5-pick-go svg { transform: translateX(3px); }

main.hub5 .hub5-aside-in {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* The photo is cropped to a near-square so it matches the text column's
   height instead of towering over it (height: auto beats the img height attr). */
main.hub5 .hub5-aside-ph { margin: 0; }
main.hub5 .hub5-aside-ph img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 30%; display: block; }
main.hub5 .hub5-aside-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
main.hub5 .hub5-aside-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-top: 0.7rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-family: var(--v5-font-body); color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; line-height: 1.55; }
main.hub5 .hub5-aside-list dt, main.hub5 .hub5-aside-list b { font-family: var(--v5-font-label); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v5-gold, #c9a24d); padding-top: 0.25rem; }
main.hub5 .hub5-aside-btn { margin-top: 1.8rem; }

/* ── Guest voices: the shared testimonial stage brings no vertical padding
   of its own (each host page sets it); same breathing room as every section. ── */
main.hub5 .ivs-testi { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }

/* ── Good to know ── */
main.hub5 .hub5-know-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem; margin: 2.2rem 0 0;
}
main.hub5 .hub5-know-grid > div { border-top: 1px solid var(--v5-line); padding-top: 1.1rem; }
/* One line glyph per fact, in an ivory disc with a hairline ring: reads as a
   ledger stamp, not a feature-card icon. Stroke olive like the card icons. */
main.hub5 .hub5-know-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; margin-bottom: 0.85rem;
    border-radius: 50%;
    background: var(--v5-ivory, #faf9f6);
    border: 1px solid var(--v5-line, #e4e0d5);
    box-shadow: 0 1px 0 rgba(32, 31, 29, 0.04);
}
main.hub5 .hub5-ic {
    width: 1.45rem; height: 1.45rem;
    fill: none; stroke: var(--v5-olive-700, #4a5e2f);
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
main.hub5 .hub5-know-grid dt {
    font-family: var(--v5-font-label); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.06em;
    color: var(--v5-ink);
}
main.hub5 .hub5-know-grid dd {
    margin: 0.45rem 0 0;
    font-size: 0.96rem; line-height: 1.65;
    color: var(--v5-stone);
}
main.hub5 .hub5-know-grid dd a { color: var(--v5-olive-700); border-bottom: 1px solid currentColor; }

/* ── FAQ ── */
main.hub5 .hub5-faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); }
main.hub5 .hub5-faq details { border-top: 1px solid var(--v5-line); padding: 1.05rem 0; }
main.hub5 .hub5-faq details:last-of-type { border-bottom: 1px solid var(--v5-line); }
main.hub5 .hub5-faq summary {
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem;
    font-family: var(--v5-font-display); font-size: 1.15rem; line-height: 1.35;
    color: var(--v5-ink);
}
main.hub5 .hub5-faq summary::-webkit-details-marker { display: none; }
main.hub5 .hub5-faq summary::after {
    content: "+"; flex: 0 0 auto;
    font-family: var(--v5-font-label); font-size: 1.3rem; line-height: 1;
    color: var(--v5-olive-700);
}
main.hub5 .hub5-faq details[open] summary::after { content: "\2013"; }
main.hub5 .hub5-faq details p {
    padding-top: 0.7rem;
    font-size: 0.98rem; line-height: 1.7;
    color: var(--v5-stone);
    max-width: 70ch;
}

/* ── Responsive (4 viewports: 375 / 768 / 1366 / 1920) ── */
@media (max-width: 1199px) {
    main.hub5 .hub5-know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    main.hub5 .hub5-choose-in { grid-template-columns: 1fr; gap: 2rem; }
    main.hub5 .hub5-choose-ph { display: none; }
    main.hub5 .hub5-aside-in { grid-template-columns: 1fr; }
    main.hub5 .hub5-faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    main.hub5 .hub5-choose-q { grid-template-columns: 2.2rem minmax(0, 1fr); padding: 1.3rem 0 1.4rem; }
    main.hub5 .hub5-choose-num { font-size: 1.5rem; }
    /* Phone: answer on one line, the destination label underneath it. */
    main.hub5 .hub5-pick { width: 100%; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.7rem 0.95rem; }
    main.hub5 .hub5-pick-go { padding-left: 0; border-left: 0; }
    main.hub5 .hub5-hero-btns .ivs-btn { padding: 0.85rem 1.3rem; }
    main.hub5 .hub5-hero .esc5-hero-meta { margin-top: 1.2rem; font-size: 0.74rem; }
    /* Phone: one scrollable row of tabs instead of a ragged wrap. Snap per tab,
       scrollbar hidden, the ink fades at the right edge hint there is more. */
    main.hub5 .hub5-board { position: relative; }
    main.hub5 .hub5-board-in {
        flex-wrap: nowrap; overflow-x: auto; gap: 0.35rem;
        padding-block: 0.5rem; padding-right: 3.5rem;
        scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    main.hub5 .hub5-board-in::-webkit-scrollbar { display: none; }
    main.hub5 .hub5-board::after {
        content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3rem; pointer-events: none;
        background: linear-gradient(to right, rgba(32, 31, 29, 0), var(--v5-ink, #201f1d));
    }
    main.hub5 .hub5-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
    main.hub5 .hub5-aside-list li { grid-template-columns: 1fr; gap: 0.2rem; }
    main.hub5 .hub5-tab { padding: 0.55rem 0.7rem; font-size: 0.64rem; }
    main.hub5 .hub5-know-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    /* Phone: icon sits beside the title so each fact stays one compact block. */
    main.hub5 .hub5-know-grid > div { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.9rem; align-items: center; }
    main.hub5 .hub5-know-ic { width: 2.6rem; height: 2.6rem; margin: 0; }
    main.hub5 .hub5-know-grid dd { grid-column: 2; margin-top: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    main.hub5 .hub5-tab { transition: none; }
}

/* ==========================================================================
   Added 19 Nov 2026 (Jesse, brief of 16 Nov): feature cards, the sights with
   access and tickets, the full width rail of the city tours, the links to
   the rest of the trip and the sister websites.
   Surface rhythm with them in place: photo hero, parchment intro, ivory
   features, white tours, parchment chooser, white sights, ivory why, ink
   aside, ivory voices, white city rail, parchment know, ivory FAQ, parchment
   rest of the trip, photo enquiry.
   ========================================================================== */

/* ── Feature cards: what the list cards leave out (description, inclusions).
   White sheets on ivory; the photo is the only colour, the foot repeats the
   price plate of the list cards so the two read as one family. ── */
main.hub5 .hub5-feat-head { max-width: 62rem; }
main.hub5 .hub5-feat-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 2vw, 2rem);
    margin-top: 2.2rem;
}
main.hub5 .hub5-feat-grid--n1 { grid-template-columns: minmax(0, 1fr); }
main.hub5 .hub5-feat-grid--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
main.hub5 .hub5-feat-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--v5-line, #e4e0d5);
    box-shadow: 0 22px 44px -30px rgba(32, 31, 29, 0.4);
}
main.hub5 .hub5-feat-ph { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--v5-parchment); }
main.hub5 .hub5-feat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s ease; }
main.hub5 .hub5-feat-card:hover .hub5-feat-ph img { transform: scale(1.04); }
main.hub5 .hub5-feat-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.5rem 1.6rem 0; }
main.hub5 .hub5-feat-meta {
    display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem;
    font-family: var(--v5-font-label);
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--v5-olive-700, #4a5e2f);
}
main.hub5 .hub5-feat-meta span + span { padding-left: 0.9rem; border-left: 1px solid var(--v5-line, #e4e0d5); color: var(--v5-stone); }
main.hub5 .hub5-feat-body h3 {
    margin-top: 0.7rem;
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.22;
    color: var(--v5-ink);
}
main.hub5 .hub5-feat-body h3 a:hover { color: var(--v5-olive-700, #4a5e2f); }
main.hub5 .hub5-feat-txt {
    margin-top: 0.8rem;
    font-size: 0.96rem; line-height: 1.7;
    color: var(--v5-stone);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
main.hub5 .hub5-feat-inc { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--v5-line, #e4e0d5); }
main.hub5 .hub5-feat-inc h4 {
    margin: 0 0 0.6rem;
    font-family: var(--v5-font-label);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--v5-ink);
}
main.hub5 .hub5-feat-inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
main.hub5 .hub5-feat-inc li {
    position: relative; padding-left: 1.5rem;
    font-size: 0.92rem; line-height: 1.5;
    color: var(--v5-ink);
}
/* Tick drawn with two borders: no icon font, no extra request. */
main.hub5 .hub5-feat-inc li::before {
    content: ''; position: absolute; left: 0.25rem; top: 0.28em;
    width: 0.36rem; height: 0.68rem;
    border: solid var(--v5-olive-700, #4a5e2f); border-width: 0 1.6px 1.6px 0;
    transform: rotate(42deg);
}
main.hub5 .hub5-feat-foot {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    margin: auto -1.6rem 0; padding: 1.1rem 1.6rem 1.2rem;
    background: var(--v5-parchment);
    border-top: 1px solid var(--v5-line, #e4e0d5);
}
/* The body pushes the foot down; this keeps air above it on short cards. */
main.hub5 .hub5-feat-body > :nth-last-child(2) { margin-bottom: 1.5rem; }
main.hub5 .hub5-feat-btn { flex: 0 0 auto; padding: 0.85rem 1.25rem; font-size: 0.66rem; letter-spacing: 0.16em; white-space: nowrap; }

/* ── What you will see: heading held on the left while the places scroll
   past on the right. Each row is a photograph, the place, and how you get
   in set apart under a dashed hairline (the part visitors come back for). ── */
main.hub5 .hub5-see { background: #fff; }
main.hub5 .hub5-see-in {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: clamp(2.4rem, 6vw, 6rem); align-items: start;
}
main.hub5 .hub5-see-lead { position: sticky; top: 9.5rem; }
main.hub5 .hub5-see-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1.5rem; padding-bottom: 0.2rem;
    font-family: var(--v5-font-label);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--v5-olive-700, #4a5e2f);
    border-bottom: 1px solid currentColor;
}
main.hub5 .hub5-see-link svg,
main.hub5 .hub5-more-links svg,
main.hub5 .hub5-sis-go svg {
    width: 1rem; height: 1rem; flex: 0 0 auto;
    fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s ease;
}
main.hub5 .hub5-see-link:hover svg { transform: translateX(4px); }
main.hub5 .hub5-see-row {
    display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    padding: 1.8rem 0;
    border-top: 1px solid var(--v5-line, #e4e0d5);
}
main.hub5 .hub5-see-row:first-child { padding-top: 0; border-top: 0; }
main.hub5 .hub5-see-row:last-child { padding-bottom: 0; }
main.hub5 .hub5-see-ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--v5-parchment); }
main.hub5 .hub5-see-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
main.hub5 .hub5-see-txt h3 {
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.2;
    color: var(--v5-ink);
}
main.hub5 .hub5-see-txt > p { margin-top: 0.6rem; font-size: 0.98rem; line-height: 1.7; color: var(--v5-stone); max-width: 68ch; }
main.hub5 .hub5-see-access { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--v5-line, #e4e0d5); max-width: 68ch; }
main.hub5 .hub5-see-access dt {
    font-family: var(--v5-font-label);
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--v5-olive-700, #4a5e2f);
}
main.hub5 .hub5-see-access dd { margin: 0.35rem 0 0; font-size: 0.94rem; line-height: 1.65; color: var(--v5-ink); }

/* ── More tours of the city: the shared ivs-rail, edge to edge. Six cards
   across on a wide screen, fewer as it narrows; the rail auto-advances one
   card at a time (ivs-rail.js) and the chevrons sit in the side gutters. ── */
main.hub5 .hub5-rome { background: #fff; }
main.hub5 .hub5-rome-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
main.hub5 .hub5-rome-btn { flex: 0 0 auto; }
main.hub5 .hub5-rome-bleed { margin-top: 2.2rem; padding-inline: clamp(12px, 1.6vw, 28px); }
main.hub5 .hub5-rome-rail { --hub5-rail-gap: 1rem; --hub5-rail-n: 6; gap: var(--hub5-rail-gap); padding-bottom: 1.4rem; --ivs-rail-item: calc((100% - (var(--hub5-rail-n) - 1) * var(--hub5-rail-gap)) / var(--hub5-rail-n)); }
/* Narrow cards: the price keeps its line, "per person" moves into the label
   (the same swap the list cards make on a phone). */
main.hub5 .hub5-rome-rail .esc5-price-val i { display: none; }
main.hub5 .hub5-rome-rail .esc5-price small[data-pp]::after { content: ' · ' attr(data-pp); }
main.hub5 .hub5-rome-rail .esc5-price small { white-space: nowrap; letter-spacing: 0.12em; }
main.hub5 .hub5-rome-rail .esc5-card-btn { padding: 0.75rem 0.9rem; }

/* ── The rest of your trip: three plain links (name, one line, arrow) and
   the two sister websites on white plates so their own logos read true. ── */
main.hub5 .hub5-more-links {
    list-style: none; margin: 2.2rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem);
}
main.hub5 .hub5-more-links a {
    position: relative; display: block; height: 100%;
    padding: 1.3rem 2.4rem 1.4rem 0;
    border-top: 1px solid var(--v5-ink, #201f1d);
}
main.hub5 .hub5-more-name {
    display: block;
    font-family: var(--v5-font-display); font-weight: 500;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2;
    color: var(--v5-ink);
    transition: color 0.2s ease;
}
main.hub5 .hub5-more-txt { display: block; margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.65; color: var(--v5-stone); }
main.hub5 .hub5-more-links svg { position: absolute; right: 0.2rem; top: 1.55rem; width: 1.3rem; height: 1.3rem; color: var(--v5-olive-700, #4a5e2f); }
main.hub5 .hub5-more-links a:hover .hub5-more-name { color: var(--v5-olive-700, #4a5e2f); }
main.hub5 .hub5-more-links a:hover svg { transform: translateX(5px); }

main.hub5 .hub5-sis { position: relative; z-index: 1; margin-top: clamp(2.4rem, 4vw, 3.6rem); }
main.hub5 .hub5-sis-title {
    font-family: var(--v5-font-label);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--v5-stone);
}
main.hub5 .hub5-sis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: 1rem; }
main.hub5 .hub5-sis-card {
    display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center;
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    padding: 1.4rem clamp(1.2rem, 2vw, 2rem);
    background: #fff;
    border: 1px solid var(--v5-line, #e4e0d5);
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
main.hub5 .hub5-sis-card:hover { border-color: var(--v5-olive-700, #4a5e2f); box-shadow: 0 18px 36px -26px rgba(32, 31, 29, 0.45); }
main.hub5 .hub5-sis-logo { display: flex; align-items: center; justify-content: center; height: 5.5rem; }
main.hub5 .hub5-sis-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
main.hub5 .hub5-sis-logo b { font-family: var(--v5-font-display); font-weight: 500; font-size: 1.3rem; }
main.hub5 .hub5-sis-txt { display: block; padding-left: clamp(1.2rem, 2.4vw, 2.2rem); border-left: 1px solid var(--v5-line, #e4e0d5); }
main.hub5 .hub5-sis-desc { display: block; font-size: 0.96rem; line-height: 1.6; color: var(--v5-ink); }
main.hub5 .hub5-sis-go {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin-top: 0.7rem;
    font-family: var(--v5-font-label);
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--v5-olive-700, #4a5e2f);
}
main.hub5 .hub5-sis-card:hover .hub5-sis-go svg { transform: translate(3px, -3px); }

main.hub5 :is(.hub5-feat-body h3 a, .hub5-feat-ph, .hub5-see-link, .hub5-more-links a, .hub5-sis-card):focus-visible { outline: 2px solid var(--v5-amber, #fcb913); outline-offset: 3px; }

@media (max-width: 1599px) {
    main.hub5 .hub5-rome-rail { --hub5-rail-n: 4; }
}
@media (max-width: 1199px) {
    /* Tablet: each feature becomes one row, photograph on the left. */
    main.hub5 .hub5-feat-grid,
    main.hub5 .hub5-feat-grid--n2 { grid-template-columns: minmax(0, 1fr); }
    main.hub5 .hub5-feat-card { flex-direction: row; }
    main.hub5 .hub5-feat-ph { flex: 0 0 40%; aspect-ratio: auto; min-height: 100%; }
    main.hub5 .hub5-rome-rail { --hub5-rail-n: 3; }
    main.hub5 .hub5-sis-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
    /* Below three comfortable columns the rail stops dividing the width:
       fixed cards wide enough for the price and the button on one line. */
    main.hub5 .hub5-rome-rail { --ivs-rail-item: clamp(250px, 38vw, 300px); }
    main.hub5 .hub5-see-in { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    main.hub5 .hub5-see-lead { position: static; }
    main.hub5 .hub5-more-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    main.hub5 .hub5-feat-card { flex-direction: column; }
    main.hub5 .hub5-feat-ph { flex: 0 0 auto; aspect-ratio: 3 / 2; min-height: 0; }
    main.hub5 .hub5-feat-body { padding: 1.25rem 1.2rem 0; }
    main.hub5 .hub5-feat-foot { margin-inline: -1.2rem; padding-inline: 1.2rem; }
    main.hub5 .hub5-see-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; }
    main.hub5 .hub5-see-ph { aspect-ratio: 16 / 9; }
    /* Phone: one card and the edge of the next, so the rail says it moves. */
    main.hub5 .hub5-rome-bleed { padding-inline: 0; }
    main.hub5 .hub5-rome-rail { --ivs-rail-item: 78vw; padding-inline: 16px; scroll-padding-inline: 16px; }
    main.hub5 .hub5-rome-btn { width: 100%; text-align: center; }
    main.hub5 .hub5-sis-card { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    main.hub5 .hub5-sis-logo { justify-content: flex-start; height: 4.2rem; }
    main.hub5 .hub5-sis-txt { padding-left: 0; padding-top: 1rem; border-left: 0; border-top: 1px solid var(--v5-line, #e4e0d5); }
}
@media (prefers-reduced-motion: reduce) {
    main.hub5 .hub5-feat-ph img,
    main.hub5 .hub5-see-link svg,
    main.hub5 .hub5-more-links svg,
    main.hub5 .hub5-sis-go svg { transition: none; }
    main.hub5 .hub5-feat-card:hover .hub5-feat-ph img { transform: none; }
}

/* ── 19 Nov 2026 (bos): featured foot = the house card foot (Italy toile behind
   the button side, same recipe as .esc5-card-foot), white button label. ── */
main.hub5 .hub5-feat-foot { position: relative; overflow: hidden; }
main.hub5 .hub5-feat-foot::after {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    background: url('/images/italy-tile.webp') repeat right center;
    background-size: 360px;
    opacity: 0.2;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
main.hub5 .hub5-feat-foot > * { position: relative; z-index: 1; }
main.hub5 a.hub5-feat-btn,
main.hub5 a.hub5-feat-btn:hover,
main.hub5 a.hub5-feat-btn:focus-visible { color: #fff; }
main.hub5 a.hub5-feat-btn { padding: 0.8rem 1.15rem; font-weight: 600; }

/* ── Questions: two tilted prints under the heading, white border like a
   postcard, so the left column is not empty. ── */
main.hub5 .hub5-faq-prints {
    position: relative;
    width: min(100%, 27rem);
    aspect-ratio: 10 / 9;
    margin-top: clamp(2rem, 4vw, 3.2rem);
}
main.hub5 .hub5-faq-print {
    position: absolute; margin: 0;
    padding: 0.55rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(40, 36, 26, 0.12), 0 18px 34px -14px rgba(40, 36, 26, 0.38);
    transition: transform 0.6s ease;
}
main.hub5 .hub5-faq-print img { display: block; width: 100%; height: 100%; object-fit: cover; }
main.hub5 .hub5-faq-print:nth-child(1) { left: 0; top: 0; width: 72%; aspect-ratio: 4 / 3; transform: rotate(-4deg); z-index: 1; }
main.hub5 .hub5-faq-print:nth-child(2) { right: 0; bottom: 0; width: 50%; aspect-ratio: 1 / 1; transform: rotate(5deg); z-index: 2; }
main.hub5 .hub5-faq-prints--n1 { aspect-ratio: 4 / 3; }
main.hub5 .hub5-faq-prints--n1 .hub5-faq-print { width: 86%; left: 4%; top: 4%; }
main.hub5 .hub5-faq-prints:hover .hub5-faq-print:nth-child(1) { transform: rotate(-2deg); }
main.hub5 .hub5-faq-prints:hover .hub5-faq-print:nth-child(2) { transform: rotate(3deg); }
@media (max-width: 991px) {
    main.hub5 .hub5-faq-prints { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    main.hub5 .hub5-faq-print { transition: none; }
}

/* Rome rail (bos, 19 Nov 2026): the arrows sit at the middle of the whole
   card, not of its photograph (the shared default). 1.4rem = rail padding. */
@media (min-width: 768px) {
    main.hub5 .hub5-rome .ivs-rail-wrap:is(.has-prev, .has-next) .ivs-bnav { top: calc((100% - 1.4rem) / 2); }
}
