html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --ihra-red: #e6403a;
    --ihra-muted: #667085;
    --ihra-panel: rgba(13,18,25,.72);
    --ihra-max: 1200px;

/*    --font-body: "Saira", system-ui, sans-serif;*/
    --font-saira-condensed: "Saira Condensed", system-ui, sans-serif;
    --font-saira: "Saira", system-ui, sans-serif;
}

/* helpers */
.ihra-wrap {
    max-width: var(--ihra-max);
    margin: 0 auto;
    padding: 0 16px;
}
/* OUTER: full width bar (bleeds edge-to-edge) */
.ihra-wrap-light {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: linear-gradient(135deg, #0b2f55 0%, #0a3a6b 40%, #06274a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.45);
}
/* top bar */
.ihra-topbar {
    background: #fff;
    border-bottom: 1px solid #e9eef3;
    font-size: 12px;
    font-weight: 700;
}

.ihra-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.ihra-topbar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 10px 16px;
}

.ihra-pick {
    white-space: nowrap;
    font-weight: 700;
}

.ihra-topbar-logo {
    height: 32px;
    width: auto;
    display: block;
}

.ihra-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ihra-divider {
    width: 1px;
    height: 16px;
    background: #cfd8e3;
    flex: 0 0 1px;
}

.ihra-sports {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

    .ihra-sports .active {
        color: #ff3b30;
    }

.ihra-toplinks {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

    .ihra-toplinks a {
        color: #ff3b30;
        font-weight: 800;
    }

/* Crew Portal link */
.ihra-crew-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff3b30, #d62a1f);
    color: #fff !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 6px rgba(255, 59, 48, .35);
}

    .ihra-crew-portal-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 59, 48, .45);
        opacity: 1 !important;
    }

    .ihra-crew-portal-icon {
        font-size: 14px;
    }

/* hero */
.ihra-hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background: #000; /* fallback while video loads */
}

/* nav */
.ihra-mainnav {
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
}
/* INNER: centered content */
.ihra-mainnav-light {
    max-width: var(--ihra-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 28px;
}

    .ihra-mainnav-light a {
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 900;
        font-size: 13px;
        letter-spacing: .12em;
        padding: 6px 4px;
        line-height: 1;
        opacity: .9;
        transition: opacity .15s ease, transform .15s ease;
    }

        .ihra-mainnav-light a:hover {
            opacity: 1;
            transform: translateY(-1px);
        }

        /* Active route */
        .ihra-mainnav-light a.active {
            opacity: 1;
            border-bottom: 2px solid rgba(255,255,255,.6);
            padding-bottom: 4px;
        }

.ihra-mainnav-light-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
/* LOGIN */
.ihra-btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.8);
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

    .ihra-btn-login:hover {
        background: rgba(255,255,255,.1);
    }

/* GET TICKETS */
.ihra-btn-tickets {
    display: inline-block !important;
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto !important;
    align-self: flex-start;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .9rem;
    font-style: italic;
    background: #e53935;
    color: #fff;
    padding: 10px 22px;
    letter-spacing: .14rem;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    border: none;

    box-shadow: 0 4px 0 #b71c1c;
    transition: all 0.1s ease-in-out;
}
    .ihra-btn-tickets:hover {
        background: #ff4138;
        transform: translateY(2px);
        box-shadow: 0 2px 0 #b71c1c;
    }

    .ihra-btn-tickets:active {
        transform: translateY(4px);
        box-shadow: 0 0 0 #b71c1c;
    }

.ihra-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: url("/images/IHRAlogo.png") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
}

.ihra-logo-link,
.ihra-logo-link:hover,
.ihra-logo-link:focus,
.ihra-logo-link:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

    .ihra-logo-link::after,
    .ihra-logo-link::before {
        content: none !important;
        display: none !important;
    }
/* content */
.ihra-content {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 36px;
    padding: 72px 0;
}

.ihra-badge {
    background: var(--ihra-red);
    padding: 2px 4px;
    font-weight: 500;
    text-transform: uppercase;
    width: fit-content;
    white-space: nowrap;
}

.ihra-h1 {
    font-family: var(--font-saira);
    font-weight: 900;
    font-size: clamp(44px, 6vw, 74px);
    text-transform: uppercase;
    line-height: .92;
}

.ihra-h2 {
    font-family: var(--font-saira);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    line-height: 1;
}

    .ihra-h1 .red {
        color: var(--ihra-red);
    }

.ihra-news {
    background: var(--ihra-panel);
    padding: 18px;
    position: relative;
}
/* ===== Sponsors ===== */
.ihra-sponsors {
    background: linear-gradient(180deg, #0b0f14, #05070a);
    padding: 24px 0;
    color: #fff;
}

.ihra-sponsors-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

    .ihra-sponsors-header h2 {
        font-size: 28px;
        font-weight: 900;
        letter-spacing: 1px;
    }

.ihra-accent {
    width: 6px;
    height: 28px;
    background: var(--ihra-red);
}

.ihra-sponsor-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    min-height: 80px;
}

    .ihra-sponsor-logos img {
        height: 80px;
        max-width: 200px;
        object-fit: contain;
        opacity: .95;
    }

/* ===== Sponsors Marquee ===== */
.ihra-sponsor-marquee {
    overflow: hidden;
    position: relative;
    min-height: 80px;
}

    /* Optional: fade edges so it feels more “marquee” */
    .ihra-sponsor-marquee::before,
    .ihra-sponsor-marquee::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        z-index: 2;
        pointer-events: none;
    }

    .ihra-sponsor-marquee::before {
        left: 0;
        background: linear-gradient(90deg, rgba(5,7,10,1), rgba(5,7,10,0));
    }

    .ihra-sponsor-marquee::after {
        right: 0;
        background: linear-gradient(270deg, rgba(5,7,10,1), rgba(5,7,10,0));
    }

.ihra-sponsor-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    will-change: transform;
    animation: ihra-sponsor-scroll 28s linear infinite;
}

.ihra-sponsor-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

    .ihra-sponsor-item img {
        height: 80px;
        max-width: 200px;
        object-fit: contain;
        opacity: .95;
        display: block;
    }

/* The trick: we render the list twice, so translating -50% lands at the start of copy #2 */
@keyframes ihra-sponsor-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ihra-sponsor-track {
        animation: none;
        transform: none;
    }

    .ihra-sponsor-marquee {
        overflow-x: auto;
    }
}


/* Sponsors mobile responsive */
@media (max-width: 768px) {

    .ihra-stat {
        overflow: hidden;
    }

    .ihra-sponsors {
        padding: 20px 0;
    }

    .ihra-sponsors-header h2 {
        font-size: 22px;
    }

    .ihra-sponsor-logos {
        justify-content: center;
        gap: 20px;
    }

        .ihra-sponsor-logos img {
            height: 56px;
            max-width: 150px;
        }

    .ihra-sponsor-track {
        gap: 20px;
    }

    .ihra-sponsor-item img {
        height: 56px;
        max-width: 150px;
    }

    .ihra-sponsor-marquee {
        min-height: 56px;
    }
}

@media (max-width: 480px) {
    .ihra-sponsors {
        padding: 16px 0;
    }

    .ihra-sponsor-logos img {
        height: 44px;
        max-width: 120px;
    }

    .ihra-sponsor-item img {
        height: 44px;
        max-width: 120px;
    }

    .ihra-sponsor-marquee {
        min-height: 44px;
    }
}

/* ===== Events Strip ===== */
.ihra-events-strip {
    background: #2a3445;
    color: #fff;
    padding: 8px 0;
}

.ihra-events-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.ihra-event-date {
    font-size: 12px;
    opacity: .75;
    letter-spacing: .8px;
}

.ihra-event-title {
    font-weight: 900;
    margin: 4px 0;
}

.ihra-event-sub {
    font-size: 13px;
    opacity: .75;
}

.ihra-event--clickable {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

    .ihra-event--clickable:hover {
        transform: translateY(-2px);
        opacity: 0.85;
    }

.ihra-view-events {
    color: var(--ihra-red);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== Up Next ===== */
.ihra-upnext {
    background: #fff;
    color: #0b0f14;
    padding: 48px 0;
}

.ihra-upnext-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 32px;
    align-items: center;
}

.ihra-upnext-label {
    color: var(--ihra-red);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ihra-upnext h3 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 6px;
}

.ihra-upnext-location {
    color: #6b7280;
}

.ihra-countdown {
    display: flex;
    gap: 24px;
    text-align: center;
    font-weight: 900;
}

    .ihra-countdown div {
        font-size: 12px;
        color: #6b7280;
    }

    .ihra-countdown span {
        display: block;
        font-size: 36px;
        color: #0b3b6f;
    }

/* Responsive */
@media (max-width: 900px) {
    .ihra-events-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ihra-upnext-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ihra-countdown {
        justify-content: center;
    }
}
/* ===== Racing Calendar ===== */
.ihra-calendar {
    background: radial-gradient(1200px 700px at 25% 10%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%), linear-gradient(180deg, #0b3b6f 0%, #072c55 55%, #052443 100%);
    padding: 56px 0 72px;
    color: #fff;
}

.ihra-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.ihra-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .ihra-section-title h2 {
        margin: 0;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.ihra-authority h2.ihra-section-title {
    display: block;
}


.ihra-section-sub {
    margin-top: 6px;
    color: rgba(255,255,255,.75);
}

.ihra-cal-nav {
    display: flex;
    gap: 10px;
}

.ihra-cal-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.15);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

    .ihra-cal-btn:hover {
        background: rgba(0,0,0,.28);
    }

/* Cards grid */
.ihra-cal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 22px;
}

.ihra-cal-card {
    background: rgba(9,12,16,.45);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: hidden;
}

.ihra-cal-media {
    height: 190px;
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62)), var(--img) center/cover no-repeat;
    position: relative;
    padding: 14px;
}

.ihra-pill {
    display: inline-block;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .6px;
    padding: 6px 10px;
    border-radius: 2px;
    text-transform: uppercase;
}

    .ihra-pill.red {
        background: #e6403a;
    }

    .ihra-pill.orange {
        background: #ff6a00;
    }

    .ihra-pill.blue {
        background: #2a7fff;
    }

    .ihra-pill.purple {
        background: #7c3aed;
    }

.ihra-cal-body {
    padding: 14px 16px 18px;
}

.ihra-cal-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    margin-bottom: 10px;
}

.ihra-cal-title {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: .6px;
    margin-bottom: 10px;
}

.ihra-cal-track {
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
}

.ihra-cal-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .6px;
}

    .ihra-cal-link:hover {
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 1100px) {
    .ihra-cal-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 620px) {
    .ihra-calendar-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ihra-cal-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Race Results ===== */
.ihra-results {
    background: #fff;
    padding: 56px 0 72px;
    color: #0b0f14;
}

.ihra-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.ihra-section-sub.dark {
    color: #6b7280;
}

.ihra-results-all {
    color: var(--ihra-red);
    font-weight: 900;
    letter-spacing: .8px;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 10px;
    white-space: nowrap;
}

    .ihra-results-all:hover {
        text-decoration: underline;
    }

.ihra-results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* row */
.ihra-result-row {
    display: grid;
    grid-template-columns: 160px 130px 1fr 260px;
    gap: 22px;
    align-items: center;
    background: #eef5fb;
    border: 1px solid #e1eaf3;
    padding: 22px;
}

.ihra-result-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 2px;
}

/* date block */
.ihra-result-date {
    color: #0b3b6f;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.05;
}

.ihra-result-day {
    font-size: 12px;
    opacity: .85;
}

.ihra-result-month {
    font-size: 20px;
    margin-top: 4px;
}

.ihra-result-range {
    font-size: 44px;
    margin-top: 2px;
}

/* info */
.ihra-result-title {
    font-size: 26px;
    font-weight: 950;
    color: #0b3b6f;
    letter-spacing: .4px;
}

.ihra-result-venue {
    margin-top: 4px;
    color: #0b3b6f;
    opacity: .9;
    font-weight: 700;
}

/* actions */
.ihra-result-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.ihra-result-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ihra-red);
    color: #fff;
    padding: 14px 18px;
    font-weight: 950;
    letter-spacing: .6px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.ihra-bars {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: linear-gradient(#fff,#fff) 2px 12px/14px 2px no-repeat, linear-gradient(#fff,#fff) 2px 8px/10px 2px no-repeat, linear-gradient(#fff,#fff) 2px 4px/6px 2px no-repeat;
    border-radius: 2px;
}

.ihra-kebab {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #0b3b6f;
    font-size: 26px;
    cursor: pointer;
}

    .ihra-kebab:hover {
        background: rgba(11,59,111,.08);
    }

/* responsive */
@media (max-width: 1100px) {
    .ihra-result-row {
        grid-template-columns: 140px 120px 1fr;
        grid-template-rows: auto auto;
    }

    .ihra-result-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 10px;
    }
}

@media (max-width: 650px) {
    .ihra-result-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ihra-result-img {
        width: 100%;
        height: 170px;
    }

    .ihra-result-actions {
        justify-content: space-between;
    }
}

/* Coming Soon State */
.ihra-results-coming-soon {
    text-align: center;
    padding: 60px 24px;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 24px;
}

.ihra-results-coming-soon__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ihra-results-coming-soon h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1a3a5c;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ihra-results-coming-soon p {
    font-size: 16px;
    color: #6b7a8c;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.ihra-results-coming-soon .ihra-action-btn {
    display: inline-block;
}

/* ===== Footer ===== */
.ihra-footer {
    background: linear-gradient(180deg, #0b0f14, #05070a);
    color: #cbd5e1;
    font-size: 14px;
}

.ihra-footer-top {
    padding: 56px 0 48px;
}

.ihra-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.ihra-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
}

    .ihra-footer-logo img {
        width: 44px;
        height: 44px;
    }

.ihra-footer-brand p {
    margin: 18px 0;
    max-width: 360px;
    line-height: 1.6;
    color: #94a3b8;
}

.ihra-social {
    display: flex;
    gap: 12px;
}

    .ihra-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #0b3b6f;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 900;
    }

/* columns */
.ihra-footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 14px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ihra-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ihra-footer li {
    margin-bottom: 10px;
}

.ihra-footer a {
    color: #94a3b8;
    text-decoration: none;
}

    .ihra-footer a:hover {
        color: #fff;
    }

/* bottom */
.ihra-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
}

.ihra-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ihra-footer-contact {
    display: flex;
    gap: 24px;
    color: #94a3b8;
}

/* responsive */
@media (max-width: 900px) {
    .ihra-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ihra-footer-contact {
        justify-content: flex-start;
    }
}
/* NavLink reset */
.ihra-topbar a {
    text-decoration: none;
    color: inherit;
}

/* active sport */
.ihra-sports .active {
    color: #ff3b30;
    font-weight: 900;
}

/* optional hover polish */
.ihra-sports a:hover,
.ihra-toplinks a:hover {
    opacity: .85;
}

/* Top bar mobile responsive */
@media (max-width: 1024px) {
    .ihra-topbar-inner {
        justify-content: center;
    }

    .ihra-topbar-left {
        width: 100%;
        justify-content: center;
    }

    .ihra-toplinks {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        border-top: 1px solid #e9eef3;
        padding-top: 6px;
    }

    .ihra-sports {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .ihra-topbar-inner {
        padding: 8px 12px;
    }

    .ihra-topbar-left {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .ihra-pick {
        display: none;
    }

    .ihra-divider {
        display: none;
    }

    .ihra-sports {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

        .ihra-sports a {
            font-size: 10px;
        }

    .ihra-toplinks {
        gap: 12px;
        font-size: 11px;
    }

    .ihra-region-label,
    .ihra-region-current {
        display: none;
    }
}

@media (max-width: 480px) {
    .ihra-sports {
        gap: 6px;
    }

        .ihra-sports a {
            font-size: 9px;
            padding: 4px 6px;
        }

    .ihra-toplinks {
        gap: 10px;
        font-size: 10px;
    }
}

.ihra-hero-video {
    position: relative;
    height: 660px;
    overflow: hidden;
    background: #000; /* fallback */
}

/* Video fills hero and sits behind everything */
.ihra-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Static background image fallback (same positioning as video) */
.ihra-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark gradient overlay for readability */
.ihra-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.52) 45%, rgba(0,0,0,.35) 100% );
    z-index: 1;
    pointer-events: none;
}

/* content sits above video */
.ihra-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}
/* Your nav + content must be above the overlay */
.ihra-mainnav,
.ihra-content {
    position: relative;
    z-index: 2;
}
/* IHRA Australia link */
.ihra-aus-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #ff3b30;
    text-decoration: none;
    margin-right: 6px;
}

    .ihra-aus-link:hover {
        opacity: .85;
    }

/* IHRA Australia link */
.ihra-aus-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #ff3b30;
    text-decoration: none;
}

/* Flag */
.ihra-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
    flex: 0 0 auto;
}

.ihra-toplinks img.ihra-flag {
    width: 20px !important;
    height: 14px !important;
    max-width: none !important;
    display: inline-block !important;
    vertical-align: middle;
}

.ihra-aus-link::after {
    content: "";
    width: 1px;
    height: 14px;
    background: #cfd8e3;
    margin-left: 10px;
}

@media (max-width: 640px) {
    .ihra-aus-link {
        display: none;
    }
}

.btn-ticket {
    background: #e11d2e;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 18px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}

    .btn-ticket:hover {
        transform: translateY(-1px);
    }

    .btn-ticket:active {
        transform: translateY(0);
    }

.btn-login {
    background: #ffffff;
    color: var(--sport-text, #0b2b5b);
    border: 2px solid var(--sport-text, #0b2b5b);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 18px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .1s ease;
}

    .btn-login:hover {
        background: var(--sport-text, #0b2b5b);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.ihra-navlinks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
}

    /* LINKS */
    .ihra-navlinks a {
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 900;
        font-size: 13px;
        letter-spacing: .10em;
        text-shadow: 0 0 5px #121212;
        padding: 6px 8px;
        line-height: 1;
    }

        .ihra-navlinks a:hover {
            opacity: 1;
            transform: translateY(-1px);
        }

        /* Active route styling (NavLink adds .active) */
        .ihra-navlinks a.active {
            opacity: 1;
            /* optional: subtle active indicator */
            border-bottom: 2px solid rgba(255,255,255,.55);
            padding-bottom: 4px;
        }

.ihra-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
/* NAV CONTAINER (LIGHT) */
.ihra-navlinks--light {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 18px;
    /* subtle inset edge, opposite of dark bar */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.85);
}

    /* LINKS */
    .ihra-navlinks--light a {
        color: #111; /* near-black, not pure */
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 900;
        font-size: 13px;
        letter-spacing: .10em;
        padding: 6px 8px;
        line-height: 1;
        /* subtle depth, opposite of glow */
        text-shadow: 0 1px 0 rgba(255,255,255,.6);
        opacity: .85;
        transition: opacity .12s ease, transform .12s ease, color .12s ease;
    }

        .ihra-navlinks--light a:hover {
            opacity: 1;
            transform: translateY(-1px);
            color: #000;
        }

        /* Active route */
        .ihra-navlinks--light a.active {
            opacity: 1;
            color: #000;
            border-bottom: 2px solid rgba(0,0,0,.35);
            padding-bottom: 4px;
        }

    /* ACTIONS */
    .ihra-navlinks--light .ihra-actions {
        margin-left: auto;
        display: flex;
        gap: 12px;
        align-items: center;
    }

/*.ihra-news {
    position: relative;*/
/* Lighter, cleaner glass panel */
/*background: linear-gradient( to bottom, rgba(30,30,30,.55), rgba(15,15,15,.70) );
    color: #ffffff;
    padding: 26px 24px 22px 28px;
    max-width: 300px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}*/
.ihra-news {
    position: absolute;
    top: 20px;
    right: 0; /*  pins to right edge */
    width: 350px; /* fixed sidebar width */
    max-width: 42vw; /* responsive safety */
    min-height: 380px; /* consistent height regardless of content */

    margin: 0;
    border-radius: 0;
    background: linear-gradient( to bottom, rgba(30,30,30,.55), rgba(15,15,15,.50) );
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}
    /* Red vertical accent (slightly slimmer) */
    .ihra-news::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: #e11d2e;
    }

/* TITLE */
.ihra-news-title {
    margin: 0 0 22px 0;
    font-size: 17px;
    font-weight: 700; /* thinner */
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: right; /* right-justified */
}

    .ihra-news-title span {
        color: #e11d2e;
    }

/* LIST */
/*.ihra-newslist {
    list-style: none;
    margin: 0;
    padding: 0;
}*/
.ihra-newslist {
    flex: 1;
    min-height: 200px; /* consistent minimum height */
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 8px; /* avoids scrollbar overlaying text */
}

    .ihra-newslist::-webkit-scrollbar {
        width: 6px;
    }

    .ihra-newslist::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.25);
        border-radius: 4px;
    }

    .ihra-newslist li {
        padding: 18px 0; /* more spacing */
        font-size: 14px;
        font-weight: 400; /* thinner body text */
        line-height: 1.7;
        text-align: right; /* right-justified */
        opacity: .95;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

        .ihra-newslist li:last-child {
            border-bottom: none;
        }

/* FOOTER */
.ihra-newsfooter {
    margin-top: auto; /* pushes footer to bottom */
    padding-top: 22px;
    text-align: right;
}

    .ihra-newsfooter a {
        color: #ffffff;
        font-weight: 700; /* thinner than before */
        font-size: 12px;
        letter-spacing: .14em;
        text-transform: uppercase;
        text-decoration: none;
    }

        .ihra-newsfooter a:hover {
            text-decoration: underline;
        }

/* ===== Hero Mobile Responsive ===== */
@media (max-width: 1024px) {
    .ihra-content {
        grid-template-columns: 1fr;
        padding: 4rem 1.25rem;
    }

    .ihra-news {
        position: relative;
        width: 100%;
        max-width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        margin-top: 30px;
        min-height: auto;
    }

    .ihra-newslist {
        min-height: auto;
        max-height: none;
    }

        .ihra-news-title,
        .ihra-newslist li,
        .ihra-newsfooter {
            text-align: left;
        }
}

@media (max-width: 768px) {
    .ihra-hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .ihra-mainnav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ihra-navlinks {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

        .ihra-navlinks a {
            font-size: 11px;
            padding: 6px 8px;
        }

    .ihra-actions {
        margin-left: auto;
    }

    .ihra-action-btn {
        font-size: 10px;
        padding: 8px 12px;
    }

    .ihra-h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .ihra-lede {
        font-size: 14px;
    }

    .ihra-ctas {
        flex-direction: column;
        gap: 10px;
    }

        .ihra-ctas .ihra-action-btn {
            width: 100%;
            text-align: center;
        }
}

@media (max-width: 480px) {
    .ihra-mainnav {
        padding-top: 8px;
    }

    .ihra-logo {
        width: 80px;
        height: 40px;
    }

    .ihra-navlinks {
        padding: 6px 8px;
    }

        .ihra-navlinks a {
            font-size: 10px;
            padding: 4px 6px;
        }

    .ihra-actions {
        gap: 6px;
    }

    .ihra-action-btn {
        font-size: 9px;
        padding: 6px 10px;
    }

    .ihra-content {
        padding: 2rem 1rem;
    }

    .ihra-h1 {
        font-size: 28px;
    }

    .ihra-news {
        padding: 14px;
    }

    .ihra-newslist li {
        padding: 12px 0;
        font-size: 13px;
    }
}

.news-detail-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

/* LEFT RAIL */
.news-detail-rail {
    border-right: 1px solid #e5e7eb;
    padding-right: 24px;
}

.rail-title {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 16px;
}

.rail-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #1f2937;
    position: relative;
}

    .rail-item:hover {
        background: #f9fafb;
    }

.rail-bar {
    width: 4px;
    background: transparent;
}

.rail-item.active .rail-bar {
    background: #dc2626; /* IHRA red */
}

.rail-text {
    font-size: 0.95rem;
    line-height: 1.35;
}

/* MAIN CONTENT */
.news-detail-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.25rem; /* ~36px */
    font-weight: 700; /* bold but not heavy */
    line-height: 1.25; /* tight, readable wraps */
    color: #0b3a6e; /* IHRA-style deep blue */
    margin: 0 0 16px 0;
    letter-spacing: -0.01em; /* subtle tightening */
}

.news-detail-meta {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #6b7280;
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.news-detail-hero img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 24px;
}

.news-detail-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #111827;
}

    .news-detail-body p {
        margin-bottom: 1.2em;
    }

/* News Detail Responsive */
@media (max-width: 900px) {
    .news-detail-page {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 24px auto;
        padding: 0 18px;
    }

    .news-detail-rail {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    .news-detail-title {
        font-size: 1.75rem;
    }

    .news-detail-meta {
        flex-wrap: wrap;
        gap: 8px 24px;
    }
}

@media (max-width: 480px) {
    .news-detail-page {
        padding: 0 12px;
        margin: 16px auto;
    }

    .news-detail-title {
        font-size: 1.4rem;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 4px;
    }

    .news-detail-body {
        font-size: 1rem;
    }
}

.events-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 18px 40px;
}

.events-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.events-accent {
    width: 6px;
    height: 28px;
    background: #e11d2e; /* IHRA red accent */
    border-radius: 2px;
}

.events-titlebar h1 {
    margin: 0;
    letter-spacing: .5px;
    color: #0b2f55;
    font-weight: 800;
}

.events-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0 14px;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media(max-width: 768px) {
    .filters-left {
        max-width: stretch;
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .filter-group label {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .08em;
        color: #163a5d;
    }

.filter {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d6dde7;
    border-radius: 2px;
    background: #fff;
    color: #183b5a;
    font-weight: 700;
    letter-spacing: .02em;
    min-width: 140px;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    opacity: .65;
    font-size: 14px;
}

.search-input {
    height: 40px;
    width: min(520px, 70vw);
    padding: 0 14px 0 36px;
    border: 1px solid #d6dde7;
    border-radius: 2px;
    outline: none;
}

    .search-input:focus {
        border-color: #98b5d8;
        box-shadow: 0 0 0 3px rgba(152,181,216,.25);
    }

.past-events-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
}

    .past-events-toggle input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #1a3a5c;
    }

    .past-events-toggle span {
        user-select: none;
    }

.filters-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d6dde7;
    border-radius: 2px;
    color: #183b5a;
    font-weight: 800;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .btn-secondary:hover {
        border-color: #b8c6d8;
        background: #fbfdff;
    }

.btn-ico {
    opacity: .85;
}

.events-divider {
    border-top: 2px solid #d6dde7;
    margin: 8px 0 20px;
}

/* Month header */
.month-header {
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #0b2f55;
}

.month-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 4rem;
}

/* Row layout (image on left + card area) */
.event-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: stretch;
}

.event-image {
    border-radius: 2px;
    min-height: 108px;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    border: 1px solid #e7edf6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f4f8;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.event-card {
    background: #eef4fa; /* light blue panel like screenshot */
    border: 1px solid #e3ebf5;
    border-radius: 2px;
    padding: 18px 18px;
    display: grid;
    grid-template-columns: 160px 1fr 220px;
    align-items: center;
    gap: 10px;
}

.event-date {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: #0b2f55;
}

    .event-date .dow {
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .08em;
        opacity: .9;
    }

    .event-date .mon {
        margin-top: 6px;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: .06em;
    }

    .event-date .days {
        margin-top: 4px;
        font-size: 44px;
        font-weight: 900;
        letter-spacing: .02em;
    }

.event-details {
    max-width: 475px;
}

.event-title {
    font-size: 22px;
    font-weight: 900;
    color: #0b2f55;
    letter-spacing: .02em;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-subtitle {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1c4f7d;
    opacity: .95;
}

.btn-ticket {
    height: 42px;
    padding: 0 18px;
    background: #ef2b2b;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .05em;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-ico {
    font-size: 16px;
}

.arrow {
    font-size: 18px;
    margin-left: 2px;
}

/* Responsive */
@media (min-width: 921px) {
    .event-actions {
        margin-left: auto;
    }
}

@media (max-width: 920px) {
    .event-row {
        grid-template-columns: 1fr;
    }

    .event-image {
        min-height: auto;
        max-height: 250px;
    }

    .event-details {
        text-align: center;
    }

    .event-title {
        white-space: normal;
    }

    .event-card,
    .events-filters {
        flex-direction: column;
    }
}

/* ========== Fan Events Page Enhancements ========== */

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #0b2f55;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e3ebf5;
    border-top-color: #0b2f55;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1c4f7d;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin: 20px 0;
}

.error-icon {
    font-size: 48px;
    color: #e53935;
    margin-bottom: 16px;
}

.error-container h3 {
    font-size: 20px;
    font-weight: 800;
    color: #c53030;
    margin: 0 0 8px;
}

.error-container p {
    color: #742a2a;
    margin-bottom: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f7fafc;
    border: 2px dashed #d6dde7;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0b2f55;
    margin: 0 0 8px;
}

.empty-state p {
    color: #4a5568;
    margin-bottom: 20px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #d6dde7;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: #fff;
    border: none;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

    .view-btn:hover {
        background: #f7fafc;
    }

    .view-btn.active {
        background: #0b2f55;
        color: #fff;
    }

    .view-btn + .view-btn {
        border-left: 1px solid #d6dde7;
    }

/* Add to Calendar Button (per event) */
.btn-add-cal {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d6dde7;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
}

    .btn-add-cal:hover {
        background: #f0f4f8;
        border-color: #0b2f55;
    }

/* No Tickets Available */
.no-tickets {
    color: #0b2f55;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 14px;
    text-transform: uppercase;
}

/* Event Series Badge */
.event-series {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #e53935;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Past Event Styling */
.event-row.past-event {
    opacity: 0.6;
}

    .event-row.past-event .event-card {
        background: #f0f0f0;
    }

/* Event Badge */
.event-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 2px;
    text-transform: uppercase;
}

    .event-badge.featured {
        background: #ffc107;
        color: #000;
    }

.event-image {
    position: relative;
}

/* Month Year (for different years) */
.month-year {
    font-size: 16px;
    font-weight: 700;
    color: #718096;
    margin-left: 8px;
}

/* Featured Events Section */
.featured-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e3ebf5;
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 900;
    color: #0b2f55;
    letter-spacing: 0.04em;
}

.featured-icon {
    font-size: 24px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .featured-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.featured-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: #000;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.featured-content {
    padding: 16px;
}

.featured-date {
    font-size: 13px;
    font-weight: 800;
    color: #e53935;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 18px;
    font-weight: 900;
    color: #0b2f55;
    margin-bottom: 4px;
    line-height: 1.3;
}

.featured-venue {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 12px;
}

.featured-tickets-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: background 0.2s;
}

    .featured-tickets-btn:hover {
        background: #c62828;
    }

/* Calendar View */
.calendar-view {
    background: #fff;
    border: 1px solid #e3ebf5;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0b2f55;
    color: #fff;
}

.cal-nav-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

    .cal-nav-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.cal-month-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-header {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #718096;
    background: #f7fafc;
    border-bottom: 1px solid #e3ebf5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cal-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid #e3ebf5;
    border-bottom: 1px solid #e3ebf5;
    background: #fff;
}

    .cal-day:nth-child(7n) {
        border-right: none;
    }

    .cal-day.empty {
        background: #fafafa;
    }

    .cal-day.today {
        background: #fffbeb;
    }

        .cal-day.today .day-number {
            background: #e53935;
            color: #fff;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.day-number {
    font-size: 14px;
    font-weight: 700;
    color: #0b2f55;
    margin-bottom: 4px;
}

.cal-event {
    padding: 4px 6px;
    margin-top: 4px;
    background: #e3f2fd;
    color: #0b2f55;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

    .cal-event:hover {
        background: #bbdefb;
    }

.cal-more {
    margin-top: 4px;
    font-size: 11px;
    color: #718096;
    font-weight: 600;
}

/* Primary Button */
.btn-primary {
    padding: 12px 24px;
    background: #0b2f55;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-primary:hover {
        background: #1c4f7d;
    }

/* Event Actions Enhanced */
.event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .cal-day {
        min-height: 60px;
        padding: 4px;
    }

    .cal-event {
        display: none;
    }

    .cal-day.has-events::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background: #e53935;
        border-radius: 50%;
        margin: 4px auto 0;
    }

    .cal-more {
        display: none;
    }
}

@media (max-width: 560px) {
    .view-toggle {
        display: none;
    }

    .filters-right {
        flex-direction: column;
        align-items: stretch;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== End Fan Events Page Enhancements ========== */

.ihra-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

/* Base button */
.ihra-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}

/* Variants */
.ihra-action-btn--solid {
    background: #e53935;
    color: #fff;
    border: 2px solid #e53935;
}

.ihra-action-btn--outline {
    background: transparent;
    color: #0b2f55; /* IHRA blue-ish */
    border: 2px solid #0b2f55;
}

.ihra-white-btn--outline {
    background: transparent;
    color: #fff; /* IHRA blue-ish */
    border: 2px solid #fff;
}

/* Optional hover */
.ihra-action-btn--solid:hover {
    filter: brightness(0.95);
}

.ihra-action-btn--outline:hover {
    background: rgba(11,47,85,.08);
}
/* Horizontal strip that shows 3 cards at a time */
.ihra-events-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ihra-events-arrow {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .ihra-events-arrow:hover {
        opacity: 1;
    }

    .ihra-events-arrow:disabled {
        opacity: 0.3;
        cursor: default;
    }

.ihra-events-strip {
    flex: 1 1 auto;
    display: flex;
    gap: 18px;
    overflow-x: auto; /* REQUIRED */
    overflow-y: hidden; /* helps */
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

    /* 3 visible, but never too narrow */
    .ihra-events-strip .ihra-event {
        flex: 0 0 clamp(260px, calc((100% - 36px) / 3), 380px); /* 2 gaps ~ 36px */
        scroll-snap-align: start;
    }

    .ihra-events-strip::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
/* keep titles readable */
.ihra-event-title {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere; /* optional safety */
}

/* CTA stays fixed on the right */
.ihra-view-events {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* responsive */
@media (max-width: 900px) {
    .ihra-events-row {
        align-items: flex-start;
    }

    .ihra-events-strip .ihra-event {
        flex-basis: clamp(240px, calc((100% - 18px) / 2), 360px);
    }
}

@media (max-width: 520px) {
    .ihra-events-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ihra-view-events {
        align-self: flex-end;
    }

    .ihra-events-strip .ihra-event {
        width: 80vw;
        flex-basis: 85%;
    }

    .ihra-events-arrow {
        width: 100vw;
    }
}

.upnext {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 22px;
    background: #fff;
    color: #0b1b2a;
}

.upnext-left {
    flex: 1 1 auto;
    min-width: 320px;
}

.upnext-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    color: #e53935;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.upnext-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.upnext-sub {
    font-size: 14px;
    opacity: .85;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upnext-countdown {
    display: flex;
    gap: 22px;
    align-items: flex-end;
}

.cd-box {
    text-align: center;
    min-width: 62px;
}

.cd-val {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.cd-lbl {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .7;
    margin-top: 6px;
}

.upnext-cta {
    flex: 0 0 auto;
    margin-left: auto;
}

.upnext-link {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0a66ff;
    text-decoration: none;
    white-space: nowrap;
}

    .upnext-link:hover {
        text-decoration: underline;
    }

@media (max-width: 980px) {
    .upnext {
        flex-wrap: wrap;
    }

    .upnext-cta {
        width: 100%;
        margin-left: 0;
    }
}

.ihra-panel {
    margin-top: 18px;
}

.ihra-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 14px 0;
}

.ihra-panel__title {
    color: #fff;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1;
}

.ihra-panel__sub {
    color: rgba(255,255,255,.78);
    margin-top: 6px;
}

.ihra-panel__nav {
    display: flex;
    gap: 10px;
}

.ihra-navbtn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(0,0,0,.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

    .ihra-navbtn:hover {
        background: rgba(0,0,0,.28);
    }

.ihra-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

    .ihra-carousel::-webkit-scrollbar {
        height: 10px;
    }

    .ihra-carousel::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 10px;
    }

.ihra-card {
    flex: 0 0 calc((100% - 54px) / 4); /* 4-wide with 3 gaps */
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.14);
    cursor: pointer;
    scroll-snap-align: start;
}

@media (max-width: 1200px) {
    .ihra-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 900px) {
    .ihra-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 600px) {
    .ihra-card {
        flex-basis: 85%;
    }
}

.ihra-card__media {
    position: relative;
    height: 160px;
    background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7));
    overflow: hidden;
}

    .ihra-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: saturate(1.05) contrast(1.02);
    }

.ihra-card__mediaFallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.65));
}

.ihra-card__pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff3b30;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 12px;
}

.ihra-card__body {
    padding: 16px;
    color: #fff;
}

.ihra-card__meta {
    display: flex;
    gap: 14px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

.ihra-metaItem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ihra-ico {
    opacity: .9;
}

.ihra-card__eventName {
    margin-top: 12px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ihra-card__venue {
    margin-top: 6px;
    color: rgba(255,255,255,.8);
}

.ihra-card__cta {
    margin-top: 16px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ihra-card__cta--muted {
    color: rgba(255,255,255,.55);
}

.ihra-card__noevent {
    margin-top: 8px;
    font-weight: 800;
    color: rgba(255,255,255,.85);
}

.ihra-panel__loading, .ihra-panel__error, .ihra-panel__empty {
    color: #fff;
    padding: 12px 0;
}

.ihra-panel__footer {
    display: flex;
    justify-content: center;
    padding: 16px 0 8px;
}

.ihra-seeMoreLink {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    transition: background 0.2s, border-color 0.2s;
}

    .ihra-seeMoreLink:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.6);
    }

.ihra-logo-link {
    display: inline-block;
    text-decoration: none;
}

.rules-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.rules-section h3 {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

    .rules-section h3::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 22px;
        height: 3px;
        background: #e53935; /* IHRA red */
    }

.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.rules-section li {
    position: relative;
    padding-left: 22px; /* room for the dot */
    margin-bottom: 12px;
    line-height: 1.35;
}

    /*  bullet as a true dot (no glyph/font issues) */
    .rules-section li::before {
        content: "";
        position: absolute;
        left: 2px;
        width: 7px;
        height: 7px;
        top: 0.52em;
        background: #e53935;
        border-radius: 50%;
    }

/* Link styling */
.rules-section a {
    color: #0a3a6b;
    text-decoration: none;
    font-weight: 500;
}

    .rules-section a:hover {
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 900px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Sport header within rules page */
.rules-sport-header {
    margin-bottom: 8px;
}

.rules-sport-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    color: #0b2f55;
}

.rules-sport-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 0.85em;
    background: #e53935;
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: baseline;
}

/* Download button row */
.rules-download {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Coming soon placeholder */
.rules-coming-soon {
    text-align: center;
    padding: 48px 24px;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
    background: rgba(0,0,0,.02);
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.rules-coming-soon a {
    color: #0a3a6b;
    font-weight: 500;
}

/* Sport navigation chips */
.rules-sport-nav {
    text-align: center;
    margin-bottom: 0;
}

.rules-sport-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

/* ===== TICKETING PAGES ===== */

/* Tickets Page */
.tickets-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0;
}

.tickets-header {
    margin-bottom: 32px;
}

    .tickets-header h1 {
        font-size: 36px;
        font-weight: 900;
        color: #0f172a;
        margin: 0 0 8px;
    }

.tickets-subtitle {
    color: #64748b;
    font-size: 16px;
}

.tickets-loading, .tickets-error {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--ihra-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-retry {
    background: var(--ihra-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}

.tickets-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

/* Events Sidebar */
.events-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    height: fit-content;
}

    .events-sidebar h2 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 20px;
        color: #0f172a;
    }

.events-sidebar .events-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.events-sidebar .filter-input,
.events-sidebar .filter-select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d6dde7;
    border-radius: 4px;
    background: #f8fafc;
    color: #183b5a;
    font-size: 13px;
}

.events-sidebar .filter-input:focus,
.events-sidebar .filter-select:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, .15);
}

.events-sidebar .filter-clear {
    background: none;
    border: none;
    color: #c8102e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
}

.events-sidebar .filter-clear:hover {
    text-decoration: underline;
}

.events-sidebar .no-events-match {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
}

    .event-card:hover {
        border-color: #94a3b8;
    }

    .event-card.selected {
        border-color: var(--ihra-red);
        background: #fef2f2;
    }

.event-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 145px;
}

.tickets-page .event-date {
    min-width: auto;
}

.event-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--ihra-red);
}

.event-day {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.event-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
}

.event-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Tickets Main */
.tickets-main {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.selected-event-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.selected-event-hero {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

    .selected-event-header h2 {
        font-size: 24px;
        font-weight: 900;
        margin: 0 0 8px;
        color: #0f172a;
    }

    .selected-event-header p {
        color: #64748b;
        margin: 0;
    }

.select-event-prompt {
    text-align: center;
    padding: 60px;
    color: #64748b;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ticket-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all .2s ease;
}

    .ticket-card:hover {
        border-color: #94a3b8;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }

.ticket-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.badge-ga {
    background: #dbeafe;
    color: #1e40af;
}

.badge-vip {
    background: #fef3c7;
    color: #92400e;
}

.badge-pit {
    background: #d1fae5;
    color: #065f46;
}

.badge-parking {
    background: #e2e8f0;
    color: #475569;
}

.ticket-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.ticket-description {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px;
    min-height: 40px;
}

.ticket-price {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
}

.ticket-quantity {
    margin-bottom: 20px;
}

    .ticket-quantity label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 8px;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .quantity-selector button {
        width: 36px;
        height: 36px;
        border: 2px solid #e2e8f0;
        background: #fff;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all .15s ease;
    }

        .quantity-selector button:hover {
            border-color: var(--ihra-red);
            color: var(--ihra-red);
        }

    .quantity-selector span {
        font-size: 18px;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
    }

.btn-add-cart {
    width: 100%;
    padding: 14px;
    background: var(--ihra-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}

    .btn-add-cart:hover:not(:disabled) {
        background: #c53030;
    }

    .btn-add-cart:disabled {
        background: #e2e8f0;
        color: #94a3b8;
        cursor: not-allowed;
    }

/* Sold Out Tickets */
.ticket-card.sold-out {
    opacity: 0.7;
    border-color: #cbd5e1;
}

    .ticket-card.sold-out:hover {
        border-color: #cbd5e1;
        box-shadow: none;
    }

.sold-out-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Price in Sidebar */
.event-card .event-price {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

/* Venue Location */
.venue-location {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0;
}

/* Cart Summary Bar */
.cart-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 100;
}

.cart-info {
    display: flex;
    gap: 24px;
}

.cart-count, .cart-total {
    font-weight: 700;
}

.cart-total {
    font-size: 20px;
}

.btn-view-cart {
    background: var(--ihra-red);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

/* Cart Page */
.cart-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

    .cart-header h1 {
        font-size: 36px;
        font-weight: 900;
        color: #0f172a;
        margin: 0;
    }

.continue-shopping {
    color: var(--ihra-red);
    font-weight: 600;
    text-decoration: none;
}

.cart-empty {
    text-align: center;
    padding: 80px;
    background: #fff;
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.cart-empty h2 {
    font-size: 24px;
    margin: 0 0 12px;
}

.cart-empty p {
    color: #64748b;
    margin: 0 0 24px;
}

.btn-browse {
    display: inline-block;
    background: var(--ihra-red);
    color: #fff;
    padding: 14px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.item-event {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

.event-name {
    font-weight: 600;
    color: #0f172a;
}

.item-details h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.item-details p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.item-code {
    font-family: monospace;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.qty-value {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.item-price {
    text-align: right;
}

.unit-price {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.total-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--ihra-red);
    font-size: 13px;
    cursor: pointer;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

    .cart-summary h2 {
        font-size: 20px;
        margin: 0 0 24px;
    }

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.fee-line {
    color: #64748b;
}

.tax-line {
    color: #64748b;
}

.summary-loading {
    padding: 20px 0;
    color: #64748b;
    font-style: italic;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 2px solid #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.promo-section {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

    .promo-section label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
    }

.promo-input {
    display: flex;
    gap: 8px;
}

    .promo-input input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
    }

    .promo-input button {
        padding: 10px 16px;
        background: #0f172a;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
    }

.promo-error {
    color: var(--ihra-red);
    font-size: 13px;
    margin-top: 8px;
}

.promo-success {
    color: #059669;
    font-size: 13px;
    margin-top: 8px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--ihra-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .btn-checkout:disabled {
        background: #e2e8f0;
        color: #94a3b8;
    }

.security-note {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 16px;
}

/* Checkout Page */
.checkout-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0 80px;
}

.checkout-empty, .checkout-success {
    text-align: center;
    padding: 80px;
    background: #fff;
    border-radius: 12px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.checkout-success h1 {
    font-size: 32px;
    margin: 0 0 12px;
}

.order-number {
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    margin: 16px 0;
}

.btn-view-order {
    display: inline-block;
    background: var(--ihra-red);
    color: #fff;
    padding: 14px 32px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 16px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

    .checkout-header h1 {
        font-size: 32px;
        font-weight: 900;
        margin: 0;
    }

.back-to-cart {
    color: var(--ihra-red);
    text-decoration: none;
    font-weight: 600;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.checkout-form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.form-section {
    margin-bottom: 32px;
}

    .form-section h2 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group.half {
    }

    .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

.form-input {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .15s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--ihra-red);
    }

.payment-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.card-icon {
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.checkout-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkout-actions {
    margin-top: 32px;
}

.btn-pay {
    width: 100%;
    padding: 18px;
    background: var(--ihra-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .btn-pay:disabled {
        background: #94a3b8;
    }

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.terms-notice {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 16px;
}

    .terms-notice a {
        color: var(--ihra-red);
    }

.checkout-summary {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

    .checkout-summary h2 {
        font-size: 18px;
        margin: 0 0 20px;
    }

.summary-items {
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.item-name {
    color: #374151;
}

.item-qty {
    color: #64748b;
    margin-left: 4px;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.event-reminder {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

    .event-reminder h3 {
        font-size: 13px;
        color: #64748b;
        margin: 0 0 8px;
    }

    .event-reminder p {
        margin: 0;
        font-weight: 600;
    }

/* Order Confirmation Page */
.confirmation-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0 80px;
}

.confirmation-loading {
    text-align: center;
    padding: 80px;
}

.confirmation-error {
    text-align: center;
    padding: 80px;
    background: #fff;
    border-radius: 12px;
}

.confirmation-header {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 32px;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d1fae5;
    color: #059669;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.confirmation-header h1 {
    font-size: 32px;
    margin: 0 0 8px;
}

.confirmation-note {
    color: #64748b;
    margin: 16px 0 0;
}

/* Order QR Section */
.order-qr-section {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.order-qr-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

    .order-qr-card h2 {
        font-size: 20px;
        margin: 0 0 8px;
    }

    .order-qr-card p {
        color: #64748b;
        margin: 0 0 20px;
    }

.order-qr-image {
    width: 200px;
    height: 200px;
    border: 4px solid #0f172a;
    border-radius: 12px;
}

.qr-order-number {
    margin-top: 12px;
    font-weight: 700;
    color: #0f172a;
}

/* Event Details Card */
.event-details-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

    .event-details-card h2 {
        font-size: 18px;
        margin: 0 0 20px;
    }

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
}

.info-value {
    font-weight: 600;
    color: #0f172a;
}

/* Tickets Section */
.tickets-section {
    margin-bottom: 32px;
}

    .tickets-section h2 {
        font-size: 20px;
        margin: 0 0 8px;
    }

.tickets-hint {
    color: #64748b;
    margin: 0 0 24px;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ticket-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.ticket-header {
    background: #0f172a;
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-type {
    font-weight: 700;
}

.ticket-code {
    font-family: monospace;
    font-size: 12px;
    opacity: .8;
}

.ticket-qr {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
}

    .ticket-qr img {
        width: 160px;
        height: 160px;
    }

.ticket-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-top: 1px solid #e2e8f0;
}

.ticket-event {
    font-weight: 600;
}

.ticket-date {
    color: #64748b;
}

/* Order Summary Card */
.order-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

    .order-summary-card h2 {
        font-size: 18px;
        margin: 0 0 20px;
    }

.summary-lines .summary-line {
    padding: 10px 0;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-print, .btn-download, .btn-more-tickets {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-print {
    background: #fff;
    border: 2px solid #0f172a;
    color: #0f172a;
}

.btn-download {
    background: #0f172a;
    border: none;
    color: #fff;
}

.btn-more-tickets {
    background: var(--ihra-red);
    border: none;
    color: #fff;
}

/* Important Info */
.important-info {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 24px;
}

    .important-info h3 {
        font-size: 16px;
        margin: 0 0 16px;
        color: #92400e;
    }

    .important-info ul {
        margin: 0;
        padding-left: 20px;
    }

    .important-info li {
        margin-bottom: 8px;
        color: #78350f;
    }

    .important-info a {
        color: var(--ihra-red);
    }

/* Ticketing Responsive */
@media (max-width: 1024px) {
    .tickets-layout {
        grid-template-columns: 1fr;
    }

    .events-sidebar {
        order: -1;
    }

    .tickets-page .events-sidebar {
        overflow: auto;
    }

    .events-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 8px;
    }

    .event-card {
        min-width: 200px;
        flex-shrink: 0;
    }

    .tickets-page .event-card {
        max-width: 13rem;
    }

    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary, .checkout-summary {
        position: static;
    }

    .event-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tickets-page, .cart-page, .checkout-page, .confirmation-page {
        padding: 20px 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .form-group.half {
        grid-column: span 1;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .btn-print, .btn-download, .btn-more-tickets {
        width: 100%;
        text-align: center;
    }

    .event-info-grid,
    .tickets-page .tickets-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {
    .tickets-header h1,
    .cart-header h1,
    .checkout-header h1 {
        font-size: 28px;
    }

    .cart-summary-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .btn-view-cart {
        width: 100%;
    }
}

/* ==========================================================================
   Racing Page Styles
   ========================================================================== */

/* ---------- Page + typography helpers ---------- */
.ihra-page {
    background: #fff;
}

.ihra-muted {
    color: rgba(0,0,0,.65);
    line-height: 1.5;
}

.ihra-h2 {
    font-size: clamp(22px, 2.3vw, 30px);
    margin: 0 0 6px 0;
    letter-spacing: .01em;
}

.ihra-h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
}

.ihra-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
}

/* ---------- Racing Hero ---------- */
.ihra-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: 0;
}

/* Gradient overlay */
.ihra-hero--racing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11,47,85,.95) 0%, rgba(10,58,107,.90) 45%, rgba(6,39,74,.95) 100%);
    z-index: 1;
}

.ihra-hero--racing {
    min-height: 330px;
}

    .ihra-hero--racing .ihra-wrap {
        position: relative;
        z-index: 2;
        min-height: 330px;
        display: flex;
        align-items: center;
    }

    .ihra-hero--racing .ihra-hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 0;
    }

.ihra-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ihra-hero-title {
    font-size: clamp(34px, 4.2vw, 56px);
    margin: 6px 0 10px;
    letter-spacing: -0.02em;
}

.ihra-hero-sub {
    margin: 0 0 18px;
    color: rgba(255,255,255,.86);
    line-height: 1.55;
    max-width: 56ch;
}

.ihra-hero-quicklinks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* ---------- Racing Buttons & chips ---------- */
.ihra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    /*white-space: nowrap;*/
    border: 1px solid rgba(255,255,255,.22);
    transition: transform .15s ease;
}

.ihra-btn--primary {
    background: #e53935;
    color: #fff;
    border-color: rgba(255,255,255,.10);
}

.ihra-btn--ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.ihra-btn:hover {
    transform: translateY(-1px);
}

.ihra-btn:active {
    transform: translateY(0);
}

.ihra-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.08);
    transition: transform .15s ease;
}

.ihra-chip--solid {
    color: rgba(0,0,0,.82);
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.10);
}

.ihra-chip:hover {
    transform: translateY(-1px);
}

/* ---------- Racing Sections ---------- */
.ihra-section {
    padding: 44px 0;
}

.ihra-section--alt {
    background: rgba(0,0,0,.03);
}

.ihra-section--strip {
    padding: 26px 0;
    background: rgba(11,47,85,.06);
}

.ihra-section-head {
    margin-bottom: 16px;
}

/* ---------- Racing Fan cards ---------- */
.ihra-cardgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 980px) {
    .ihra-cardgrid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .ihra-cardgrid {
        grid-template-columns: 1fr;
    }
}

.ihra-card-fan {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    color: rgba(0,0,0,.92);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .ihra-card-fan:hover {
        transform: translateY(-2px);
        border-color: rgba(11,47,85,.28);
        box-shadow: 0 10px 22px rgba(0,0,0,.08);
    }

.ihra-card-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.ihra-card-title {
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.ihra-card-sub {
    color: rgba(0,0,0,.65);
    line-height: 1.45;
    margin-bottom: 10px;
}

.ihra-card-cta {
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(11,47,85,.92);
}

/* ---------- Racing Split section ---------- */
.ihra-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .ihra-split {
        grid-template-columns: 1fr;
    }
}

.ihra-media-box {
    height: 100%;
    border-radius: 18px;
    padding: 18px;
    background-color: rgba(11,47,85,.92);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 22px rgba(0,0,0,.10);
    position: relative;
}

    .ihra-media-box::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(11,47,85,.75) 0%, rgba(10,58,107,.65) 55%, rgba(6,39,74,.75) 100%);
        pointer-events: none;
    }

    .ihra-media-box > * {
        position: relative;
        z-index: 1;
    }

.ihra-media-title {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 6px;
}

.ihra-media-sub {
    color: rgba(255,255,255,.84);
    line-height: 1.45;
}

.ihra-split-body {
    padding: 6px 0;
}

.ihra-bullets {
    margin: 12px 0 16px 18px;
    color: rgba(0,0,0,.78);
}

    .ihra-bullets li {
        margin: 6px 0;
    }

.ihra-inline-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .ihra-inline-actions .ihra-btn {
        border-color: rgba(0,0,0,.10);
    }

    .ihra-inline-actions .ihra-btn--ghost {
        background: rgba(0,0,0,.04);
        color: rgba(0,0,0,.82);
    }

    .ihra-inline-actions .ihra-btn--primary {
        color: #fff;
    }

/* ---------- Racing Racer section ---------- */
.ihra-divider {
    border-top: 1px solid rgba(0,0,0,.10);
    margin: 6px 0 18px;
    position: relative;
}

.ihra-divider-badge {
    position: relative;
    top: -12px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ihra-racergrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 980px) {
    .ihra-racergrid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {
    .ihra-racergrid {
        grid-template-columns: 1fr;
    }
}

.ihra-mini {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px;
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.08);
    color: rgba(0,0,0,.90);
    transition: transform .15s ease, border-color .15s ease;
}

    .ihra-mini:hover {
        border-color: rgba(11,47,85,.28);
        transform: translateY(-1px);
    }

.ihra-mini-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.ihra-mini-sub {
    color: rgba(0,0,0,.65);
    line-height: 1.45;
}

/* ---------- Crews Portal Callout ---------- */
.ihra-crews-callout {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
}

.ihra-crews-callout .ihra-h3 {
    color: #fff;
    margin-bottom: .75rem;
    font-size: 1.5rem;
}

.ihra-crews-callout .ihra-muted {
    color: rgba(255,255,255,.7);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ihra-crews-callout .ihra-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .6rem;
}

.ihra-crews-callout .ihra-bullets li {
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

.ihra-crews-callout .ihra-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}

/* ---------- Racing Strip ---------- */
.ihra-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ihra-strip-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Racing Bottom CTA ---------- */
.ihra-cta {
    padding: 42px 0 54px;
    background: rgba(0,0,0,.02);
}

.ihra-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 980px) {
    .ihra-cta-grid {
        grid-template-columns: 1fr;
    }
}

.ihra-cta-box {
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.ihra-cta-box--dark {
    background: linear-gradient(135deg, rgba(11,47,85,.92) 0%, rgba(10,58,107,.88) 55%, rgba(6,39,74,.92) 100%);
    color: #fff;
    border-color: rgba(255,255,255,.10);
}

.ihra-cta-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 6px;
}

.ihra-cta-title {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 10px;
}

.ihra-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
/* container in nav */
.ihra-nav-region {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* trigger */
.ihra-region-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}

    .ihra-region-trigger:hover {
        background: rgba(0,0,0,.04);
        border-color: rgba(0,0,0,.08);
    }

.ihra-region-icon {
    font-size: 14px;
}

.ihra-region-label {
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
}

.ihra-region-current {
    font-size: 12px;
    color: rgba(0,0,0,.6);
    border-left: 1px solid rgba(0,0,0,.12);
    padding-left: 8px;
}

/* dropdown */
.ihra-region-menu {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 8px;
    min-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease .4s, visibility 0s .6s;
    visibility: hidden;
    z-index: 1000;
}

@media(max-width: 1024px) {
    .ihra-region-menu {
        right: -11rem;
    }
}

@media(max-width: 768px) {
    .ihra-region-menu {
        right: -17rem;
    }
}

.ihra-region-menu__wrapper {
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.14);
    overflow: hidden;
}

/* show on hover + keyboard focus */
.ihra-nav-region:hover .ihra-region-menu,
.ihra-nav-region:focus-within .ihra-region-menu {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .15s ease, visibility 0s;
}

.ihra-region-menu__head {
    padding: 12px 12px 10px;
    background: rgba(0,0,0,.02);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.ihra-region-menu__title {
    font-weight: 900;
    letter-spacing: .02em;
}

.ihra-region-menu__meta {
    font-size: 12px;
    color: rgba(0,0,0,.65);
    margin-top: 4px;
}

/* items */
.ihra-region-menu__list {
    padding: 6px;
    display: grid;
    gap: 6px;
}

.ihra-region-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(0,0,0,.9);
    border: 1px solid transparent;
    background: #fff;
}

    .ihra-region-item:hover {
        background: rgba(11,47,85,.06);
        border-color: rgba(11,47,85,.18);
    }

.ihra-region-flag {
    font-size: 16px;
}

.ihra-region-text {
    display: grid;
    gap: 2px;
}

.ihra-region-name {
    font-weight: 900;
}

.ihra-region-sub {
    font-size: 12px;
    color: rgba(0,0,0,.65);
}

.ihra-region-go {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(11,47,85,.9);
    opacity: .0;
    transition: opacity .3s ease;
}

.ihra-region-item:hover .ihra-region-go {
    opacity: 1;
}

.ihra-region-item--active {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.10);
}

.ihra-region-item--disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.ihra-region-check {
    font-weight: 900;
}

/* ========== Legal Pages ========== */

.legal-page {
    background: #f7fafc;
    min-height: 100vh;
    padding: 60px 20px 80px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 48px 56px;
}

    .legal-container h1 {
        font-size: 36px;
        font-weight: 900;
        color: #0b2f55;
        margin: 0 0 8px;
        letter-spacing: .01em;
    }

.legal-updated {
    font-size: 14px;
    color: #6b7c93;
    margin: 0 0 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3ebf5;
}

.legal-container section {
    margin-bottom: 36px;
}

    .legal-container section:last-child {
        margin-bottom: 0;
    }

.legal-container h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0b2f55;
    margin: 0 0 16px;
}

.legal-container h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1c4f7d;
    margin: 24px 0 12px;
}

.legal-container p {
    font-size: 15px;
    line-height: 1.7;
    color: #3d4f5f;
    margin: 0 0 16px;
}

.legal-container ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-container li {
    font-size: 15px;
    line-height: 1.7;
    color: #3d4f5f;
    margin-bottom: 8px;
}

    .legal-container li:last-child {
        margin-bottom: 0;
    }

.legal-container strong {
    color: #0b2f55;
    font-weight: 700;
}

.legal-container a {
    color: #1c4f7d;
    text-decoration: underline;
}

    .legal-container a:hover {
        color: #ef2b2b;
    }

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 16px 60px;
    }

    .legal-container {
        padding: 32px 24px;
    }

        .legal-container h1 {
            font-size: 28px;
        }

        .legal-container h2 {
            font-size: 20px;
        }
}

.cp-token-frame {
    width: 100%;
    height: 240px;
    border: none;
    border-radius: 8px;
    background: transparent;
}

/* ── Venue Map Page ── */
.venue-map-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 80vh;
}

.venue-map-header {
    margin-bottom: 24px;
}

.venue-map-accent {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--ihra-red);
    margin-bottom: 12px;
    border-radius: 2px;
}

.venue-map-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #111;
    margin: 0 0 6px;
}

.venue-map-subtitle {
    color: var(--ihra-muted);
    font-size: 15px;
    margin: 0;
}

#venue-map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    border: 1px solid #e0e0e0;
    z-index: 1;
}

.venue-map-loading,
.venue-map-error {
    text-align: center;
    padding: 40px 0;
    color: var(--ihra-muted);
}

.venue-map-error .btn-retry {
    margin-top: 12px;
    background: var(--ihra-red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Cards section */
.venue-cards-section {
    margin-top: 40px;
}

.venue-cards-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.venue-cards-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.venue-count {
    font-size: 14px;
    color: var(--ihra-muted);
}

.venue-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.venue-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.venue-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.venue-card-body {
    padding: 20px 20px 12px;
    flex: 1;
}

.venue-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.venue-card-location {
    font-size: 14px;
    color: var(--ihra-muted);
    margin: 0 0 10px;
}

.venue-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 12px;
}

.venue-card-actions {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.venue-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
}

.venue-card-link:hover {
    text-decoration: underline;
}

/* Leaflet popup overrides */
.venue-popup {
    min-width: 180px;
}

.venue-popup-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.venue-popup-location {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.venue-popup-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ihra-red);
    margin-bottom: 8px;
}

.venue-popup-links {
    display: flex;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.venue-popup-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
}

.venue-popup-link:hover {
    text-decoration: underline;
}

/* Venue card as link */
a.venue-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Responsive - Venue Map */
@media (max-width: 768px) {
    #venue-map {
        height: 350px;
        border-radius: 8px;
    }

    .venue-map-header h1 {
        font-size: 24px;
    }

    .venue-cards-grid {
        grid-template-columns: 1fr;
    }

    .venue-map-page {
        padding: 24px 0 40px;
    }
}

/* ── Inspector Map Page ── */
.inspector-map-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 80vh;
}

.inspector-map-header {
    margin-bottom: 24px;
}

.inspector-map-accent {
    display: block;
    width: 48px;
    height: 4px;
    background: var(--ihra-red);
    margin-bottom: 12px;
    border-radius: 2px;
}

.inspector-map-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #111;
    margin: 0 0 6px;
}

.inspector-map-subtitle {
    color: var(--ihra-muted);
    font-size: 15px;
    margin: 0 0 10px;
}

.inspector-map-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
}

.inspector-map-back:hover {
    text-decoration: underline;
}

#inspector-map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    border: 1px solid #e0e0e0;
    z-index: 1;
}

.inspector-map-loading,
.inspector-map-error {
    text-align: center;
    padding: 40px 0;
    color: var(--ihra-muted);
}

.inspector-map-error .btn-retry {
    margin-top: 12px;
    background: var(--ihra-red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.inspector-cards-section {
    margin-top: 40px;
}

.inspector-cards-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.inspector-cards-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.inspector-count {
    font-size: 14px;
    color: var(--ihra-muted);
}

.inspector-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.inspector-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.inspector-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.inspector-card-body {
    padding: 20px 20px 12px;
    flex: 1;
}

.inspector-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.inspector-card-location {
    font-size: 14px;
    color: var(--ihra-muted);
    margin: 0 0 10px;
}

.inspector-type-badge {
    display: inline-block;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    padding: 3px 10px;
    border-radius: 12px;
}

.inspector-card-actions {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.inspector-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
}

.inspector-card-link:hover {
    text-decoration: underline;
}

/* Leaflet popup overrides for inspectors */
.inspector-popup {
    min-width: 180px;
}

.inspector-popup-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.inspector-popup-location {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.inspector-popup-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ihra-red);
    margin-bottom: 8px;
}

.inspector-popup-contact {
    padding-top: 6px;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.inspector-popup-contact a {
    color: var(--ihra-red);
    text-decoration: none;
}

.inspector-popup-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #inspector-map {
        height: 350px;
        border-radius: 8px;
    }

    .inspector-map-header h1 {
        font-size: 24px;
    }

    .inspector-cards-grid {
        grid-template-columns: 1fr;
    }

    .inspector-map-page {
        padding: 24px 0 40px;
    }
}

/* ── Venue Detail Page ── */
.venue-detail-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 80vh;
}

.venue-detail-loading,
.venue-detail-notfound {
    text-align: center;
    padding: 60px 0;
    color: var(--ihra-muted);
}

.btn-back-venues {
    display: inline-block;
    margin-top: 16px;
    background: var(--ihra-red);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.venue-detail-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
    margin-bottom: 8px;
    display: inline-block;
}

.venue-detail-back:hover {
    text-decoration: underline;
}

.venue-detail-header {
    margin-bottom: 28px;
}

.venue-detail-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin: 4px 0 8px;
}

.venue-type-badge--lg {
    font-size: 13px;
    padding: 4px 14px;
}

.venue-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

.venue-info-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    margin-bottom: 20px;
}

.venue-info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Address */
.venue-address {
    margin-bottom: 12px;
}

.venue-address-line {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.venue-phone,
.venue-website {
    font-size: 14px;
    color: #555;
    margin: 6px 0;
}

.venue-phone a,
.venue-website a {
    color: var(--ihra-red);
    text-decoration: none;
}

.venue-phone a:hover,
.venue-website a:hover {
    text-decoration: underline;
}

.venue-info-label {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.btn-directions {
    display: inline-block;
    margin-top: 14px;
    background: var(--ihra-red);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}

.btn-directions:hover {
    background: #c4302b;
    color: #fff;
}

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.amenity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
}

.amenity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ihra-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Icon letters from category */
.amenity-icon::after {
    display: none;
}

.amenity-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Capacity */
.capacity-grid {
    display: flex;
    gap: 32px;
}

.capacity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capacity-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--ihra-red);
}

.capacity-label {
    font-size: 13px;
    color: var(--ihra-muted);
    font-weight: 600;
}

/* Satellite map */
.venue-satellite-map {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

/* Events list */
.venue-events-loading,
.venue-no-events {
    font-size: 14px;
    color: var(--ihra-muted);
    margin: 0;
}

.venue-events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.venue-event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.venue-event-item:last-child {
    border-bottom: none;
}

.venue-event-item:hover {
    background: #f8f9fa;
    margin: 0 -24px;
    padding: 12px 24px;
}

.venue-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    flex-shrink: 0;
}

.venue-event-month {
    font-size: 11px;
    font-weight: 700;
    color: var(--ihra-red);
    letter-spacing: .5px;
}

.venue-event-day {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.venue-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.venue-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-event-series {
    font-size: 12px;
    color: var(--ihra-muted);
}

.venue-event-type {
    font-size: 11px;
    color: var(--ihra-red);
    font-weight: 600;
    text-transform: uppercase;
}

.venue-event-tickets {
    font-size: 12px;
    font-weight: 700;
    color: var(--ihra-red);
    white-space: nowrap;
}

.venue-events-viewall {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ihra-red);
    text-decoration: none;
}

.venue-events-viewall:hover {
    text-decoration: underline;
}

/* Responsive - Venue Detail */
@media (max-width: 900px) {
    .venue-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .venue-detail-page {
        padding: 24px 0 40px;
    }

    .venue-detail-header h1 {
        font-size: 24px;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .venue-satellite-map {
        height: 200px;
    }

    .capacity-grid {
        gap: 20px;
    }
}

/* ── Boating Discipline Cards ── */

/* Let the hero grow when discipline cards are inside it */
.ihra-hero--boating {
    min-height: auto;
}
.ihra-boating-cards {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

.ihra-disc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}

.ihra-disc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    text-align: left;
    color: #fff;
    padding: 0;
    font-family: inherit;
}

    .ihra-disc-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255,255,255,.28);
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
    }

    .ihra-disc-card--active {
        border-color: #c41230;
        box-shadow: 0 0 0 2px rgba(196,18,48,.5);
    }

        .ihra-disc-card--active:hover {
            border-color: #c41230;
        }

.ihra-disc-card__img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,.06);
}

.ihra-disc-card__body {
    padding: 18px 20px 14px;
    flex: 1;
}

.ihra-disc-card__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ihra-disc-card__desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.4;
}

.ihra-disc-card__indicator {
    text-align: center;
    padding: 0 0 12px;
    font-size: 14px;
    color: #c41230;
    min-height: 26px;
}

/* Expanded detail area below cards */
.ihra-disc-detail {
    margin-top: 16px;
    padding: 24px 0 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    animation: discDetailFadeIn .25s ease;
}

@keyframes discDetailFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .ihra-disc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .ihra-disc-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ihra-disc-card__img {
        height: 120px;
    }
}

/* NEW HOMEPAGE STYLING */
/* GRID / STAT STRIP */
.ihra-scale {
    background: #0b0b0b;
    padding: 80px 0;
}

.ihra-scale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align: center;
}

/* STAT */
.ihra-stat {
    position: relative;
    padding: 18px 30px 12px;
}

.ihra-stat-bg-icon {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: #ffffff;
    opacity: 0.060;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.ihra-stat-number,
.ihra-stat-label,
.ihra-stat-icon {
    position: relative;
    z-index: 2;
}

/* Horizontal divider under each stat except last */
/* Vertical separator */
/* Angled red separator */
.ihra-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: .5rem; /* slight overlap to feel intentional */
    height: 60%;
    width: 3px; /* thicker */
    background: #e53935; /* solid red */
    transform: skewX(-20deg); /* racing slash */
    opacity: 0.55; /* balanced */
}

/* NUMBER / LABEL */
.ihra-stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ihra-stat-label {
    margin-top: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    opacity: 100%;
    color: #fff;
}

/* ICON - white now */
.ihra-stat-icon {
    margin-top: 22px;
    font-size: 2.9rem;
    color: #ffffff; /* white */
    line-height: 1;
    filter: drop-shadow(0 12px 26px rgba(0,0,0,0.35));
}

/* HOVER - no transition, just pop bigger */
.ihra-stat:hover .ihra-stat-icon {
    transform: scale(1.12);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .ihra-scale-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 64px;
    }

    /* remove dividers when it wraps */
    .ihra-stat:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .ihra-scale-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer (montage background treatment) ===== */
.ihra-authority {
    position: relative;
    isolation: isolate; /* keeps blend-mode contained to the footer */
    overflow: hidden;
    color: #cbd5e1;
    font-size: 14px;
    /* fallback if image doesn't load */
    background: linear-gradient(180deg, #0b0f14, #05070a);
    z-index: 100;
}

    /* montage image layer */
    .ihra-authority::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("/images/mont6.png") center / cover no-repeat;
        filter: grayscale(1) contrast(1.05);
        opacity: 0.18; /* overall visibility of the image */
        z-index: 0;
        pointer-events: none;
    }

    /* blue tint via multiply */
    .ihra-authority::after {
        content: "";
        position: absolute;
        inset: 0;
        background: #0b2f55; /* your IHRA blue */
        opacity: 0.78; /* strength of the blue */
        mix-blend-mode: multiply;
        z-index: 1;
        pointer-events: none;
    }

    .ihra-authority > * {
        position: relative;
        z-index: 2;
    }

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.text-shadow {
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.text-shadow-lg {
    text-shadow: 0 4px 12px rgba(0,0,0,.45);
}

.ihra-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ihra-contact i {
    font-size: 14px;
}