/* Hub & destination pages — see docs/BRAND.md */

.hub-page {
    background: var(--paper);
    padding-bottom: 4rem;
}

.hub-shell {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hub-page .breadcrumbs ol {
    color: #a8a29e;
}

.hub-page .breadcrumbs li:not(:last-child)::after {
    margin-left: .3rem;
    color: #d6d3d1;
}

.hub-page .breadcrumbs a {
    color: #a8a29e;
}

.hub-page .breadcrumbs a:hover {
    color: var(--accent);
}

.hub-page .breadcrumbs [aria-current="page"] {
    color: var(--muted);
    font-weight: 500;
}

/* ── Hero ───────────────────────────────────────────── */

.hub-hero {
    position: relative;
    min-height: 18rem;
    margin-bottom: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a4a42 0%, var(--accent) 55%, #128a7a 100%);
}

.hub-hero--compact {
    min-height: 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--border);
}

.hub-hero--compact .hub-hero__copy {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    color: var(--text);
}

.hub-hero--compact .hub-hero__eyebrow { color: var(--accent); }
.hub-hero--compact .hub-hero__title { color: var(--text); }
.hub-hero--compact .hub-hero__lead { color: var(--muted); }

.hub-hero--no-image {
    min-height: 0;
    background: linear-gradient(135deg, #0a4a42 0%, var(--accent) 100%);
}

.hub-hero__media {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
}

.hub-hero__overlay {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 18rem;
    background: linear-gradient(180deg, rgba(20, 18, 16, .15) 0%, rgba(20, 18, 16, .72) 100%);
}

/* Photo heroes: darker left panel + text shadow for busy skylines */
.hub-hero:has(.hub-hero__media) .hub-hero__overlay {
    background:
        linear-gradient(90deg, rgba(8, 10, 12, .88) 0%, rgba(8, 10, 12, .5) 42%, rgba(8, 10, 12, .12) 72%),
        linear-gradient(180deg, rgba(8, 10, 12, .1) 0%, rgba(8, 10, 12, .78) 100%);
}

.hub-hero:has(.hub-hero__media) .hub-hero__title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
}

.hub-hero:has(.hub-hero__media) .hub-hero__lead,
.hub-hero:has(.hub-hero__media) .hub-hero__eyebrow {
    text-shadow: 0 1px 14px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .35);
}

.hub-hero--no-image .hub-hero__overlay {
    min-height: 0;
    background: none;
}

.hub-hero__copy {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2rem 1.25rem 2.25rem;
    color: #fff;
}

.hub-hero__eyebrow {
    margin: 0 0 .5rem;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.hub-hero__title {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hub-hero__lead {
    max-width: 42rem;
    margin: .85rem 0 0;
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}

/* ── Sections ───────────────────────────────────────── */

.hub-section {
    margin-bottom: 3rem;
}

.hub-section__head {
    margin-bottom: 1.25rem;
}

.hub-section__head h2 {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.hub-section__head p {
    margin: .35rem 0 0;
    font-family: var(--sans);
    font-size: .92rem;
    color: var(--muted);
}

/* ── Cards ────────────────────────────────────────── */

.hub-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hub-cards--guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.hub-card:hover {
    border-color: var(--brand-primary-muted);
    box-shadow: 0 12px 32px rgba(13, 107, 95, .1);
    transform: translateY(-2px);
}

.hub-card--horizontal {
    flex-direction: row;
}

.hub-card--horizontal .hub-card__thumb {
    width: 8.5rem;
    min-height: 6.5rem;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.hub-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--accent-soft) center/cover no-repeat;
}

.hub-card__thumb--placeholder {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.hub-card__body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.05rem 1.1rem;
}

.hub-card__body time {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.hub-card__title {
    font-family: var(--sans);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    transition: color .15s;
}

.hub-card:hover .hub-card__title { color: var(--accent); }

.hub-card__excerpt {
    font-family: var(--sans);
    font-size: .84rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ── Destination grid & carousel ────────────────────── */

.hub-section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hub-carousel__controls {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.hub-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.hub-carousel__btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.hub-carousel__btn:disabled {
    opacity: .35;
    cursor: default;
}

.hub-carousel {
    position: relative;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}

.hub-carousel::before,
.hub-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 2.5rem;
    z-index: 1;
    pointer-events: none;
}

.hub-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--paper) 0%, transparent 100%);
}

.hub-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--paper) 0%, transparent 100%);
}

.hub-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: .25rem .25rem 1rem;
    scrollbar-width: none;
}

.hub-carousel__track::-webkit-scrollbar { display: none; }

.hub-carousel__track:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.hub-destinations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hub-destinations--compact {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.hub-destination {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}

.hub-destination:hover {
    box-shadow: 0 16px 40px rgba(13, 107, 95, .14);
    transform: translateY(-3px);
}

.hub-destination--slide {
    flex: 0 0 min(15.5rem, 78vw);
    scroll-snap-align: start;
    min-height: 19rem;
}

.hub-destination--tile {
    min-height: 14rem;
    border: 1px solid var(--border);
}

.hub-destination__img {
    position: absolute;
    inset: 0;
    background: var(--accent-soft) center/cover no-repeat;
    transition: transform .4s ease;
}

.hub-destination__img--fallback {
    background: linear-gradient(145deg, var(--accent) 0%, #0a4a42 100%);
}

.hub-destination:hover .hub-destination__img { transform: scale(1.06); }

.hub-destination__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .2rem;
    min-height: 100%;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0) 35%, rgba(20, 18, 16, .78) 100%);
}

.hub-destination__name {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -.01em;
}

.hub-destination--tile .hub-destination__name {
    font-size: 1.05rem;
}

.hub-destination__cta {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
}

.hub-destination:hover .hub-destination__cta { color: #fff; }

.hub-destination__meta {
    font-family: var(--sans);
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
}

.hub-section--destinations {
    margin-top: -1rem;
    padding-top: 2rem;
}

.hub-page--region .hub-section--destinations {
    margin-top: 0;
}

/* ── Tools strip ──────────────────────────────────── */

.hub-tools {
    margin-bottom: 3rem;
}

.hub-tool {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 72%);
    border: 1px solid var(--brand-primary-muted);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .2s, transform .2s;
}

.hub-tool:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(13, 107, 95, .14);
    transform: translateY(-2px);
}

.hub-tool:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hub-tool__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
}

.hub-tool__body {
    flex: 1;
    min-width: 0;
}

.hub-tool__label {
    display: block;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}

.hub-tool__title {
    display: block;
    margin-top: .2rem;
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    transition: color .15s;
}

.hub-tool:hover .hub-tool__title {
    color: var(--accent);
}

.hub-tool__text {
    display: block;
    margin-top: .3rem;
    font-family: var(--sans);
    font-size: .88rem;
    line-height: 1.45;
    color: var(--text-body);
}

.hub-tool__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1rem;
    font-family: var(--sans);
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    transition: background .15s, gap .15s;
}

.hub-tool:hover .hub-tool__action {
    background: var(--accent-hover);
    gap: .6rem;
}

@media (max-width: 640px) {
    .hub-tool {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hub-tool__action {
        width: 100%;
        justify-content: center;
        margin-top: .15rem;
    }
}

.hub-prose--compact {
    max-width: 46rem;
    font-size: 1.02rem;
}

.hub-section--region-extra {
    padding-top: 0;
    border-top: 0;
}

.hub-page--region .hub-hero {
    margin-bottom: 2rem;
}

/* ── Prose ────────────────────────────────────────── */

.hub-prose {
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-body);
}

.hub-prose--narrow {
    max-width: 40rem;
    margin: 0 auto;
}

.hub-prose h2,
.hub-prose h3 {
    font-family: var(--sans);
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: .75rem;
}

.hub-prose h2 { font-size: 1.45rem; font-weight: 700; }
.hub-prose h3 { font-size: 1.15rem; font-weight: 600; }

.hub-prose p,
.hub-prose ul,
.hub-prose ol {
    margin: 0 0 1.1rem;
}

.hub-prose ul,
.hub-prose ol {
    padding-left: 1.35rem;
}

.hub-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.hub-prose a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--link-underline);
}

.hub-prose a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

.hub-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
}

.hub-prose th,
.hub-prose td {
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.hub-prose th {
    font-family: var(--sans);
    font-weight: 600;
    background: var(--accent-soft);
}

.hub-section--prose {
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

.hub-section--planning {
    padding-top: 2rem;
    margin-top: .5rem;
    border-top: 1px solid var(--border);
}

/* ── Flight widget ────────────────────────────────── */

.flight-widget {
    min-height: 28rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

/* ── Simple pages ─────────────────────────────────── */

.hub-simple-header {
    padding: 2rem 0 1.5rem;
}

.hub-simple-header__eyebrow {
    margin: 0 0 .65rem;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hub-simple-header h1 {
    margin: 0 0 .75rem;
    font-family: var(--sans);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
}

.hub-simple-header p {
    margin: 0;
    max-width: 40rem;
    font-family: var(--sans);
    font-size: 1.05rem;
    color: var(--muted);
}

.hub-simple-header__meta {
    font-size: .9rem !important;
    color: var(--muted);
}

.hub-page--legal .hub-simple-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}

.hub-prose--legal {
    max-width: 42rem;
}

.hub-prose--legal h2 {
    margin-top: 2.25rem;
    font-size: 1.25rem;
}

.hub-prose--legal h2:first-of-type {
    margin-top: 1.5rem;
}

.hub-prose--legal li {
    margin-bottom: .35rem;
}

.author-spotlight {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.author-spotlight h2 {
    margin: 0 0 1.25rem;
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.author-spotlight__card {
    display: grid;
    grid-template-columns: minmax(9rem, 12rem) 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}

.author-spotlight__photo {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.author-spotlight__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.author-spotlight__photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 700;
}

.author-spotlight__eyebrow {
    margin: 0 0 .35rem;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}

.author-spotlight__name {
    margin: 0 0 .85rem;
    font-family: var(--sans);
    font-size: 1.35rem;
    font-weight: 700;
}

.author-spotlight__name a {
    color: var(--text);
    text-decoration: none;
}

.author-spotlight__name a:hover {
    color: var(--accent);
}

.author-spotlight__body p {
    margin: 0 0 .85rem;
    font-family: var(--sans);
    font-size: .98rem;
    line-height: 1.65;
    color: var(--text-body);
}

.author-spotlight__link {
    margin: .5rem 0 0;
}

.author-spotlight__link a {
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.author-spotlight__link a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .author-spotlight__card {
        grid-template-columns: 1fr;
        max-width: 16rem;
    }
}

/* ── Browse listing ───────────────────────────────── */

.hub-page--browse .hub-shell { padding-top: 0; }

.hub-cards--browse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card__type {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
}

.browse-empty {
    font-family: var(--sans);
    color: var(--muted);
}

.browse-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1.5rem;
}

.browse-tabs__link {
    display: inline-flex;
    padding: .45rem .85rem;
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color .15s, color .15s, background .15s;
}

.browse-tabs__link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.browse-tabs__link.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.hub-prose-hero {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.hub-prose-hero img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.browse-pagination {
    margin-top: 2rem;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 900px) {
    .hub-cards { grid-template-columns: 1fr; }
    .hub-cards--guides { grid-template-columns: 1fr; }
    .hub-cards--browse { grid-template-columns: 1fr 1fr; }
    .hub-card--horizontal { flex-direction: column; }
    .hub-card--horizontal .hub-card__thumb { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .hub-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-section__head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .hub-hero__overlay { min-height: 14rem; }
    .hub-hero__lead { font-size: .98rem; }
    .hub-destinations,
    .hub-destinations--compact { grid-template-columns: 1fr; }
    .hub-destination--slide { flex-basis: min(14rem, 84vw); min-height: 17rem; }
    .hub-carousel__controls { display: none; }
    .hub-cards--browse { grid-template-columns: 1fr; }
}
