/**
 * InsideFlow Events – Single Event Page Styles
 * BEM: .iy-event__*
 * Brand tokens: --iy-teal (#3B6063) / --iy-gold (#A77637) — with hex fallbacks for the remote embed
 */

/* ── Page wrapper / container ─────────────────────────── */

.iy-event {
    min-height: 60vh;
    padding: 24px 16px 48px;
}

.iy-event__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Back link ────────────────────────────────────────── */

.iy-event__back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--iy-teal, #3B6063);
    text-decoration: none;
    transition: opacity 0.2s;
}

.iy-event__back:hover {
    opacity: 0.7;
}

/* ── Passed notice ────────────────────────────────────── */

.iy-event__passed-notice {
    background: #fff8e6;
    border: 1px solid #ffe0a0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #7a5a00;
    margin-bottom: 16px;
}

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

.iy-event__hero {
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
}

.iy-event__hero-image {
    height: 40vw;
    min-height: 220px;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 25px;
}

.iy-event__hero-body {
    padding: 5px 5px 10px;
    position: relative;
}

/* ── Datebox ──────────────────────────────────────────── */

.iy-event__datebox {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ededed;
    overflow: hidden;
}

.iy-event__datebox-month {
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    padding: 4px 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.iy-event__datebox-day {
    color: #000;
    font-size: 24px;
    background: #f5f5f7;
    padding: 8px 14px;
    font-weight: 900;
    line-height: 1;
}

/* ── Type tag ─────────────────────────────────────────── */

.iy-event__type-tag {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
    /* Default: neutral */
    color: #555;
    background: #f0f0f0;
}

/* Teacher Training variants */
.iy-event__type-tag--teacher-training,
.iy-event__type-tag--teacher-training-200h,
.iy-event__type-tag--teacher-training-inside-flow {
    color: #4d80ec;
    background: #edf2fd;
}

/* Masterclass */
.iy-event__type-tag--masterclass {
    color: #838cf1;
    background: #f2f3fe;
}

/* Workshop */
.iy-event__type-tag--workshop {
    color: #e5a200;
    background: #fef9ec;
}

/* Special / Retreat */
.iy-event__type-tag--special,
.iy-event__type-tag--retreat {
    color: #3bc481;
    background: #e9faf3;
}

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

.iy-event__title {
    font-weight: 900;
    text-align: left;
    color: #000;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 36px;
    max-width: 680px;
    padding-right: 80px; /* clearance for datebox */
}

/* ── Meta row ─────────────────────────────────────────── */

.iy-event__meta {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.iy-event__meta-item {
    display: flex;
    gap: 14px;
    align-items: center;
}

.iy-event__meta-icon {
    background: #ededed;
    padding: 11px;
    border-radius: 6px;
    color: #000;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.iy-event__meta-icon svg {
    display: block;
}

.iy-event__meta-label {
    font-weight: 700;
    color: #000;
    font-size: 14px;
    margin: 0;
}

.iy-event__meta-sub {
    color: #000;
    opacity: 0.5;
    font-size: 13px;
    font-weight: 400;
    margin: 2px 0 0;
}

/* ── Details grid ─────────────────────────────────────── */

.iy-event__details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.iy-event__col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.iy-event__card {
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.iy-event__card-title {
    border-bottom: 1px solid #ececec;
    padding: 18px 20px;
    font-weight: 700;
    color: #000;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iy-event__card-title svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.iy-event__card-body {
    padding: 20px;
}

/* ── About card body ──────────────────────────────────── */

.iy-event__card--about .iy-event__card-body p {
    font-weight: 400;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.65;
}

.iy-event__card--about .iy-event__card-body a {
    text-decoration: underline;
    color: var(--iy-gold, #A77637);
}

.iy-event__content-link {
    text-decoration: underline;
    color: var(--iy-gold, #A77637);
    font-size: 14px;
}

/* ── Registration card ────────────────────────────────── */

.iy-event__price {
    font-weight: 800;
    font-size: 20px;
    color: #000;
    margin-bottom: 14px;
}

.iy-event__register-btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--iy-teal, #3B6063);
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.iy-event__register-btn:hover {
    opacity: 0.88;
    color: #fff;
}

/* ── Location card ────────────────────────────────────── */

.iy-event__map {
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Leaflet custom marker reset */
.iy-event-marker {
    background: none !important;
    border: none !important;
}

.iy-event__location-text {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    margin: 0 0 14px;
}

.iy-event__location-link {
    color: var(--iy-teal, #3B6063);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    transition: opacity 0.2s;
}

.iy-event__location-link:hover {
    opacity: 0.75;
    color: var(--iy-teal, #3B6063);
}

.iy-event__location-link svg {
    flex-shrink: 0;
}

/* ── Host card ────────────────────────────────────────── */

.iy-event__host {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

.iy-event__host-avatar,
.iy-event__card--host .iy-event__card-body img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.iy-event__host-info {
    display: flex;
    flex-direction: column;
}

.iy-event__host-name {
    font-weight: 700;
    color: #000;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

.iy-event__host-type {
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}

.iy-event__host-cta {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    text-align: center;
    padding: 11px;
    font-weight: 700;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    margin-top: 22px;
    transition: all 0.2s ease;
}

.iy-event__host-cta:hover {
    border-color: var(--iy-gold, #A77637);
    color: var(--iy-gold, #A77637);
    background: #f4f1ed;
}

/* ── Responsive: ≤ 768px ──────────────────────────────── */

@media only screen and (max-width: 768px) {
    .iy-event__details {
        grid-template-columns: 1fr;
    }

    .iy-event__meta {
        flex-direction: column;
        gap: 20px;
    }

    .iy-event__hero-image {
        height: 50vw;
        min-height: 160px;
    }
}

/* ── Responsive: ≤ 480px ──────────────────────────────── */

@media only screen and (max-width: 480px) {
    .iy-event__hero {
        padding: 12px;
    }

    .iy-event__datebox {
        display: none;
    }

    .iy-event__title {
        font-size: 22px;
        margin-bottom: 24px;
        padding-right: 0;
        max-width: 100%;
    }

    .iy-event__type-tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    .iy-event__register-btn {
        display: block;
        text-align: center;
    }
}
