:root {
    --iz-event-ink: #1d1836;
    --iz-event-ink-soft: #30294d;
    --iz-event-orange: #e57b25;
    --iz-event-orange-deep: #b84f0b;
    --iz-event-warm: #fff3e8;
    --iz-event-cream: #fffaf5;
    --iz-event-green: #4e9f42;
    --iz-event-line: #e5e0e9;
    --iz-event-muted: #68647a;
    --iz-event-content-width: calc(var(--iz-wide, 1240px) - 4rem);
    --iz-event-transaction-width: 1080px;
}

body.iz-hosted-event-page {
    background: #fff;
}

body.iz-hosted-event-page .entry-header,
body.iz-hosted-event-page .geodir-breadcrumb,
body.iz-hosted-event-page nav[aria-label="breadcrumb"],
body.iz-hosted-event-page .geodir-post-title,
body.iz-hosted-event-page .geodir-field-post_title,
body.iz-hosted-event-page .geodir-post-rating,
body.iz-hosted-event-page .geodir-post-fav,
body.iz-hosted-event-page .geodir-contact,
body.iz-hosted-event-page .geodir-author-actions,
body.iz-hosted-event-page .geodir-similar-places,
body.iz-hosted-event-page .comments-area,
body.iz-hosted-event-page #reviews,
body.iz-hosted-event-page .wp-block-geodirectory-geodir-widget-single-reviews,
body.iz-hosted-event-page .wp-block-blockstrap-blockstrap-widget-container:has(> h2 + .wp-block-geodirectory-geodir-widget-listings),
body.iz-hosted-event-page .container-fluid:has(> .container > .wp-block-geodirectory-geodir-widget-listings),
body.iz-hosted-event-page .geodir-details-sidebar {
    display: none !important;
}

/* The Blockstrap GeoDirectory template supplies its own title/contact cards.
 * Hosted event content replaces both, while retaining the map and ticket
 * components further down the page. */
body.iz-hosted-event-page #title,
body.iz-hosted-event-page button.btn.btn-primary.pum-trigger,
body.iz-hosted-event-page .card:has(button.btn.btn-primary.pum-trigger),
body.iz-hosted-event-page .geodir-notifications,
body.iz-hosted-event-page .geodir-single-reviews-container {
    display: none !important;
}

body.iz-hosted-event-page .geodir-tabs-content > div:has(.iz-hosted-event-landing) {
    display: block !important;
    margin: 0 !important;
}

body.iz-hosted-event-page .geodir-tabs-content > div:has(.iz-hosted-event-landing) > h4 {
    display: none !important;
}

/* Flatten only the inherited GeoDirectory layout wrappers around the hosted
 * event description. This removes the normal sidebar/card treatment without
 * changing the separate Map and Tickets panels. */
html body.iz-hosted-event-page .wp-site-blocks .container:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .container-fluid:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .row:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .col:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .card:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .geodir-single-tabs-container:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .geodir-tabs:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .geodir-tabs-content:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .geodir-field-post_content:has(.iz-hosted-event-landing),
html body.iz-hosted-event-page .wp-site-blocks .geodir-tabs-content > div:has(.iz-hosted-event-landing) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.iz-hosted-event-page .site-content,
body.iz-hosted-event-page .content-area,
body.iz-hosted-event-page main.site-main,
body.iz-hosted-event-page main .container,
body.iz-hosted-event-page main .container-fluid,
body.iz-hosted-event-page .geodir-page,
body.iz-hosted-event-page .geodir-post-content-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Blockstrap leaves a one-rem gap after the site header and applies its
 * spacing utility directly to #main. Collapse both only when the main area
 * contains the opted-in hosted-event landing page. */
html body.iz-hosted-event-page .wp-site-blocks > .container-fluid:has(.iz-hosted-event-landing) {
    margin-top: -1rem !important;
}

html body.iz-hosted-event-page .wp-site-blocks #main:has(.iz-hosted-event-landing) {
    padding-top: 0 !important;
}

body.iz-hosted-event-page .iz-hosted-event-landing {
    width: 100%;
    margin: 0;
    color: var(--iz-event-ink);
    font-size: 18px;
    line-height: 1.55;
}

.iz-hosted-event-landing *,
.iz-hosted-event-landing *::before,
.iz-hosted-event-landing *::after {
    box-sizing: border-box;
}

.iz-hosted-event-landing h1,
.iz-hosted-event-landing h2,
.iz-hosted-event-landing h3,
.iz-hosted-event-landing p {
    margin-top: 0;
}

.iz-hosted-event-landing h1,
.iz-hosted-event-landing h2,
.iz-hosted-event-landing h3 {
    color: var(--iz-event-ink);
    letter-spacing: -.04em;
    line-height: .98;
}

.iz-hosted-event-landing h1 {
    max-width: 820px;
    margin-bottom: 28px;
    font-size: clamp(3.2rem, 7vw, 7rem);
    font-weight: 650;
}

.iz-hosted-event-landing h2 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(2.25rem, 4.5vw, 4.6rem);
    font-weight: 620;
}

.iz-hosted-event-landing h3 {
    margin-bottom: 12px;
    font-size: 1.55rem;
    line-height: 1.12;
}

.iz-event-shell {
    width: min(calc(100% - 4rem), var(--iz-event-content-width));
    margin-inline: auto;
}

.iz-event-eyebrow {
    margin-bottom: 22px;
    color: var(--iz-event-orange-deep);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.iz-event-hero {
    overflow: hidden;
    position: relative;
    padding: clamp(78px, 10vw, 138px) 0 clamp(72px, 9vw, 124px);
    background:
        radial-gradient(circle at 88% 28%, rgba(229,123,37,.22), transparent 27%),
        radial-gradient(circle at 76% 82%, rgba(78,159,66,.13), transparent 19%),
        linear-gradient(125deg, #fff 0%, var(--iz-event-cream) 52%, #fff0e5 100%);
}

.iz-event-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 52px solid rgba(29,24,54,.06);
    border-radius: 50%;
}

.iz-event-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .7fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: end;
}

.iz-event-hero__intro {
    max-width: 720px;
    margin-bottom: 34px;
    color: var(--iz-event-muted);
    font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.iz-event-facts {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    background: var(--iz-event-ink);
    box-shadow: 0 24px 70px rgba(29,24,54,.18);
    color: #fff;
}

.iz-event-facts__date {
    display: block;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.08;
}

.iz-event-facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 18px;
    margin: 0 0 30px;
}

.iz-event-facts dt {
    color: #ffb16f;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.iz-event-facts dd {
    margin: 0;
    color: #fff;
    font-weight: 650;
}

.iz-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.iz-event-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border: 2px solid var(--iz-event-ink);
    border-radius: 999px;
    background: var(--iz-event-ink);
    color: #fff !important;
    font-weight: 760;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.iz-event-button:hover,
.iz-event-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(29,24,54,.16);
}

.iz-event-button--orange {
    border-color: var(--iz-event-orange);
    background: var(--iz-event-orange);
    color: var(--iz-event-ink) !important;
}

.iz-event-button--light {
    border-color: #fff;
    background: #fff;
    color: var(--iz-event-ink) !important;
}

.iz-event-button--outline {
    background: transparent;
    color: var(--iz-event-ink) !important;
}

.iz-event-section {
    padding: clamp(52px, 5.5vw, 78px) 0;
}

.iz-event-section--warm {
    background: var(--iz-event-warm);
}

.iz-event-section--ink {
    background: var(--iz-event-ink);
    color: #fff;
}

.iz-event-section--ink h2,
.iz-event-section--ink h3 {
    color: #fff;
}

.iz-event-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    gap: 56px;
    align-items: end;
    margin-bottom: clamp(30px, 3.5vw, 46px);
}

.iz-event-section__heading > p:last-child {
    color: var(--iz-event-muted);
    font-size: 1.15rem;
}

.iz-event-value-grid,
.iz-event-speaker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.iz-event-value,
.iz-event-speaker {
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--iz-event-line);
    border-radius: 24px;
    background: #fff;
}

.iz-event-value__number {
    display: block;
    margin-bottom: 32px;
    color: var(--iz-event-orange-deep);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.iz-event-value p,
.iz-event-speaker p {
    margin-bottom: 0;
    color: var(--iz-event-muted);
}

.iz-event-programme {
    display: grid;
    grid-template-columns: .45fr 1fr;
    gap: 22px 56px;
    margin: 0;
}

.iz-event-programme dt,
.iz-event-programme dd {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.18);
}

.iz-event-programme dt {
    color: #ffad69;
    font-size: 1.15rem;
    font-weight: 800;
}

.iz-event-programme dd {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.iz-event-programme strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1.18rem;
}

.iz-event-speaker {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    justify-content: space-between;
}

.iz-event-speaker__type {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--iz-event-warm);
    color: var(--iz-event-orange-deep);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.iz-event-speaker--placeholder {
    border-style: dashed;
    background: #fffaf5;
}

.iz-event-ticket-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
    padding: clamp(38px, 6vw, 72px);
    border-radius: 34px;
    background: var(--iz-event-warm);
}

.iz-event-ticket-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.iz-event-ticket {
    padding: 26px;
    border: 1px solid var(--iz-event-line);
    border-radius: 22px;
    background: #fff;
}

.iz-event-ticket--member {
    border-color: var(--iz-event-orange);
    box-shadow: 0 16px 34px rgba(229,123,37,.13);
}

.iz-event-ticket__label {
    color: var(--iz-event-orange-deep);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.iz-event-ticket__price {
    display: block;
    margin: 12px 0;
    color: var(--iz-event-ink);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.iz-event-ticket p {
    margin-bottom: 0;
    color: var(--iz-event-muted);
    font-size: .92rem;
}

.iz-event-note {
    margin-top: 18px;
    color: var(--iz-event-muted);
    font-size: .9rem;
}

body.iz-hosted-event-page #post_map,
body.iz-hosted-event-page #tickets {
    width: min(calc(100% - 4rem), var(--iz-event-transaction-width)) !important;
    margin: 0 auto 1.5rem !important;
}

body.iz-hosted-event-page .iz-event-location-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr);
    gap: 24px;
    align-items: stretch;
}

body.iz-hosted-event-page .iz-event-location-layout .geodir-wgt-map {
    align-self: stretch;
    height: 100%;
    min-width: 0;
    min-height: 280px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
}

body.iz-hosted-event-page .iz-event-location-card,
body.iz-hosted-event-page .iz-event-ticket-guide {
    padding: 28px;
    border: 1px solid var(--iz-event-line);
    border-radius: 20px;
    background: var(--iz-event-warm);
}

body.iz-hosted-event-page .iz-event-location-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: transparent;
    background: var(--iz-event-ink);
    color: #fff;
}

body.iz-hosted-event-page .iz-event-location-card h3,
body.iz-hosted-event-page .iz-event-ticket-guide h3 {
    margin-bottom: 18px;
    font-size: 1.65rem;
}

body.iz-hosted-event-page .iz-event-location-card h3 {
    color: #fff;
}

body.iz-hosted-event-page .iz-event-location-card dl {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px 14px;
    margin: 0 0 24px;
}

body.iz-hosted-event-page .iz-event-location-card dt {
    color: #ffad69;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.iz-hosted-event-page .iz-event-location-card dd {
    margin: 0;
    color: #fff;
    font-weight: 650;
}

body.iz-hosted-event-page .iz-event-location-card .iz-event-button {
    gap: 10px;
    color: #fff !important;
}

body.iz-hosted-event-page .iz-event-ticket-guide {
    margin-bottom: 22px;
}

body.iz-hosted-event-page .iz-event-ticket-guide > p {
    max-width: 760px;
    color: var(--iz-event-muted);
}

body.iz-hosted-event-page .iz-event-ticket-guide .iz-event-ticket-options {
    margin-top: 22px;
}

body.iz-hosted-event-page .iz-event-ticket-guide__note {
    margin: 18px 0 0 !important;
    font-size: .9rem;
}

/* Keep the useful location panel compact. The inline map dimensions supplied
 * by GeoDirectory are overridden only for opted-in hosted event pages. */
body.iz-hosted-event-page #post_map .geodir-map-wrap,
body.iz-hosted-event-page #post_map .stick_trigger_container,
body.iz-hosted-event-page #post_map .geodir_map_container,
body.iz-hosted-event-page #post_map .map_background,
body.iz-hosted-event-page #post_map .top_banner_section_in,
body.iz-hosted-event-page #post_map .main_map_wrapper,
body.iz-hosted-event-page #post_map .iprelative,
body.iz-hosted-event-page #post_map .geodir-map-canvas,
body.iz-hosted-event-page #post_map .loading_div {
    height: 100% !important;
    min-height: 280px !important;
}

/* GeoDirectory's origin field duplicates the event's adjacent directions
 * panel. JS removes it; this rule prevents a flash or stale cached copy. */
body.iz-hosted-event-page .iz-event-location-layout .gd-input-group,
body.iz-hosted-event-page .iz-event-location-layout .geodir-map-directions-wrap {
    display: none !important;
}

body.iz-hosted-event-page [id="tickets"],
body.iz-hosted-event-page [data-tab="#tickets"] {
    scroll-margin-top: 120px;
}

@media (max-width: 900px) {
    .iz-event-hero__grid,
    .iz-event-section__heading,
    .iz-event-ticket-panel {
        grid-template-columns: 1fr;
    }

    .iz-event-value-grid,
    .iz-event-speaker-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.iz-hosted-event-page .iz-event-location-layout {
        grid-template-columns: 1fr;
    }

    body.iz-hosted-event-page #post_map .geodir-wgt-map,
    body.iz-hosted-event-page #post_map .geodir-map-wrap,
    body.iz-hosted-event-page #post_map .stick_trigger_container,
    body.iz-hosted-event-page #post_map .geodir_map_container,
    body.iz-hosted-event-page #post_map .map_background,
    body.iz-hosted-event-page #post_map .top_banner_section_in,
    body.iz-hosted-event-page #post_map .main_map_wrapper,
    body.iz-hosted-event-page #post_map .iprelative,
    body.iz-hosted-event-page #post_map .geodir-map-canvas,
    body.iz-hosted-event-page #post_map .loading_div {
        height: 260px !important;
        min-height: 260px !important;
    }
}

@media (max-width: 620px) {
    .iz-event-shell {
        width: min(calc(100% - 2rem), var(--iz-event-content-width));
    }

    .iz-event-hero {
        padding: 56px 0 64px;
    }

    .iz-event-section {
        padding: 44px 0;
    }

    .iz-event-section__heading {
        gap: 20px;
        margin-bottom: 30px;
    }

    .iz-hosted-event-landing h1 {
        font-size: clamp(2.65rem, 12vw, 3.8rem);
    }

    .iz-hosted-event-landing h2 {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .iz-event-facts,
    .iz-event-ticket-panel {
        padding: 26px;
        border-radius: 24px;
    }

    .iz-event-value-grid,
    .iz-event-speaker-grid,
    .iz-event-ticket-options {
        grid-template-columns: 1fr;
    }

    .iz-event-value,
    .iz-event-speaker {
        min-height: 0;
        padding: 24px;
    }

    .iz-event-value__number,
    .iz-event-speaker__type {
        margin-bottom: 22px;
    }

    .iz-event-programme {
        grid-template-columns: 86px 1fr;
        gap: 18px;
    }

    .iz-event-button {
        width: 100%;
    }

    body.iz-hosted-event-page #post_map,
    body.iz-hosted-event-page #tickets {
        width: min(calc(100% - 2rem), var(--iz-event-transaction-width)) !important;
    }

    body.iz-hosted-event-page .iz-event-location-card,
    body.iz-hosted-event-page .iz-event-ticket-guide {
        padding: 22px;
    }

    body.iz-hosted-event-page #post_map .geodir-wgt-map,
    body.iz-hosted-event-page #post_map .geodir-map-wrap,
    body.iz-hosted-event-page #post_map .stick_trigger_container,
    body.iz-hosted-event-page #post_map .geodir_map_container,
    body.iz-hosted-event-page #post_map .map_background,
    body.iz-hosted-event-page #post_map .top_banner_section_in,
    body.iz-hosted-event-page #post_map .main_map_wrapper,
    body.iz-hosted-event-page #post_map .iprelative,
    body.iz-hosted-event-page #post_map .geodir-map-canvas,
    body.iz-hosted-event-page #post_map .loading_div {
        height: 230px !important;
        min-height: 230px !important;
    }
}
