/* Experience (v4) page styling
 * Built to visually match Figma: "The House of Legends" -> focus-id=1271-10579
 */

.reservation-v4 .se4-stepper {
    padding: 40px 120px 0;
    max-width: 1440px;
}

.reservation-v4 .se4-stepper .rv4-stepper-item {
    position: relative;
}

/* Make the dot container able to center the check icon */
.reservation-v4 .se4-stepper .rv4-stepper-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Completed step (Reservation) */
.reservation-v4 .se4-stepper .rv4-stepper-item.completed .rv4-stepper-dot {
    background: #c5a059;
    border-color: #c5a059;
}

.reservation-v4 .se4-stepper .rv4-stepper-item.completed + .rv4-stepper-line {
    background: #c5a059;
}

.reservation-v4 .se4-stepper .rv4-stepper-item.completed .rv4-stepper-label {
    color: #c5a059;
}

.reservation-v4 .se4-stepper .rv4-stepper-dot .se4-stepper-check {
    display: none;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reservation-v4 .se4-stepper .rv4-stepper-item.completed .rv4-stepper-dot .se4-stepper-check {
    display: block;
}

.se4-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 120px 80px;
}

.se4-card-row {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.se4-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start; /* prevent non-selected cards from stretching when budget expands */
    gap: 16px;
}

.se4-experience-card {
    position: relative;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    cursor: default;
    outline: none;
    user-select: none;
    border: 1px solid transparent;
    background: #2e2e2e;
}

.se4-experience-card--featured {
    background: #4d4d4d;
}

.se4-experience-card:focus-visible {
    border-color: #c5a059;
}

.se4-experience-card.selected {
    border-color: #c5a059;
}

/* Radio indicator */
.se4-card-radio {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
    z-index: 2;
}

/* Selection is now option-level, not card-level */
.se4-card-radio {
    display: none;
}

.se4-card-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.se4-experience-card.selected .se4-card-radio {
    border-color: #c5a059;
}
.se4-experience-card.selected .se4-card-radio-dot {
    background: #c5a059;
}

/* Sub-options */
.se4-card-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.se4-suboption {
    background: #4d4d4d;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    border: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 42px;
    gap: 12px;
}

.se4-suboption:focus-visible {
    border-color: #c5a059;
}

.se4-suboption.selected {
    border-color: #c5a059;
}

.se4-suboption-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.se4-suboption-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.se4-suboption-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
}

.se4-suboption.selected .se4-suboption-radio {
    border-color: #c5a059;
}

.se4-suboption.selected .se4-suboption-radio-dot {
    background: #c5a059;
}

.se4-suboption-name {
    color: #a6a6a6;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.se4-suboption-price {
    color: #e6e6e6;
    font-family: "Philosopher", serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    white-space: nowrap;
}

.se4-suboption-per {
    color: #808080;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* Card visual variants — frame hugs image (intrinsic size, capped by card width) */
.se4-card-image {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 12px;
    background-color: #f2f2f2;
    position: relative;
    overflow: hidden;
}

.se4-card-image-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.se4-card-image--budget {
    border-radius: 12px;
    background-color: #f2f2f2;
}

.se4-card-image--featured {
    border-radius: 12px;
    background-color: #f2f2f2;
}

.se4-card-image--vip {
    border-radius: 12px;
    background-color: #f2f2f2;
}

.se4-experience-card .se4-card-title {
    font-family: "Mulish", sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #ffffff;
    font-weight: 700;
}

.se4-experience-card .se4-card-desc {
    color: #a6a6a6;
    font-size: 16px;
    line-height: 24px;
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.se4-experience-card .se4-card-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.se4-experience-card .se4-card-price {
    font-family: "Philosopher", serif;
    font-size: 32px;
    line-height: 38px;
    color: #ffffff;
    font-weight: 400;
}

.se4-experience-card .se4-card-person {
    font-family: "Mulish", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #ffffff;
}

.se4-card-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    max-width: 50%;
    color: #ffffff;
    font-family: "Mulish", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.se4-card-badge--budget {
    background: #96712b;
}
.se4-card-badge--featured {
    background: #96712b;
}
.se4-card-badge--vip {
    background: #c5a059;
}

/* Fix selectors: map markup classes to style */
.se4-experience-card .se4-card-title { /* already */ }
.se4-experience-card .se4-card-desc { /* already */ }

/* Sidebar */
.se4-sidebar {
    width: 240px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #4d4d4d;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

.se4-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.se4-sidebar-poster {
    width: 160px;
    height: 237px;
    align-self: center;
    border-radius: 12px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.se4-sidebar-video-wrap {
    width: 100%;
    max-width: 260px;
    align-self: center;
    border-radius: 12px;
    overflow: hidden;
    background: #0f120e;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.se4-sidebar-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
    pointer-events: none;
    border: 0;
}

iframe.se4-sidebar-video.se4-sidebar-youtube {
    height: auto;
    vertical-align: bottom;
}

.se4-sidebar-title {
    font-family: "Decophile", serif;
    font-size: 32px;
    line-height: 40px;
    font-style: normal;
    font-weight: 400;
    color: #c5a059;
}

.se4-sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.se4-sidebar-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a6a6a6;
    font-family: "Mulish", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.se4-sidebar-bullet {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #a6a6a6;
    flex-shrink: 0;
}

.se4-sidebar-summary {
    border-top: 1px solid #4d4d4d;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.se4-sidebar-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.se4-sidebar-summary-label {
    color: #a6a6a6;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.se4-sidebar-summary-value {
    color: #ffffff;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-align: right;
}

.se4-sidebar-summary-row--total .se4-sidebar-summary-label,
.se4-sidebar-summary-row--total .se4-sidebar-summary-value {
    color: #c5a059;
    font-size: 16px;
    line-height: 24px;
}

/* Bottom CTA */
.se4-footer {
    background: #2e2e2e;
    padding: 24px 120px;
}

.se4-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    width: 836px;
}

.se4-btn-back,
.se4-btn-continue {
    height: 44px;
    padding: 8px 24px;
    border-radius: 800px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    user-select: none;
}

.se4-btn-back {
    background: #1a1a1a;
    border: 2px solid #dec89e;
    color: #dec89e;
    font-family: "Mulish", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-transform: none;
}

.se4-btn-continue {
    background: #4d4d4d;
    border: 2px solid transparent;
    color: #808080;
    font-family: "Mulish", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.se4-btn-continue:disabled {
    cursor: not-allowed;
}

.se4-btn-continue:not(:disabled) {
    background: #c5a059;
    color: #1a1a1a;
}

.se4-btn-continue:not(:disabled):hover {
    background: #d4b068;
}

@media (max-width: 1200px) {
    .se4-main,
    .se4-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .se4-footer-inner {
        width: 100%;
    }

    .se4-card-row {
        flex-direction: column;
    }

    .se4-sidebar {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .reservation-v4 .se4-stepper {
        padding: 24px 16px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .se4-main {
        padding: 24px 16px 80px;
    }

    .se4-card-row {
        align-items: center;
    }

    .se4-cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .se4-experience-card {
        width: min(360px, 100%);
    }

    /* Cards: compact typography/spacing (Figma mobile) */
    .se4-experience-card {
        padding: 16px;
        gap: 16px;
    }

    .se4-card-options {
        gap: 8px;
    }

    .se4-experience-card .se4-card-title {
        font-size: 16px;
        line-height: 24px;
    }

    .se4-experience-card .se4-card-desc {
        color: #a6a6a6;
        font-size: 14px;
        line-height: 20px;
        height: 72px;
        -webkit-line-clamp: 3;
    }

    .se4-card-badge {
        font-size: 14px;
        line-height: 20px;
        padding: 8px;
    }

    .se4-suboption {
        padding: 0 12px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid #808080;
    }

    /* Make price visually match Figma (big number + / person) */
    .se4-suboption-price {
        font-family: "Mulish", sans-serif;
        font-size: 18px;
        line-height: 28px;
        font-weight: 700;
    }

    .se4-suboption-per {
        font-size: 16px;
        line-height: 24px;
    }

    /* Sidebar: switch to row layout + hide selected-summary (Figma default) */
    .reservation-v4 .se4-sidebar {
        width: 100%;
        max-width: none;
        margin: 0;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .reservation-v4 .se4-sidebar-content {
        gap: 8px;
        flex: 1;
    }

    /* Summary block: full width so label/value rows align with details (left edge) */
    .reservation-v4 .se4-sidebar-summary {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
        display: flex;
    }

    .reservation-v4 .se4-sidebar-poster {
        width: 108px;
        height: 160px;
        margin: 0;
        max-width: none;
        aspect-ratio: 108 / 160;
    }

    .reservation-v4 .se4-sidebar-video-wrap {
        width: 100%;
        max-width: 260px;
    }

    .reservation-v4 .se4-sidebar-title {
        font-size: 32px;
        line-height: 40px;
        text-align: center;
    }

    .reservation-v4 .se4-sidebar-details {
        align-items: flex-start;
    }

    /* Reservation / zone: no .se4-sidebar-content — keep poster + title centered, details + summary full width left */
    .reservation-v4 .se4-sidebar > .se4-sidebar-poster {
        align-self: center;
    }

    .reservation-v4 .se4-sidebar > .se4-sidebar-title {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .reservation-v4 .se4-sidebar > .se4-sidebar-details {
        width: 100%;
        align-self: stretch;
        box-sizing: border-box;
    }

    .se4-footer {
        padding: 16px;
    }

    .se4-footer-inner {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }

    .se4-btn-back,
    .se4-btn-continue {
        width: auto;
        font-size: 16px;
        line-height: 24px;
    }

    .se4-btn-back {
        flex: 0 0 auto;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .se4-btn-continue {
        flex: 1 1 auto;
        padding: 8px 16px;
        min-width: 0; /* allow shrink without forcing wrap */
        white-space: nowrap;
    }

    .se4-btn-back span,
    .se4-btn-continue span {
        white-space: nowrap;
    }
}

