:root {
    --jef-bg: #ffffff;
    --jef-text: #1f2933;
    --jef-muted: #667085;
    --jef-primary: #d94a38;
    --jef-navy: #19324a;
    --jef-warm: #f6f4ef;
    --jef-border: #e5e7eb;
    --jef-radius: 10px;
    --jef-container: 1280px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--jef-text); background: var(--jef-bg); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--jef-container)); margin-inline: auto; }
.section { padding: 72px 0; }
.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--jef-border);
    background: #fff;
}
.site-header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--jef-navy);
    text-decoration: none;
    line-height: 1;
}
.site-logo__mark {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 50%;
    background: var(--jef-primary);
    box-shadow: 7px 0 0 rgba(217,74,56,.18);
}
.site-logo__text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}
.site-logo__japan {
    color: var(--jef-primary);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.site-logo__event-finder {
    color: var(--jef-navy);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-nav a {
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--jef-primary);
    transition: right .18s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    right: 0;
}
.site-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--jef-border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.site-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--jef-navy);
    transition: transform .2s ease, opacity .2s ease;
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.hero { background: var(--jef-warm); }
.hero h1 { max-width: 760px; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.05; margin: 0 0 20px; }
.eyebrow { color: var(--jef-primary); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--jef-primary); color: #fff; text-decoration: none; font-weight: 700; cursor: pointer; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-card { overflow: hidden; border: 1px solid var(--jef-border); border-radius: var(--jef-radius); background: #fff; }
.event-card__link { text-decoration: none; }
.event-card__image img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.event-card__body { padding: 18px; }
.event-card__title { margin: 0 0 8px; font-size: 1.2rem; }
.event-card__date { margin: 0; color: var(--jef-muted); }
.event-detail__hero-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--jef-radius); }
.event-section { margin-top: 48px; max-width: 760px; }
.event-finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; margin: 24px 0 40px; }
.event-finder label { display: grid; gap: 6px; font-weight: 600; }
.event-finder input { min-height: 48px; border: 1px solid var(--jef-border); border-radius: 8px; padding: 0 12px; }
.site-footer { margin-top: 72px; padding: 40px 0; background: var(--jef-navy); color: #fff; }
@media (max-width: 800px) {
    .section { padding: 52px 0; }

    .site-header__inner {
        min-height: 72px;
        gap: 16px;
    }
    .site-logo {
        gap: 9px;
    }
    .site-logo__mark {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
    .site-logo__japan,
    .site-logo__event-finder {
        font-size: 21px;
    }

    .site-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px 18px;
        border-top: 1px solid var(--jef-border);
        border-bottom: 1px solid var(--jef-border);
        background: #fff;
        box-shadow: 0 14px 28px rgba(25,50,74,.10);
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav ul {
        width: min(100%, var(--jef-container));
        margin: 0 auto;
        display: grid;
        gap: 0;
    }
    .site-nav li + li {
        border-top: 1px solid #eef0f2;
    }
    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-size: 17px;
        font-weight: 700;
    }
    .site-nav a::after {
        display: none;
    }

    body.jef-menu-open {
        overflow: hidden;
    }

    .event-grid { grid-template-columns: 1fr; }
    .event-finder { grid-template-columns: 1fr; }
}

/* Event detail v1 */
.event-detail { background: #fff; }
.event-hero { padding: 56px 0 64px; border-bottom: 1px solid var(--jef-border); background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%); }
.event-hero__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(380px, .78fr); gap: 48px; align-items: center; }
.event-hero--no-image .event-hero__grid { grid-template-columns: minmax(0, 820px); }
.event-hero__media { min-width: 0; }
.event-hero__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.photo-credit { margin: 8px 0 0; color: var(--jef-muted); font-size: .78rem; }
.event-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.event-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; line-height: 1.2; }
.event-badge--category { background: #f3f4f6; color: #374151; }
.event-badge--confirmed { background: #e9f7ef; color: #17643a; }
.event-badge--expected { background: #fff4db; color: #915f00; }
.event-badge--cancelled { background: #fdecec; color: #a52a2a; }
.event-badge--past { background: #eef1f4; color: #53606e; }
.event-title { margin: 0; font-size:clamp(2rem, 3.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.event-name-ja { margin: 10px 0 0; color: #475467; font-size: 1rem; }
.event-subtitle { margin: 14px 0 0; color: var(--jef-muted); font-size: 1.05rem; }
.event-hero__facts { display: grid; gap: 11px; margin: 28px 0 0; }
.event-hero__facts > div { display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: baseline; }
.event-hero__facts dt { color: var(--jef-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-hero__facts dd { margin: 0; font-weight: 680; }
.event-hero__cta { margin-top: 26px; }
.event-alert { margin: 20px 0 0; padding: 14px 16px; border-left: 3px solid var(--jef-primary); border-radius: 6px; background: #fff8f6; }
.event-alert--expected { border-left-color: #d79b24; background: #fff8e8; color: #725016; }
.event-detail__body { padding-top: 72px; padding-bottom: 24px; }
.event-content-section { margin: 0 auto; padding: 0 0 88px; }
.event-content-section > h2, .event-two-column h2, .hotel-cta h2, .official-info h2 { margin: 0 0 26px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.02em; }
.event-intro { max-width: none; margin-left: 0; }
.event-intro .event-prose { font-size: 1.14rem; line-height: 1.85; }
.event-prose p { margin: 0 0 1em; }
.event-prose p:last-child { margin-bottom: 0; }
.glance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; background: var(--jef-border); }
.info-tile { min-height: 128px; padding: 24px; background: #fff; }
/* At a Glance: avoid visible empty grid cells when the number of items is below six. */
@media (min-width: 801px) {
    .glance-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .glance-grid--5 > .info-tile:nth-child(-n+3) { grid-column: span 2; }
    .glance-grid--5 > .info-tile:nth-child(n+4) { grid-column: span 3; }
    .glance-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .glance-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .glance-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .glance-grid--1 { grid-template-columns: 1fr; }
}
.info-tile__label, .meta-label { display: block; margin-bottom: 7px; color: var(--jef-muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.info-tile strong { display: block; font-size: 1rem; line-height: 1.45; }
.section-note { margin: 16px 0 0; color: var(--jef-muted); }
.access-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.access-card { padding: 28px; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; }
.access-card h3 { margin: 0 0 5px; font-size: 1.25rem; }
.access-address { margin: 0 0 20px; color: var(--jef-muted); }
.button--secondary { border: 1px solid #cdd3da; background: #fff; color: var(--jef-navy); }
.travel-list { display: grid; gap: 12px; }
.travel-card { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--jef-border); border-radius: 12px; background: var(--jef-warm); }
.travel-card__from { color: var(--jef-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.travel-card strong { font-size: 1.08rem; }
.travel-card__level { margin-top: 3px; color: var(--jef-primary); font-size: .84rem; font-weight: 700; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.highlight-card { overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; }
.highlight-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.highlight-card__body { padding: 20px; }
.highlight-card__body h3 { margin: 0 0 8px; font-size: 1.08rem; }
.highlight-card__body p { margin: 0; color: #475467; }
.highlight-card--text-only { min-height: 180px; background: var(--jef-warm); }
.highlight-card--text-only .highlight-card__body { padding: 26px; }
.event-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.stack-list { overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; }
.stack-list__item { padding: 18px 20px; border-bottom: 1px solid var(--jef-border); background: #fff; }
.stack-list__item:last-child { border-bottom: 0; }
.stack-list__item span { display: block; margin-bottom: 3px; color: var(--jef-muted); font-size: .8rem; font-weight: 750; }
.stack-list__item strong { display: block; font-size: .96rem; line-height: 1.55; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nearby-card { overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; }
.nearby-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nearby-card__body { padding: 20px; }
.nearby-card__body h3 { margin: 0 0 7px; }
.nearby-card__body p { color: var(--jef-muted); }
.nearby-card__body a { color: var(--jef-primary); font-weight: 700; text-decoration: none; }
.hotel-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 42px; margin-bottom: 88px; border-radius: 14px; background: var(--jef-navy); color: #fff; }
.hotel-cta h2 { margin-bottom: 8px; color: #fff; }
.hotel-cta p { margin: 0; color: rgba(255,255,255,.78); }
.hotel-cta .eyebrow { color: #ffbaa9; }
.official-info { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 38px 42px; border-radius: 14px; background: var(--jef-warm); }
.official-info h2 { margin-bottom: 0; }
.official-info__list { margin: 0; }
.official-info__list > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 12px 0; border-bottom: 1px solid #dedbd4; }
.official-info__list > div:last-child { border-bottom: 0; }
.official-info__list dt { color: var(--jef-muted); font-size: .84rem; font-weight: 700; }
.official-info__list dd { margin: 0; font-weight: 650; }
.official-info__list a { color: var(--jef-primary); text-decoration: none; }

@media (max-width: 960px) {
    .event-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .event-hero__media { order: -1; }
    .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-layout, .event-two-column, .official-info { grid-template-columns: 1fr; }
    .highlight-grid, .nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .event-hero { padding: 0 0 42px; }
    .event-hero__grid { width: 100%; gap: 28px; }
    .event-hero__media { width: 100%; }
    .event-hero__image { border-radius: 0; aspect-ratio: 4 / 3; }
    .photo-credit { padding-inline: 20px; }
    .event-hero__content { width: min(calc(100% - 40px), var(--jef-container)); margin-inline: auto; }
    .event-hero--no-image .event-hero__grid { width: min(calc(100% - 40px), var(--jef-container)); }
    .event-hero--no-image .event-hero__content { width: 100%; }
    .event-title { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
    .event-hero__facts > div { grid-template-columns: 92px 1fr; gap: 12px; }
    .event-detail__body { padding-top: 52px; }
    .event-content-section { padding-bottom: 60px; }
    .glance-grid, .highlight-grid, .nearby-grid { grid-template-columns: 1fr; }
    .info-tile { min-height: auto; padding: 20px; }
    .event-two-column { gap: 50px; }
    .hotel-cta { align-items: flex-start; flex-direction: column; padding: 30px 26px; margin-bottom: 60px; }
    .official-info { padding: 30px 24px; gap: 24px; }
    .official-info__list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Photo credits */
.photo-credit {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #667085;
}
.photo-credit a,
.photo-credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-credits {
  border-top: 1px solid #e5e7eb;
  padding-top: 34px;
}
.photo-credits__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}
.photo-credits__list strong {
  color: #1f2933;
}

/* Search results v1 */
.results-page { background: #fff; }
.results-hero { padding: 46px 0 30px; background: linear-gradient(120deg, #fff 0%, #fbfaf7 62%, #f4efe6 100%); border-bottom: 1px solid var(--jef-border); }
.results-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.results-hero h1 { margin: 4px 0 10px; font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.search-summary { display: flex; flex-wrap: wrap; gap: 0; color: #475467; font-weight: 650; }
.search-summary span { display: inline-flex; align-items: center; }
.search-summary span + span::before { content: "•"; margin: 0 10px; color: #98a2b3; }
.results-edit-button { flex: 0 0 auto; }
.results-searchbar { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.1fr auto; gap: 10px; margin-top: 28px; padding: 14px; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgba(31, 41, 51, .05); }
.results-searchbar label { display: grid; gap: 4px; padding: 0 10px; border-right: 1px solid var(--jef-border); }
.results-searchbar label span { color: var(--jef-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.results-searchbar input, .results-searchbar select, .sort-form select { width: 100%; min-height: 38px; border: 0; background: transparent; color: var(--jef-text); font: inherit; }
.results-searchbar .button { align-self: stretch; min-height: 54px; }
.results-main { padding-top: 48px; }
.results-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 42px; align-items: start; }
.results-filters { position: sticky; top: 20px; padding: 24px; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; }
.filter-group { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--jef-border); }
.filter-group:last-of-type { margin-bottom: 16px; }
.filter-group h3 { margin: 0 0 12px; font-size: 1rem; }
.filter-radio, .filter-checkbox { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0; color: #475467; font-size: .92rem; cursor: pointer; }
.filter-radio input, .filter-checkbox input { margin-top: .27em; }
.results-filter-submit { width: 100%; }
.filter-reset { display: block; margin-top: 12px; color: var(--jef-muted); font-size: .86rem; text-align: center; }
.results-content { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.results-toolbar strong { font-size: 1.15rem; }
.dev-note { display: block; margin-top: 2px; color: var(--jef-muted); font-size: .78rem; }
.sort-form label { display: flex; align-items: center; gap: 10px; color: var(--jef-muted); font-size: .86rem; white-space: nowrap; }
.sort-form select { min-width: 150px; padding: 0 30px 0 10px; border: 1px solid var(--jef-border); border-radius: 8px; background: #fff; }
.results-list { display: grid; gap: 18px; }
.result-card { display: grid; grid-template-columns: minmax(210px, 34%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.result-card:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(31, 41, 51, .07); }
.result-card__image-link { min-height: 100%; text-decoration: none; }
.result-card__image { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.result-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #f6f4ef, #e8edf2); color: #667085; font-size: .82rem; font-weight: 700; }
.result-card__body { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; }
.result-card__topline { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.result-card__title { margin: 0 0 14px; font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.15; }
.result-card__title a { text-decoration: none; }
.result-card__facts { display: grid; gap: 6px; margin: 0; }
.result-card__facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.result-card__facts dt { color: var(--jef-muted); font-size: .77rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.result-card__facts dd { margin: 0; color: #344054; font-size: .92rem; font-weight: 600; }
.result-card__footer { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 18px; }
.result-card__button { min-height: 42px; padding-inline: 16px; }
.event-badge--officially-confirmed, .event-badge--confirmed { background: #e9f7ef; color: #17643a; }
.event-badge--expected { background: #fff4db; color: #915f00; }
.no-results-card { padding: 42px; border: 1px solid var(--jef-border); border-radius: 14px; background: var(--jef-warm); }
.no-results-card h2 { margin: 6px 0 10px; font-size: 2rem; }
.no-results-card p { max-width: 600px; margin: 0 0 20px; color: var(--jef-muted); }
.results-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.results-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--jef-border); border-radius: 8px; text-decoration: none; }
.results-pagination .current { background: var(--jef-navy); color: #fff; border-color: var(--jef-navy); }
.related-searches { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--jef-border); }
.related-searches h2 { margin: 0 0 18px; font-size: 1.65rem; }
.related-searches__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-searches__grid a { min-height: 88px; display: flex; align-items: flex-end; padding: 16px; border-radius: 10px; background: var(--jef-warm); text-decoration: none; font-weight: 700; }

@media (max-width: 1000px) {
    .results-searchbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .results-searchbar label { border-right: 0; }
    .results-searchbar .button { grid-column: 1 / -1; }
    .results-layout { grid-template-columns: 1fr; }
    .results-filters { position: static; }
    .related-searches__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .home-category-card span { font-size:23px; }
    .home-season-card strong,
    .home-base-card strong { font-size:21px; }
    .results-hero { padding: 32px 0 22px; }
    .results-hero__top { align-items: flex-start; flex-direction: column; }
    .results-edit-button { display: none; }
    .results-searchbar { grid-template-columns: 1fr; padding: 12px; }
    .results-searchbar label { padding: 0 6px; }
    .results-layout { gap: 24px; }
    .results-filters { padding: 20px; }
    .results-toolbar { align-items: flex-start; flex-direction: column; }
    .sort-form { width: 100%; }
    .sort-form label { justify-content: space-between; }
    .result-card { grid-template-columns: 1fr; }
    .result-card__image { aspect-ratio: 3 / 2; min-height: 0; }
    .result-card__body { padding: 18px; }
    .result-card__footer { justify-content: stretch; }
    .result-card__button { width: 100%; }
    .related-searches__grid { grid-template-columns: 1fr 1fr; }
}

/* Search results v2 refinements */
.search-summary { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.search-summary__item { display:grid; gap:1px; min-width:145px; padding:9px 12px; border:1px solid rgba(31,41,51,.08); border-radius:9px; background:rgba(255,255,255,.72); color:var(--jef-text); font-size:.9rem; font-weight:700; }
.search-summary__item small { color:var(--jef-muted); font-size:.62rem; line-height:1.2; letter-spacing:.07em; text-transform:uppercase; font-weight:800; }
.results-mobile-actions { display:none; }
.result-card__travel dd { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.result-card__travel dd strong { color:var(--jef-navy); font-weight:800; }
.travel-level { display:inline-flex; align-items:center; min-height:22px; padding:2px 7px; border-radius:999px; background:#f6f4ef; color:#8a3f2e; font-size:.68rem; font-weight:800; line-height:1.2; }
.no-results-actions { display:flex; flex-wrap:wrap; gap:10px; }

@media (max-width: 760px) {
    .search-summary { display:grid; grid-template-columns:1fr 1fr; width:100%; }
    .search-summary__item { min-width:0; }
    .results-main { padding-top:22px; }
    .results-mobile-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
    .results-mobile-actions .button { width:100%; min-height:44px; }
    .results-filters { scroll-margin-top:16px; }
    .sort-form { scroll-margin-top:16px; width:100%; }
    .sort-form label { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; }
    .sort-form select { max-width:180px; min-height:44px; border:1px solid var(--jef-border); border-radius:8px; padding:0 10px; background:#fff; }
    .result-card__facts > div { grid-template-columns:68px minmax(0,1fr); }
    .result-card__travel dd { align-items:flex-start; flex-direction:column; gap:4px; }
    .no-results-card { padding:28px 22px; }
    .no-results-actions { display:grid; grid-template-columns:1fr; }
    .no-results-actions .button { width:100%; }
}

@media (max-width: 480px) {
    .search-summary { grid-template-columns:1fr; }
}


/* Search results v3: compact mobile filter/sort controls */
@media (max-width: 760px) {
    .search-summary__item { gap: 4px; padding: 10px 12px; }
    .search-summary__item small { display: block; margin-bottom: 1px; }

    .results-filters {
        display: none;
        width: 100%;
        margin: 0 0 4px;
    }
    .results-filters.is-open { display: block; }

    .results-toolbar .sort-form {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid var(--jef-border);
        border-radius: 10px;
        background: #fff;
    }
    .results-toolbar .sort-form.is-open { display: block; }

    .results-mobile-actions .button[aria-expanded="true"] {
        border-color: var(--jef-navy);
        background: var(--jef-navy);
        color: #fff;
    }

    .results-layout { gap: 18px; }
    .results-content { min-width: 0; }
    .results-toolbar { margin-bottom: 14px; }
}

/* Homepage v1 */
.home-page { background:#fff; }
.home-hero { padding:46px 0 52px; background:linear-gradient(120deg,#fff 0%,#fbfaf7 58%,#f5efe5 100%); border-bottom:1px solid var(--jef-border); }
.home-hero__grid { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(400px,.94fr); gap:48px; align-items:center; }
.home-hero__content h1 { max-width:760px; margin:8px 0 18px; font-size:clamp(2.6rem,4.7vw,4.8rem); line-height:1.01; letter-spacing:-.04em; }
.home-hero__lead { max-width:680px; margin:0 0 28px; color:#475467; font-size:1.08rem; }
.home-finder { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; border:1px solid var(--jef-border); border-radius:14px; background:#fff; box-shadow:0 10px 34px rgba(31,41,51,.07); }
.home-finder label { display:grid; gap:5px; padding:9px 11px; border:1px solid #eef0f2; border-radius:9px; }
.home-finder label:nth-child(5) { grid-column:1 / 2; }
.home-finder label span { color:var(--jef-muted); font-size:.7rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.home-finder input,.home-finder select { width:100%; min-height:36px; border:0; background:transparent; color:var(--jef-text); font:inherit; }
.home-finder__submit { grid-column:2 / 3; align-self:stretch; min-height:58px; font-size:20px; }
.home-hero__month-link { margin:16px 4px 0; color:var(--jef-muted); font-size:.9rem; }
.home-hero__month-link a,.home-text-link { color:var(--jef-primary); font-weight:750; text-decoration:none; }
.home-hero__visual { min-width:0; }
.home-hero__image-link {
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 24px 54px rgba(25,50,74,.16);
    background:#16283a;
}
.home-hero__image-link::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(8,21,33,0) 42%, rgba(8,21,33,.24) 62%, rgba(8,21,33,.88) 100%);
    pointer-events:none;
}
.home-hero__image {
    display:block;
    width:100%;
    aspect-ratio:4 / 5;
    object-fit:cover;
    transition:transform .35s ease;
}
.home-hero__image-link:hover .home-hero__image { transform:scale(1.018); }
.home-hero__image-caption {
    position:absolute;
    z-index:1;
    left:0;
    right:0;
    bottom:0;
    display:grid;
    gap:7px;
    padding:38px 28px 28px;
    color:#fff;
}
.home-hero__image-caption small {
    width:max-content;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.09em;
    line-height:1;
    text-transform:uppercase;
    backdrop-filter:blur(6px);
}
.home-hero__image-caption strong {
    max-width:95%;
    font-size:clamp(1.55rem,2.4vw,2.3rem);
    line-height:1.08;
    letter-spacing:-.025em;
}
.home-hero__image-meta {
    color:rgba(255,255,255,.82);
    font-size:.9rem;
    font-weight:650;
}
.home-hero__visual-placeholder { display:grid; place-items:end start; aspect-ratio:4 / 5; padding:28px; border-radius:16px; background:radial-gradient(circle at 75% 15%,#f3b48f 0,transparent 34%),linear-gradient(145deg,#19324a,#b74535 72%,#f0c98f); color:#fff; font-size:1.05rem; font-weight:800; box-shadow:0 18px 44px rgba(25,50,74,.12); }
.home-section__header { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:28px; }
.home-section__header h2 { margin:5px 0 4px; font-size:clamp(1.6rem, 2.6vw, 2.5rem); line-height:1.1; letter-spacing:-.025em; }
.home-section__header p { margin:0; color:var(--jef-muted); }
.home-section--warm { background:var(--jef-warm); }
.home-event-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.home-event-card { overflow:hidden; border:1px solid var(--jef-border); border-radius:12px; background:#fff; }
.home-event-card__image-link { display:block; text-decoration:none; }
.home-event-card__image { width:100%; aspect-ratio:3 / 2; object-fit:cover; }
.home-event-card__placeholder { display:grid; place-items:center; background:linear-gradient(135deg,#f6f4ef,#e8edf2); color:#667085; font-size:.78rem; font-weight:700; }
.home-event-card__body { padding:16px; }
.home-event-card__badges { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:9px; }
.home-event-card__body h3 { margin:0 0 7px; font-size:1.08rem; line-height:1.3; }
.home-event-card__body h3 a { text-decoration:none; }
.home-event-card__body p { margin:0; color:var(--jef-muted); font-size:.88rem; }
.home-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.home-category-card { position:relative; display:flex; min-height:178px; flex-direction:column; justify-content:flex-end; overflow:hidden; padding:22px; border-radius:12px; color:#fff; text-decoration:none; background:linear-gradient(135deg,#19324a,#825249); }
.home-category-card::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.28),transparent 34%); }
.home-category-card > * { position:relative; }
.home-category-card span { font-size:23px; font-weight:800; }
.home-category-card small { max-width:260px; margin-top:4px; color:rgba(255,255,255,.78); font-size:.86rem; }
.home-category-card--2 { background:linear-gradient(135deg,#19324a,#7b2841); }
.home-category-card--3 { background:linear-gradient(135deg,#7f5766,#e0a9b7); }
.home-category-card--4 { background:linear-gradient(135deg,#6d3c24,#bc7744); }
.home-category-card--5 { background:linear-gradient(135deg,#304962,#91adc2); }
.home-category-card--6 { background:linear-gradient(135deg,#273b66,#6f57a4); }
.home-season-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.home-season-card { display:grid; align-content:end; min-height:180px; padding:22px; border:1px solid var(--jef-border); border-radius:12px; background:linear-gradient(180deg,#fff 0%,#f7f4ef 100%); text-decoration:none; }
.home-season-card strong { font-size:23px; }
.home-season-card span { margin-top:4px; color:var(--jef-muted); font-size:.9rem; }
.home-section--navy { background:var(--jef-navy); color:#fff; }
.home-section__header--light p { color:rgba(255,255,255,.7); }
.home-section__header--light .eyebrow { color:#ffbaa9; }
.home-base-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.home-base-card { display:grid; gap:6px; min-height:160px; align-content:end; padding:22px; border:1px solid #3a5369; border-radius:12px; background:rgba(255,255,255,.055); color:#fff; text-decoration:none; }
.home-base-card strong { font-size:23px; }
.home-base-card span { color:rgba(255,255,255,.7); font-size:.88rem; }
.home-base-card em { margin-top:10px; color:#ffbaa9; font-size:.82rem; font-style:normal; font-weight:800; }
.home-benefit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.home-benefit { padding:24px; border:1px solid var(--jef-border); border-radius:12px; }
.home-benefit > span { display:inline-grid; place-items:center; width:34px; height:34px; margin-bottom:18px; border-radius:50%; background:#fff1ed; color:var(--jef-primary); font-size:.76rem; font-weight:800; }
.home-benefit strong { display:block; margin-bottom:7px; font-size:1.05rem; }
.home-benefit p { margin:0; color:var(--jef-muted); font-size:.9rem; }
.home-final-cta { padding:54px 0; background:var(--jef-warm); }
.home-final-cta__inner { display:flex; align-items:center; justify-content:space-between; gap:32px; }
.home-final-cta h2 { max-width:720px; margin:5px 0 0; font-size:clamp(1.55rem, 7vw, 2rem); line-height:1.08; letter-spacing:-.03em; }

@media (max-width:1000px) {
    .home-hero__grid { grid-template-columns:1fr; }
    .home-hero__visual { max-width:760px; }
    .home-hero__image,.home-hero__visual-placeholder { aspect-ratio:16 / 9; }
    .home-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-benefit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
    .home-finder__submit { font-size:19px; }
    .home-hero { padding:34px 0 44px; }
    .home-hero__content h1 { font-size:clamp(2.7rem,12vw,4.1rem); }
    .home-finder { grid-template-columns:1fr; padding:12px; }
    .home-finder label:nth-child(5),.home-finder__submit { grid-column:auto; }
    .home-hero__visual { order:-1; }
    .home-hero__image,.home-hero__visual-placeholder { aspect-ratio:4 / 3; }
    .home-section__header { align-items:flex-start; flex-direction:column; gap:10px; }
    .home-event-grid { grid-template-columns:1fr 1fr; gap:14px; }
    .home-category-grid { grid-template-columns:1fr 1fr; gap:12px; }
    .home-category-card { min-height:150px; padding:18px; }
    .home-season-grid { grid-template-columns:1fr 1fr; gap:12px; }
    .home-base-grid { grid-template-columns:1fr 1fr; gap:12px; }
    .home-benefit-grid { grid-template-columns:1fr; }
    .home-final-cta__inner { align-items:flex-start; flex-direction:column; }
}

@media (max-width:520px) {
    .home-event-grid { grid-template-columns:1fr; }
    .home-category-card { min-height:132px; }
    .home-season-card { min-height:145px; padding:18px; }
    .home-base-grid { grid-template-columns:1fr; }
}

/* Homepage v2: dynamic imagery + Local Picks */
.home-category-card,.home-season-card,.home-base-card { background-size:cover; background-position:center; }
.home-category-card--image::after,.home-season-card--image::after,.home-base-card--image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,21,31,.06) 18%,rgba(10,21,31,.82) 100%); pointer-events:none; }
.home-category-card--image::before { background:linear-gradient(180deg,rgba(10,21,31,.05),rgba(10,21,31,.2)); }
.home-category-card--image > *,.home-season-card--image > *,.home-base-card--image > * { position:relative; z-index:2; }
.home-season-card,.home-base-card { position:relative; overflow:hidden; }
.home-season-card--image { color:#fff; border-color:transparent; }
.home-season-card--image span { color:rgba(255,255,255,.84); }
.home-base-card--image { border-color:#3a5369; box-shadow:none; }
.home-base-card--image span { color:rgba(255,255,255,.84); }
.home-local-picks { background:#fff; }
.home-local-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.home-local-card { overflow:hidden; border:1px solid var(--jef-border); border-radius:12px; background:#fff; }
.home-local-card__image-link { position:relative; display:block; text-decoration:none; }
.home-local-card__image { width:100%; aspect-ratio:3 / 2; object-fit:cover; }
.home-local-card__placeholder { display:grid; place-items:center; background:linear-gradient(135deg,#f0ece5,#dce6ec); color:#667085; font-weight:800; }
.home-local-card__badge { position:absolute; top:14px; left:14px; padding:7px 10px; border-radius:999px; background:rgba(25,50,74,.92); color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.025em; }
.home-local-card__body { padding:18px; }
.home-local-card__body h3 { margin:0 0 8px; font-size:1.18rem; }
.home-local-card__body h3 a { text-decoration:none; }
.home-local-card__body p { margin:0 0 5px; color:var(--jef-muted); font-size:.88rem; }
.home-local-card__body > span { color:#475467; font-size:.88rem; }
.home-local-empty { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:30px; border:1px solid var(--jef-border); border-radius:14px; background:linear-gradient(120deg,#fff 0%,#f8f5ef 100%); }
.home-local-empty strong { display:block; margin-bottom:6px; font-size:1.15rem; }
.home-local-empty p { max-width:760px; margin:0; color:var(--jef-muted); }

@media (max-width:760px) {
    .home-local-grid { grid-template-columns:1fr; gap:14px; }
    .home-local-empty { align-items:flex-start; flex-direction:column; gap:18px; }
}

/* Event detail: keep related event cards at a readable width even when only 1–2 items exist. */
@media (min-width: 901px) {
    body.single-event .event-grid {
        grid-template-columns: repeat(3, minmax(280px, 320px));
        justify-content: start;
    }

    /* More Events Nearby: fill available width when exactly 3 cards exist. */
    body.single-event .event-grid:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    body.single-event .event-grid:has(> :nth-child(3):last-child) .result-card {
        max-width: none;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    body.single-event .event-grid {
        grid-template-columns: repeat(2, minmax(260px, 320px));
        justify-content: start;
    }
}

@media (max-width: 700px) {
    body.single-event .event-grid {
        grid-template-columns: 1fr;
    }
}


/* Event detail: More Events Nearby uses vertical cards, not search-result horizontal cards. */
body.single-event .event-grid .result-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
}

body.single-event .event-grid .result-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
}

body.single-event .event-grid .result-card__image,
body.single-event .event-grid .result-card__placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.single-event .event-grid .result-card__body {
    width: 100%;
    min-width: 0;
}

body.single-event .event-grid .result-card__title {
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 700px) {
    body.single-event .event-grid .result-card {
        max-width: none;
    }
}


/* v19 fix: actual media wrapper is .result-card__image-link */
body.single-event .event-grid .result-card__image-link {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex: 0 0 auto;
}

body.single-event .event-grid .result-card__image-link .result-card__image,
body.single-event .event-grid .result-card__image-link .result-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
}

body.single-event .event-grid .result-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 18px;
}

body.single-event .event-grid .result-card__title {
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

body.single-event .event-grid .result-card__facts > div {
    grid-template-columns: 68px minmax(0, 1fr);
}

body.single-event .event-grid .result-card__footer {
    margin-top: 14px;
    padding-top: 0;
}



/* Event Gallery */
.event-section-heading { margin-bottom: 24px; }
.event-section-heading h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.02em; }
.event-section-heading p { margin: 0; color: var(--jef-muted); }
.event-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 12px;
}
.event-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eef1f4;
}
.event-gallery__item--1 {
    grid-column: span 2;
    grid-row: span 2;
}
.event-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 800px) {
    .event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 9px;
    }
    .event-gallery__item--1 {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16 / 10;
        height: auto;
    }
    .event-gallery__item--1 .event-gallery__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
    .event-gallery { grid-auto-rows: 128px; }
}


/* Dynamic card counts: What to Expect */
@media (min-width: 801px) {
    .highlight-grid {
        display: grid;
        gap: 22px;
    }
    .highlight-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .highlight-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .highlight-grid--2,
    .highlight-grid--1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .highlight-grid,
    .highlight-grid--4,
    .highlight-grid--3,
    .highlight-grid--2,
    .highlight-grid--1 {
        grid-template-columns: 1fr;
    }
}

/* Dynamic card counts: Event Gallery */
@media (min-width: 801px) {
    .event-gallery {
        display: grid;
        gap: 12px;
        grid-auto-rows: auto;
    }

    /* 6 images: three equal-width columns in two rows. */
    .event-gallery--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .event-gallery--6 .event-gallery__item {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    /* 7 images: three columns in row 1, four smaller columns in row 2. */
    .event-gallery--7 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .event-gallery--7 .event-gallery__item {
        grid-column: span 4;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }
    .event-gallery--7 .event-gallery__item:nth-child(n + 4) {
        grid-column: span 3;
    }

    /* 5 images: featured large image + four supporting images */
    .event-gallery--5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .event-gallery--5 .event-gallery__item {
        aspect-ratio: 4 / 3;
    }
    .event-gallery--5 .event-gallery__item--1 {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
        min-height: 100%;
    }

    /* 4 images: 2 x 2 */
    .event-gallery--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .event-gallery--4 .event-gallery__item {
        aspect-ratio: 16 / 10;
    }
    .event-gallery--4 .event-gallery__item--1 {
        grid-column: auto;
        grid-row: auto;
    }

    /* 3 images: 3 columns */
    .event-gallery--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .event-gallery--3 .event-gallery__item {
        aspect-ratio: 4 / 3;
    }
    .event-gallery--3 .event-gallery__item--1 {
        grid-column: auto;
        grid-row: auto;
    }

    /* 2 images: 2 columns */
    .event-gallery--2,
    .event-gallery--1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .event-gallery--2 .event-gallery__item,
    .event-gallery--1 .event-gallery__item {
        aspect-ratio: 16 / 10;
    }
    .event-gallery--2 .event-gallery__item--1,
    .event-gallery--1 .event-gallery__item--1 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Mobile gallery: content-sized rows so images can never overlap */
@media (max-width: 800px) {
    .event-gallery,
    .event-gallery--5,
    .event-gallery--4,
    .event-gallery--3,
    .event-gallery--2,
    .event-gallery--1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 9px;
    }

    .event-gallery__item,
    .event-gallery--5 .event-gallery__item,
    .event-gallery--4 .event-gallery__item,
    .event-gallery--3 .event-gallery__item,
    .event-gallery--2 .event-gallery__item,
    .event-gallery--1 .event-gallery__item {
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .event-gallery--5 .event-gallery__item--1 {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 10;
    }

    .event-gallery__img,
    .event-gallery__item--1 .event-gallery__img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
}


/* Homepage hero featured visual polish */
@media (max-width: 1000px) {
    .home-hero__grid {
        grid-template-columns:minmax(0,1fr) minmax(340px,.86fr);
        gap:32px;
    }
    .home-hero__image-caption {
        padding:32px 22px 22px;
    }
}
@media (max-width: 800px) {
    .home-hero__visual {
        width:100%;
    }
    .home-hero__image-link,
    .home-hero__visual-placeholder {
        border-radius:14px;
    }
    .home-hero__image {
        aspect-ratio:4 / 5;
    }
    .home-hero__image-caption {
        padding:34px 20px 20px;
        gap:6px;
    }
    .home-hero__image-caption strong {
        font-size:clamp(1.5rem,7vw,2.05rem);
    }
    .home-hero__image-meta {
        font-size:.86rem;
    }
}

/* Homepage hero: background-style featured visual */
.home-hero {
    position: relative;
    overflow: hidden;
    background: #fbfaf7;
}
.home-hero .container.home-hero__grid {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 570px;
}
.home-hero__content {
    position: relative;
    z-index: 4;
    width: 56%;
    max-width: 680px;
    padding-right: 34px;
}
.home-hero__content h1 {
    max-width: 690px;
    margin: 8px 0 16px;
    font-size: clamp(2.45rem, 4.25vw, 4.35rem);
    line-height: 1.015;
    letter-spacing: -.04em;
}

/* Photo extends well underneath the left content area. */
.home-hero__visual {
    position: absolute;
    z-index: 1;
    top: -56px;
    bottom: -64px;
    right: calc((100vw - min(100vw, var(--jef-container))) / -2);
    width: 81%;
    min-width: 0;
    margin: 0;
}
.home-hero__image-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    transform: none;
}

/* Warm blend only; no dark overlay. Shorter blend range for a sharper hero split. */
.home-hero__image-stage::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 48%;
    background: linear-gradient(
        90deg,
        #fbfaf7 0%,
        rgba(251,250,247,.995) 18%,
        rgba(251,250,247,.94) 34%,
        rgba(251,250,247,.72) 52%,
        rgba(251,250,247,.38) 70%,
        rgba(251,250,247,.12) 86%,
        rgba(251,250,247,0) 100%
    );
    pointer-events: none;
}
.home-hero__image-fade {
    display: none;
}

.home-hero__featured-card {
    position: absolute;
    z-index: 3;
    right: 34px;
    bottom: 28px;
    width: min(390px, calc(100% - 270px));
    display: grid;
    gap: 7px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: rgba(12,28,42,.48);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}
.home-hero__featured-card:hover {
    transform: translateY(-2px);
    background: rgba(12,28,42,.62);
}
.home-hero__featured-card small {
    width: max-content;
    color: rgba(255,255,255,.8);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-hero__featured-card strong {
    font-size:clamp(1.05rem, 1.35vw, 1.4rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.home-hero__image-meta {
    color: rgba(255,255,255,.82);
    font-size: .88rem;
    font-weight: 650;
}
.home-hero__featured-link {
    margin-top: 2px;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}
.home-hero__visual-placeholder {
    min-height: 100%;
    height: 100%;
    border-radius: 0;
}

@media (max-width: 1100px) and (min-width: 801px) {
    .home-hero .container.home-hero__grid {
        min-height: 550px;
    }
    .home-hero__content {
        width: 58%;
        padding-right: 28px;
    }
    .home-hero__visual {
        width: 78%;
        right: -24px;
        bottom: -64px;
    }
    .home-hero__image-stage::before {
        width: 48%;
    }
    .home-hero__featured-card {
        right: 22px;
        bottom: 24px;
        width: min(335px, calc(100% - 225px));
    }
}

/* Mobile: full-bleed visual attaches directly below the header. */
@media (max-width: 800px) {
    .home-hero {
        padding-top: 0;
        overflow: hidden;
    }
    .home-hero .container.home-hero__grid {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0;
    }
    .home-hero__visual {
        position: relative;
        order: -1;
        top: auto;
        bottom: auto;
        right: auto;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .home-hero__image-stage {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 0;
        overflow: hidden;
    }
    .home-hero__image {
        height: 100%;
        object-position: center;
    }
    .home-hero__image-stage::before,
    .home-hero__image-fade {
        display: none;
    }
    .home-hero__featured-card {
        left: 16px;
        right: 16px;
        bottom: 14px;
        width: auto;
        padding: 10px 12px 10px;
        border-radius: 10px;
        background: rgba(12,28,42,.50);
        display: grid;
        grid-template-columns: minmax(0, 1fr) 3.2rem;
        grid-template-areas:
            'eyebrow eyebrow'
            'title link'
            'meta link';
        column-gap: 10px;
        row-gap: 4px;
        align-items: end;
    }
    .home-hero__featured-card small {
        grid-area: eyebrow;
        font-size: .58rem;
        letter-spacing: .08em;
    }
    .home-hero__featured-card strong {
        grid-area: title;
        font-size: clamp(.96rem, 4.25vw, 1.18rem);
        line-height: 1.08;
    }
    .home-hero__image-meta {
        grid-area: meta;
        font-size: .78rem;
        line-height: 1.25;
    }
    .home-hero__featured-link {
        grid-area: link;
        align-self: end;
        justify-self: end;
        width: 100%;
        margin-top: 0;
        padding-right: 2px;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.05;
        font-size: 0;
        white-space: normal;
    }

    .home-hero__featured-link::before {
        content: "View\A event\A →";
        display: block;
        white-space: pre;
        font-size: .68rem;
        line-height: 1.05;
    }
    .home-hero__featured-link::first-line {
        line-height: 1.05;
    }
    .home-hero__content {
        width: 100%;
        max-width: none;
        padding: 30px 0 0;
    }
    .home-hero__content h1 {
        font-size: clamp(2.2rem, 9.5vw, 3.3rem);
        line-height: 1.03;
    }
    .home-hero__visual-placeholder {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }
}


/* Active search context */
.results-count-block { display: grid; gap: 5px; }
.results-context { margin: 0; color: var(--jef-muted); font-size: .9rem; line-height: 1.45; }
.results-context span { color: var(--jef-text); font-weight: 750; }


/* Search results v5: compact primary search form after filtering on mobile */
.results-search-toggle { display: none; }

@media (max-width: 760px) {
    .results-search-toggle {
        display: block;
        width: 100%;
        min-height: 46px;
        margin-top: 16px;
    }

    .results-searchbar.is-collapsed-mobile {
        display: none;
    }

    .results-search-toggle[aria-expanded="true"] {
        border-color: var(--jef-navy);
        background: var(--jef-navy);
        color: #fff;
    }
}

/* Hotel area affiliate disclosure */
.hotel-cta { flex-wrap: wrap; }
.hotel-cta__disclosure { width:100%; font-size: .76rem; line-height:1.5; color: rgba(255,255,255,.76); }


/* Hotel Stay CTA B-1: photo 35% / content 65% on desktop. */
body.single-event .hotel-cta.hotel-cta--image {
    display: grid;
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--jef-navy);
    color: #fff;
}
.hotel-cta--image .hotel-cta__media {
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}
.hotel-cta--image .hotel-cta__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}
.hotel-cta--image .hotel-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 32px clamp(24px, 3vw, 44px);
}
.hotel-cta--image .eyebrow {
    color: #ffbaa9;
    font-size: .83rem;
    letter-spacing: .04em;
}
.hotel-cta--image h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(1.7rem, 2.7vw, 2.5rem);
    line-height: 1.14;
    overflow-wrap: anywhere;
}
.hotel-cta--image p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    line-height: 1.6;
}
.hotel-cta--image .hotel-cta__button {
    min-height: 52px;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
    gap: 8px;
}
.hotel-cta--image .hotel-cta__button:hover {
    background: #c84030;
}
.hotel-cta--image .hotel-cta__disclosure {
    display: block;
    width: auto;
    margin-top: 14px;
    color: rgba(255,255,255,.74);
    font-size: .78rem;
    line-height: 1.5;
}
@media (max-width: 760px) {
    body.single-event .hotel-cta.hotel-cta--image {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 60px;
    }
    .hotel-cta--image .hotel-cta__media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .hotel-cta--image .hotel-cta__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hotel-cta--image .hotel-cta__content {
        align-items: stretch;
        padding: 24px 22px 26px;
    }
    .hotel-cta--image h2 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }
    .hotel-cta--image .hotel-cta__button {
        width: 100%;
    }
}

/* JEF08 STEP 8: travel base 3+4 layout and published-prefecture navigation */
.home-base-grid--secondary { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:16px; }
.home-base-grid--secondary .home-base-card { padding:18px; min-width:0; }
.home-base-grid--secondary .home-base-card strong { font-size:clamp(16px,1.5vw,21px); }
.home-base-grid--secondary .home-base-card span { font-size:.82rem; }
.home-prefectures { background:#fff; }
.home-prefecture-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.home-prefecture-card { display:flex; align-items:center; justify-content:center; min-height:48px; padding:10px 8px; border:1px solid var(--jef-border); border-radius:9px; text-align:center; text-decoration:none; font-size:.9rem; font-weight:700; color:var(--jef-navy); background:#fff; transition:border-color .15s ease,background .15s ease; }
.home-prefecture-card:hover,.home-prefecture-card:focus-visible { border-color:var(--jef-primary); background:var(--jef-warm); }
@media (max-width:1000px) {
  .home-base-grid--secondary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-prefecture-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .home-base-grid--primary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-prefecture-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:520px) {
  .home-base-grid--primary,.home-base-grid--secondary { grid-template-columns:1fr; }
  .home-prefecture-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* JEF08 STEP 8-12: section navigation and card legibility */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.home-prefecture-card { font-size: 1rem; }
@media (max-width: 700px) {
  .home-base-grid--secondary .home-base-card strong { font-size: 21px; }
}

/* JEF08 STEP 8-13: 9-column desktop / 3-column mobile prefecture links.
   Keep the previously approved 16px prefecture labels. */
.home-prefecture-grid { grid-template-columns:repeat(9,minmax(0,1fr)); gap:9px; }
.home-prefecture-card { min-width:0; padding-inline:5px; overflow-wrap:anywhere; }
@media (max-width:1150px) {
  .home-prefecture-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:800px) {
  .home-prefecture-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:520px) {
  .home-prefecture-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .home-prefecture-card { font-size:1rem; min-height:46px; padding:8px 3px; }
}

/* JEF08 STEP 8-13: restrained homepage hover effects for mouse/trackpad.
   Keyboard focus is visible; touchscreen scrolling is unaffected. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .home-category-card, .home-season-card, .home-base-card,
  .home-event-card, .home-local-card, .home-prefecture-card {
    transition:transform .27s cubic-bezier(.2,.75,.25,1),
               box-shadow .27s ease, border-color .27s ease,
               background-color .27s ease, filter .27s ease;
  }
  .home-category-card:hover, .home-season-card:hover, .home-base-card:hover {
    transform:translateY(-4px);
    box-shadow:0 15px 28px rgba(10,24,38,.19);
    filter:brightness(1.07);
  }
  .home-event-card:hover, .home-local-card:hover {
    transform:translateY(-4px);
    box-shadow:0 13px 28px rgba(20,40,60,.13);
    border-color:rgba(100,120,140,.42);
  }
  .home-event-card__image, .home-local-card__image {
    transition:transform .4s cubic-bezier(.2,.75,.25,1);
  }
  .home-event-card__image-link, .home-local-card__image-link { overflow:hidden; }
  .home-event-card:hover .home-event-card__image,
  .home-local-card:hover .home-local-card__image { transform:scale(1.035); }
  .home-prefecture-card:hover {
    transform:translateY(-3px);
    box-shadow:0 7px 16px rgba(20,40,60,.11);
  }
}
.home-category-card:focus-visible, .home-season-card:focus-visible,
.home-base-card:focus-visible, .home-prefecture-card:focus-visible,
.home-event-card a:focus-visible, .home-local-card a:focus-visible {
  outline:3px solid var(--jef-primary);
  outline-offset:3px;
}

/* JEF08 STEP 8-14: clear hover affordance for main Find Events search button. */
@media (hover:hover) and (pointer:fine) {
  .home-finder__submit { transition: filter .23s ease, box-shadow .23s ease, transform .23s ease; }
  .home-finder__submit:hover { filter:brightness(1.11); box-shadow:0 5px 16px rgba(20,40,60,.2); }
}
.home-finder__submit:focus-visible { outline:3px solid var(--jef-primary); outline-offset:3px; }

/* JEF08 STEP 8-16: Travel Base typography and homepage attribution. */
@media (min-width:801px) {
  .home-base-grid--primary .home-base-card strong { font-size:26px; line-height:1.2; text-shadow:0 2px 6px rgba(0,0,0,.6); }
  .home-base-grid--secondary .home-base-card strong { font-size:24px; line-height:1.2; text-shadow:0 2px 6px rgba(0,0,0,.6); }
}
@media (max-width:800px) {
  .home-base-grid--primary .home-base-card strong,
  .home-base-grid--secondary .home-base-card strong { font-size:25px; line-height:1.2; text-shadow:0 2px 6px rgba(0,0,0,.6); }
}
.home-photo-credits { background:#fff; padding-block:22px; }
.home-photo-credits__details { border-top:1px solid var(--jef-border,#e2e6eb); border-bottom:1px solid var(--jef-border,#e2e6eb); }
.home-photo-credits__details summary { cursor:pointer; padding:15px 5px; font-weight:750; color:var(--jef-navy,#1b344c); list-style:none; display:flex; align-items:center; justify-content:space-between; }
.home-photo-credits__details summary::-webkit-details-marker { display:none; }
.home-photo-credits__details[open] summary span { transform:rotate(180deg); }
.home-photo-credits__content { padding:0 5px 16px; font-size:.88rem; line-height:1.75; }
.home-photo-credits__content ul { padding-left:20px; margin:14px 0; }
.home-photo-credits__content li { margin:0 0 10px; overflow-wrap:anywhere; }
.home-photo-credits__placement,.home-photo-credits__note { color:#52677a; }
.home-photo-credits a { text-underline-offset:2px; }
.home-photo-credits summary:focus-visible { outline:3px solid var(--jef-primary,#d74a3b); outline-offset:3px; }

/* STEP 9-2: factual date notices, shared across cards and event details. */
.jef-date-alert { margin: 10px 0; padding: 10px 12px; border: 1px solid #d5a750; border-left: 4px solid #bc842b; border-radius: 7px; background: #fff7e5; color: #694711; font-size: .86rem; line-height: 1.55; }
.jef-date-alert strong { font-weight: 750; }

/* JEF10 A-2: compact event hero and three-column overview. */
.event-hero__location { margin: 12px 0 0; color: var(--jef-muted); font-size: .95rem; line-height: 1.5; }
.event-hero__location span { margin-right: 4px; color: var(--jef-primary); }
.event-overview { margin-top: 36px; }
.event-overview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--jef-border); border-radius: 12px; background: #fff; }
.event-overview__item { min-width: 0; padding: 23px 24px; }
.event-overview__item + .event-overview__item { border-left: 1px solid var(--jef-border); }
.event-overview__label { display: block; color: var(--jef-muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; margin-bottom: 12px; }
.event-overview__item strong { display: block; font-size: 1rem; line-height: 1.5; font-weight: 680; overflow-wrap: anywhere; }
.event-overview__item strong + strong { margin-top: 7px; }
.event-overview__note { margin: 16px 0 0; color: var(--jef-muted); line-height: 1.6; font-size: .92rem; }
.event-overview__note--important { color: #854335; }
@media (max-width: 700px) {
    .event-overview { margin-top: 30px; }
    .event-overview__grid { grid-template-columns: 1fr; }
    .event-overview__item { padding: 18px 20px; }
    .event-overview__item + .event-overview__item { border-left: 0; border-top: 1px solid var(--jef-border); }
}
@media (max-width: 640px) {
    .event-overview { width: min(calc(100% - 40px), var(--jef-container)); }
}


/* JEF10: Homepage UX trial – date cues, mobile discovery cards, Local Picks. */
.home-finder label:has(.home-date-control) { border-color:#e8d4c8; background:#fffcf9; }
.home-date-control { position:relative; display:block; min-width:0; height:36px; }
.home-finder .home-date-control input[type="date"] {
    position:relative; z-index:1; display:block; width:100%; height:36px;
    min-height:36px; margin:0; padding:0; background:transparent;
    font-size:16px; cursor:pointer;
}
.home-finder .home-date-control__hint {
    position:absolute; z-index:2; inset:0; display:flex; align-items:center; gap:9px;
    color:#735747; font-size:15px; font-weight:600; letter-spacing:normal; text-transform:none; pointer-events:none;
}
.home-date-control__hint svg { flex:0 0 auto; color:var(--jef-primary); }
.home-date-control:not(.has-value) input[type="date"] { color:transparent; }
.home-date-control:not(.has-value) input[type="date"]::-webkit-datetime-edit { color:transparent; }
.home-date-control:not(.has-value) input[type="date"]::-webkit-calendar-picker-indicator { opacity:0; }
.home-date-control.has-value .home-date-control__hint { display:none; }
.home-date-control.has-value input[type="date"] { color:var(--jef-text); }
.home-finder label:has(.home-date-control):focus-within { outline:2px solid var(--jef-primary); outline-offset:1px; }

/* Natural equal-height cards: the tallest card sets the row height. */
.home-event-grid { align-items:stretch; }
.home-event-card { display:flex; flex-direction:column; min-width:0; }
.home-event-card__body { display:flex; flex:1; flex-direction:column; min-width:0; }
.home-event-card__body > p { margin-top:auto; }
@media (max-width:760px) {
    .home-upcoming .home-event-grid {
        display:flex; align-items:stretch; gap:14px;
        overflow-x:auto; overflow-y:hidden;
        scroll-snap-type:x mandatory; overscroll-behavior-inline:contain;
        -webkit-overflow-scrolling:touch;
        padding:2px 20px 16px 0;
        scrollbar-width:thin;
    }
    .home-upcoming .home-event-card {
        flex:0 0 82%; scroll-snap-align:start;
    }
    .home-upcoming .home-event-card__image { aspect-ratio:16 / 10; }
    .home-local-grid { grid-template-columns:1fr; gap:12px; }
    .home-local-card { display:grid; grid-template-columns:minmax(105px,34%) minmax(0,1fr); align-items:stretch; }
    .home-local-card__image-link { height:100%; min-height:124px; }
    .home-local-card__image { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
    .home-local-card__body { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:13px 14px; }
    .home-local-card__body h3 { margin-bottom:5px; font-size:1rem; line-height:1.35; }
    .home-local-card__body p,.home-local-card__body > span { font-size:.8rem; line-height:1.4; }
    .home-local-card__badge { top:8px; left:8px; padding:4px 7px; font-size:.6rem; }
}
@media (max-width:390px) {
    .home-upcoming .home-event-card { flex-basis:84%; }
    .home-local-card { grid-template-columns:minmax(100px,35%) minmax(0,1fr); }
}


/* JEF10 homepage MVP refinement: responsive badges, swipe cue, section styling. */
.home-prefectures { background:var(--jef-warm); }
.home-upcoming__swipe-hint { display:none; }
@media (max-width:760px) {
    /* Keep category and status on a single line without reserving extra title height. */
    .home-upcoming .home-event-card__body { padding:13px 12px 15px; }
    .home-upcoming .home-event-card__badges { flex-wrap:nowrap; gap:5px; margin-bottom:9px; }
    .home-upcoming .home-event-card__badges .event-badge {
        flex:0 1 auto; min-width:0; min-height:23px; padding:4px 7px;
        font-size:.65rem; letter-spacing:-.015em; white-space:nowrap;
    }
    .home-upcoming .home-event-grid { padding-bottom:8px; }
    .home-upcoming__swipe-hint {
        display:block; margin:5px 0 0; text-align:center;
        color:var(--jef-muted); font-size:.8rem; font-weight:650;
    }
    /* Tighten the benefits section without changing desktop spacing. */
    .home-benefits { padding-top:42px; padding-bottom:44px; }
    .home-benefits .home-section__header { margin-bottom:16px; }
    .home-benefits .home-benefit-grid { gap:10px; }
    .home-benefits .home-benefit { padding:15px 17px; }
    .home-benefits .home-benefit > span {
        width:28px; height:28px; margin-bottom:8px; font-size:.69rem;
    }
    .home-benefits .home-benefit strong { margin-bottom:3px; font-size:1rem; }
    .home-benefits .home-benefit p { font-size:.86rem; line-height:1.5; }
}


/* JEF10: desktop native date picker / Firefox focus collision fix.
   Keep the mobile custom hint unchanged. */
@media (min-width: 761px) {
    /* Use the browser's calendar control at the right of the field. */
    .home-finder .home-date-control__hint svg { display:none; }
    .home-date-control:not(.has-value) input[type="date"]::-webkit-calendar-picker-indicator { opacity:1; }
    /* The native date segments become visible only while editing. */
    .home-date-control:focus-within .home-date-control__hint { display:none; }
    .home-date-control:not(.has-value):focus-within input[type="date"] { color:var(--jef-text); }
    .home-date-control:not(.has-value):focus-within input[type="date"]::-webkit-datetime-edit { color:var(--jef-text); }
    /* Reserve a comfortable click target for the picker affordance. */
    .home-date-control:not(.has-value) .home-date-control__hint { right:28px; }
}

/* Results sharing: sort and copy link, with a compact mobile layout. */
.results-toolbar__actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex:0 0 auto; }
.results-copy-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:8px 13px; border:1px solid var(--jef-border); border-radius:8px; background:#fff; color:var(--jef-navy); font:inherit; font-size:.86rem; font-weight:750; line-height:1.25; white-space:nowrap; cursor:pointer; transition:border-color .15s, background .15s; }
.results-copy-link:hover { border-color:var(--jef-navy); background:#f7f9fb; }
.results-copy-link:focus-visible { outline:3px solid var(--jef-primary); outline-offset:2px; }
.results-copy-link__icon { flex:0 0 auto; }
.results-copy-link__label--mobile { display:none; }
.results-copy-link.is-copied { border-color:#4f9270; color:#17643a; background:#f0faf4; }
@media (max-width:760px) {
    .results-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:12px; row-gap:10px; }
    .results-count-block { min-width:0; overflow-wrap:anywhere; }
    .results-toolbar__actions { min-width:0; }
    .results-copy-link { min-height:38px; padding:7px 10px; }
    .results-copy-link__label--desktop { display:none; }
    .results-copy-link__label--mobile { display:inline; }
    .results-toolbar .sort-form.is-open { grid-column:1 / -1; }
}
@media (max-width:360px) {
    .results-toolbar { column-gap:8px; }
    .results-copy-link { padding-inline:8px; }
}
@media (max-width:760px) {
    .results-toolbar__actions { display:contents; }
    .results-copy-link { grid-column:2; grid-row:1; justify-self:end; }
    .results-toolbar .sort-form.is-open { grid-column:1 / -1; grid-row:2; margin-top:0; }
}

/* JEF14: Nearby Experiences — smartphone-only horizontal swipe cards.
   Desktop/tablet grid and existing card content remain unchanged. */
@media (max-width: 640px) {
    .event-detail__body .nearby-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        padding: 2px 16% 12px 0;
        scrollbar-width: thin;
    }
    .event-detail__body .nearby-grid > .nearby-card {
        flex: 0 0 82%;
        min-width: 0;
        scroll-snap-align: start;
    }
    .event-detail__body .nearby-card__img {
        aspect-ratio: 16 / 10;
    }
    .event-detail__body .nearby-card__body {
        padding: 15px;
    }
    .event-detail__body .nearby-card__body h3 {
        font-size: 1.03rem;
        line-height: 1.35;
    }
    .event-detail__body .nearby-card__body p {
        font-size: .88rem;
        line-height: 1.5;
    }
}

/* JEF14: match the Upcoming Highlights swipe cue for Nearby Experiences. */
.nearby-experiences__swipe-hint { display: none; }
@media (max-width: 640px) {
    .event-detail__body .nearby-experiences__swipe-hint {
        display: block;
        margin: 5px 0 0;
        text-align: center;
        color: var(--jef-muted);
        font-size: .8rem;
        font-weight: 650;
    }
}


/* JEF19: Event Gallery swipe on smartphones only, matching Nearby Experiences.
   Keep the desktop/tablet masonry grids and single-image layout unchanged. */
.event-gallery__swipe-hint { display: none; }
@media (max-width: 640px) {
    .event-detail__body .event-gallery:not(.event-gallery--1) {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        padding: 2px 0 12px;
        scrollbar-width: thin;
    }
    .event-detail__body .event-gallery:not(.event-gallery--1) > .event-gallery__item {
        flex: 0 0 92%;
        min-width: 0;
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        scroll-snap-align: start;
    }
    .event-detail__body .event-gallery:not(.event-gallery--1) .event-gallery__img {
        display: block;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
    .event-detail__body .event-gallery__swipe-hint {
        display: block;
        margin: 5px 0 0;
        text-align: center;
        color: var(--jef-muted);
        font-size: .8rem;
        font-weight: 650;
    }
}

/* JEF21: A single Event Gallery image fills the content width on mobile/tablet.
   Galleries with 2-5 images keep their existing smartphone swipe behavior. */
@media (max-width: 800px) {
    .event-detail__body .event-gallery.event-gallery--1 {
        grid-template-columns: minmax(0, 1fr);
    }
    .event-detail__body .event-gallery.event-gallery--1 > .event-gallery__item {
        grid-column: 1 / -1;
    }
}


/* JEF23: Mobile results search UI refinements — scoped to results pages. */
.results-searchbar .results-date-field { border-color:#e8d4c8; background:#fffcf9; border-radius:9px; }
.results-searchbar .results-date-field:focus-within { outline:2px solid var(--jef-primary); outline-offset:1px; }
.results-searchbar .results-date-control { position:relative; display:block; height:36px; min-width:0; }
.results-searchbar .results-date-control input[type="date"] {
    position:relative; z-index:1; display:block; height:36px; min-height:36px;
    width:100%; margin:0; padding:0; background:transparent; font-size:16px; cursor:pointer;
}
.results-searchbar .results-date-control .home-date-control__hint {
    position:absolute; z-index:2; inset:0; display:flex; align-items:center; gap:9px;
    color:#735747; font-size:15px; font-weight:600; letter-spacing:normal;
    text-transform:none; pointer-events:none;
}
.results-searchbar .results-date-control .home-date-control__hint svg { flex:0 0 auto; color:var(--jef-primary); }
.results-searchbar .results-date-control:not(.has-value) input[type="date"] { color:transparent; }
.results-searchbar .results-date-control:not(.has-value) input[type="date"]::-webkit-datetime-edit { color:transparent; }
.results-searchbar .results-date-control:not(.has-value) input[type="date"]::-webkit-calendar-picker-indicator { opacity:0; }
.results-searchbar .results-date-control.has-value .home-date-control__hint { display:none; }
.results-searchbar .results-date-control.has-value input[type="date"] { color:var(--jef-text); }
@media (min-width:761px) {
    .results-searchbar .results-date-control .home-date-control__hint svg { display:none; }
    .results-searchbar .results-date-control:not(.has-value) input[type="date"]::-webkit-calendar-picker-indicator { opacity:1; }
    .results-searchbar .results-date-control:focus-within .home-date-control__hint { display:none; }
    .results-searchbar .results-date-control:not(.has-value):focus-within input[type="date"],
    .results-searchbar .results-date-control:not(.has-value):focus-within input[type="date"]::-webkit-datetime-edit { color:var(--jef-text); }
    .results-searchbar .results-date-control:not(.has-value) .home-date-control__hint { right:28px; }
}
@media (max-width:760px) {
    .results-hero__top { gap:8px; }
    .results-hero__top > div { width:100%; min-width:0; }
    .results-page .search-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; margin-top:10px; }
    .results-page .search-summary__item {
        display:flex; flex-direction:column; justify-content:center; gap:4px;
        min-width:0; min-height:58px; padding:9px 11px;
        overflow-wrap:anywhere; font-size:.82rem; line-height:1.3;
        border:1px solid #d9e0e8; border-radius:9px; background:#fff;
    }
    .results-page .search-summary__item::before { content:none; }
    .results-page .search-summary__item small { display:block; margin:0; font-size:.61rem; line-height:1.2; }
    .results-page .results-search-toggle {
        min-height:48px; margin-top:13px; border:1px solid var(--jef-navy);
        border-radius:9px; background:var(--jef-navy); color:#fff;
        font-weight:800; box-shadow:0 3px 9px rgba(20,39,60,.12);
    }
    .results-page .results-search-toggle[aria-expanded="true"] { background:#fff; color:var(--jef-navy); }
    .results-page .results-mobile-actions { gap:10px; }
    .results-page .results-mobile-actions .button {
        min-height:48px; border:1.5px solid #8295aa; border-radius:9px;
        background:#f1f5f9; color:var(--jef-navy); font-weight:800;
    }
    .results-page .results-mobile-actions .button[aria-expanded="true"] {
        border-color:var(--jef-navy); background:var(--jef-navy); color:#fff;
    }
    .results-searchbar .results-date-field { padding:9px 12px; border:1px solid #e8d4c8; }
}

/* JEF23 Rev3: match the homepage's desktop date cues on result pages.
   Mobile treatment from Rev1 remains unchanged. */
@media (min-width:761px) {
    .results-page .search-summary__item { column-gap:7px; }
    .results-page .search-summary__item > small { margin-right:2px; }
    .results-page .results-searchbar .results-date-field {
        border:1px solid #e8d4c8;
        border-radius:9px;
        background:#fffcf9;
        padding:9px 12px;
        outline:none;
    }
    .results-page .results-searchbar .results-date-field:focus-within {
        outline:2px solid var(--jef-primary);
        outline-offset:1px;
    }
    .results-page .results-searchbar .results-date-control {
        position:relative;
        display:block;
        height:36px;
    }
    .results-page .results-searchbar .results-date-control input[type="date"] {
        position:relative;
        z-index:1;
        display:block;
        width:100%;
        height:36px;
        min-height:36px;
        margin:0;
        padding:0;
        background:transparent;
        font-size:16px;
        cursor:pointer;
    }
    .results-page .results-searchbar .results-date-control .home-date-control__hint {
        position:absolute;
        z-index:2;
        inset:0 28px 0 0;
        display:flex;
        align-items:center;
        gap:9px;
        color:#735747;
        font-size:15px;
        font-weight:600;
        letter-spacing:normal;
        text-transform:none;
        pointer-events:none;
    }
    .results-page .results-searchbar .results-date-control .home-date-control__hint svg { display:none; }
    .results-page .results-searchbar .results-date-control.has-value .home-date-control__hint,
    .results-page .results-searchbar .results-date-control:focus-within .home-date-control__hint { display:none; }
    .results-page .results-searchbar .results-date-control:not(.has-value) input[type="date"] { color:transparent; }
    .results-page .results-searchbar .results-date-control:not(.has-value) input[type="date"]::-webkit-datetime-edit { color:transparent; }
    .results-page .results-searchbar .results-date-control:not(.has-value):focus-within input[type="date"],
    .results-page .results-searchbar .results-date-control:not(.has-value):focus-within input[type="date"]::-webkit-datetime-edit { color:var(--jef-text); }
    .results-page .results-searchbar .results-date-control:not(.has-value) input[type="date"]::-webkit-calendar-picker-indicator { opacity:1; }
    .results-page .results-searchbar .results-date-control.has-value input[type="date"] { color:var(--jef-text); }
}

/* JEF23 Rev4: keep travel-date ranges readable in narrow summary cards. */
.search-summary__date-mobile { display:none; }
@media (max-width:760px) {
    .results-page .search-summary__date-desktop { display:none; }
    .results-page .search-summary__date-mobile {
        display:block; white-space:nowrap; font-size:clamp(.69rem, 3.1vw, .82rem);
        letter-spacing:-.025em; line-height:1.4;
    }
    /* When a range spans two years, never squeeze or truncate the dates. */
    .results-page .search-summary__item--dates-wide { grid-column:1 / -1; }
    .results-page .search-summary__item--dates-wide .search-summary__date-mobile {
        white-space:normal; overflow-wrap:normal;
    }
}

/* JEF23 Rev5: ensure only the appropriate date label is shown.
   The legacy .search-summary span and span + span::before rules must not
   override these nested date spans. */
.results-page .search-summary .search-summary__date-mobile { display:none; }
.results-page .search-summary .search-summary__date-desktop::before,
.results-page .search-summary .search-summary__date-mobile::before { content:none; margin:0; }
@media (max-width:760px) {
    .results-page .search-summary .search-summary__date-desktop { display:none; }
    .results-page .search-summary .search-summary__date-mobile { display:block; }
}

/* JEF23 Rev7: safe inline HTML within What to Expect descriptions (all events). */
.highlight-card__body p small {
    display: block;
    margin-top: .55em;
    font-size: .82em;
    line-height: 1.5;
    color: #576579;
}

/* JEF26 Rev1: discourage casual saving of visible images only.
   Do not alter <img> URLs, SEO markup, links, scrolling, or selectable text. */
body img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}


/* JEF image provenance notes (Main / What / Event Gallery).
   Only annotated images receive layout adjustments; all other cards stay unchanged.
   Text sits directly below the image, without a badge or colored background. */
.jef-image-note {
    display: block;
    margin: 0;
    padding: 0 1px;
    border: 0;
    background: transparent;
    color: #666666;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}
.event-hero__media.jef-has-image-note .event-hero__image,
.highlight-card__image.jef-has-image-note .highlight-card__img {
    display: block;
}
/* The hero image's existing Photo Credit stays beneath this short note. */
@media (max-width: 800px) {
    .event-hero__media.jef-has-image-note > .jef-image-note {
        padding-right: 12px;
    }
}
/* Preserve each Gallery tile's existing dimensions, including the 5-image mosaic.
   The caption consumes only one short line inside that tile; no overlapping rows. */
.event-detail .event-gallery__item.jef-has-image-note {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}
.event-detail .event-gallery__item.jef-has-image-note > .event-gallery__visual {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eef1f4;
}
.event-detail .event-gallery__item.jef-has-image-note .event-gallery__visual > .event-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}
.event-detail .event-gallery__item.jef-has-image-note > .jef-image-note {
    flex: 0 0 auto;
}

/* JEF32 Main / What / Gallery optional short attribution, separate from image notes.
   Applied only when the field is populated; a shared What credit row prevents
   staggered card headings when only one What photo requires attribution. */
.jef-image-display-credit {
    display: block;
    margin: 0;
    padding: 0 1px;
    border: 0;
    background: transparent;
    color: #666666;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}
.highlight-grid.jef-has-display-credits .highlight-card__image > .jef-image-display-credit {
    min-height: 16px;
}
@media (max-width: 800px) {
    .event-hero__media > .jef-image-display-credit { padding-right: 12px; }
}
/* Gallery captions already use a flexible, fixed-tile image wrapper. */
.event-detail .event-gallery__item.jef-has-image-note > .jef-image-display-credit {
    flex: 0 0 auto;
}

/* JEF32 Nearby display credit Rev2: reserve an equal, compact credit row
   on EVERY photo card so headings stay aligned when only some have credits.
   No credit text is printed for empty fields; both PC cards and SP swipe
   cards retain the existing image ratios and body padding. */
.nearby-card__image {
    display: grid;
    grid-template-rows: auto 16px;
    min-width: 0;
}
.nearby-card__image > .nearby-card__img {
    display: block;
    width: 100%;
}
.nearby-card__display-credit {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0 1px;
    border: 0;
    background: transparent;
    color: #666666;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
