/* Sonia Booth Map — Covered Patio (scoped) */
.sonia-floor-plan-wrap {
    font-family: Arial, sans-serif;
    background: #e5e5e5;
    padding: 24px;
    box-sizing: border-box;
    /* Booth status colors (match map legend) */
    --sonia-booth-available: #F4639D;
    --sonia-booth-sold: #50A8E1;
    --sonia-booth-hold: #F9A61A;
}

.sonia-floor-plan-wrap *,
.sonia-floor-plan-wrap *::before,
.sonia-floor-plan-wrap *::after {
    box-sizing: border-box;
}

.sonia-floor-plan-wrap .booth-left { width: 75px; height: 48px; }
.sonia-floor-plan-wrap .booth-left rect { width: 50px; height: 48px; }

.sonia-floor-plan-wrap .top-booth { width: 80px; height: 95px; }
.sonia-floor-plan-wrap .top-booth rect { width: 80px; height: 95px; }

.sonia-floor-plan-wrap .bottom-booth { width: 80px; height: 105px; }
.sonia-floor-plan-wrap .bottom-booth rect { width: 80px; height: 95px; }

.sonia-floor-plan-wrap .middle-booth { width: 122px; height: 72px; }
.sonia-floor-plan-wrap .middle-booth rect { width: inherit; height: inherit; }

.sonia-floor-plan-wrap .right-booth {width: 50px;}
.sonia-floor-plan-wrap .right-booth rect {width: 80px;}
.sonia-floor-plan-wrap .right-booth#booth-19 { height: 55px; }
.sonia-floor-plan-wrap .right-booth#booth-19 rect {height: 55px;}
.sonia-floor-plan-wrap .right-booth#booth-20,
.sonia-floor-plan-wrap .right-booth#booth-21 { height: 89px; }
.sonia-floor-plan-wrap .right-booth#booth-20 rect,
.sonia-floor-plan-wrap .right-booth#booth-21 rect { height: 79px; }
.sonia-floor-plan-wrap .right-booth#booth-22,
.sonia-floor-plan-wrap .right-booth#booth-23,
.sonia-floor-plan-wrap .right-booth#booth-24 { height: 52px; }
.sonia-floor-plan-wrap .right-booth#booth-22 rect,
.sonia-floor-plan-wrap .right-booth#booth-23 rect,
.sonia-floor-plan-wrap .right-booth#booth-24 rect { height: 50px; }

.sonia-floor-plan-wrap .container {
    background: white;
    border-radius: 14px;
    padding: 20px 22px 26px;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.13);
}

.sonia-floor-plan-wrap .header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sonia-floor-plan-wrap .status-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 65px;
    flex-wrap: wrap;
    background: #111;
    border: 1px solid #2f2f2f;
    border-radius: 30px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 23px 27px;
}

.sonia-floor-plan-wrap .status-legend span {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.sonia-floor-plan-wrap .status-legend .swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.sonia-floor-plan-wrap .status-legend .swatch.available { background: var(--sonia-booth-available); }
.sonia-floor-plan-wrap .status-legend .swatch.sold { background: var(--sonia-booth-sold); }
.sonia-floor-plan-wrap .status-legend .swatch.on-hold { background: var(--sonia-booth-hold); }

.sonia-floor-plan-wrap .venue-select {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #bcbcbc;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    background: #f8f8f8;
    cursor: pointer;
    user-select: none;
    min-width: 200px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 30px;
}

.sonia-floor-plan-wrap .venue-select option {
    font-size: 12px;
    font-weight: 400;
}

/* Elementor Nested Tabs (Carlsbad / San Diego) replace the venue dropdown */
.sonia-floor-plan-wrap--elementor-tabs .sonia-venue-select-wrap {
    display: none !important;
}

/* Floor plan + sold booths live below tab panels (see floor-plan.js) */
.sonia-floor-plan-elementor-mount {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    clear: both;
    margin-top: 16px;
}

.sonia-floor-plan-elementor-mount > .elementor-widget-shortcode {
    width: 100%;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue {
    display: none;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue.is-active {
    display: block;
}

.sonia-floor-plan-wrap .sonia-floor-plan-empty {
    margin-top: 16px;
    padding: 24px;
    border: 1px dashed #c7c7c7;
    border-radius: 10px;
    background: #fafafa;
    color: #444;
    font-size: 14px;
}

.sonia-floor-plan-wrap svg {width: 100%;height: auto;display: block;overflow: unset;}

.sonia-floor-plan-wrap .booth { cursor: pointer; }

.sonia-floor-plan-wrap .booth rect {
    fill: var(--sonia-booth-available);
    stroke: #fff;
    stroke-width: 0.5;
    transition: opacity 0.15s, fill 0.15s;
}

.sonia-floor-plan-wrap .booth:hover rect { opacity: 0.78; }

.sonia-floor-plan-wrap .booth.booked rect {
    fill: var(--sonia-booth-sold);
    cursor: pointer;
}

.sonia-floor-plan-wrap .booth.on-hold rect {
    fill: var(--sonia-booth-hold);
}

.sonia-floor-plan-wrap .booth.selected rect {
    stroke: #c62828;
    stroke-width: 3;
}

/* Carlsbad floor plan (v2) — status colors from DB via .booked / .on-hold */
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page [class*="bg-[#F86FA3]"],
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page .absolute.border.border-white:not(.booked):not(.on-hold) {
    background-color: var(--sonia-booth-available) !important;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page .absolute.border.border-white.booked {
    background-color: var(--sonia-booth-sold) !important;
    cursor: pointer;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page .absolute.border.border-white.on-hold,
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page [class*="bg-[#F86FA3]"].on-hold,
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page [class*="bg-[#FEB012]"].on-hold {
    background-color: var(--sonia-booth-hold) !important;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="new-floor-plan"] .sonia-floor-plan-v2-page .absolute.border.border-white.selected {
    box-shadow: 0 0 0 3px #c62828;
    border-color: #c62828 !important;
}

.sonia-floor-plan-wrap .booth-label {
    font-size: 17px;
    font-weight: bold;
    pointer-events: none;
    fill: #000;
    text-anchor: middle;
    dominant-baseline: middle;
    font-family: 'gilroy';
}

.sonia-floor-plan-wrap .booth-price {
    font-size: 11px;
    font-weight: 600;
    fill: #000;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* San Diego map: keep booth text readable and consistent across all booths */
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="grand-hanalei"] .booth-label {
    font-size: 13px;
    font-weight: 700;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="grand-hanalei"] .booth-label.booth-label-sub {
    font-size: 8px;
    font-weight: 600;
}

/* Guard against global/theme SVG text rules overriding San Diego booth text size. */
.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="grand-hanalei"] .sonia-floor-plan-sd text.booth-label {
    font-size: 13px !important;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="grand-hanalei"] .sonia-floor-plan-sd text.booth-label.booth-label-sub {
    font-size: 8px !important;
}

.sonia-floor-plan-wrap .sonia-floor-plan-venue[data-venue="grand-hanalei"] .booth-price {
    font-size: 8px;
    font-weight: 700;
}

.sonia-floor-plan-wrap .sonia-booth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 16px;
    font-family: 'Poppins', system-ui, sans-serif;
}

.sonia-floor-plan-wrap .sonia-booth-modal-backdrop.is-open {
    display: flex;
}

.sonia-floor-plan-wrap .sonia-booth-added-toast {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 5;
    min-width: 200px;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: #15803d;
    box-shadow: 0 8px 24px rgba(21, 128, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sonia-floor-plan-wrap .sonia-booth-added-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sonia-floor-plan-wrap .sonia-booth-added-toast.is-remove {
    background: #b45309;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.35);
}

.sonia-floor-plan-wrap .sonia-booth-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: #f7f7f7;
    border-radius: 22px;
    padding: 34px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    border: 2px solid #d9d9d9;
    text-align: center;
}

.sonia-floor-plan-wrap .sonia-booth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
}

.sonia-floor-plan-wrap .sonia-booth-modal-close:hover {
    background: #ececec;
}

.sonia-floor-plan-wrap .sonia-booth-modal-image-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #ece8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
}

.sonia-floor-plan-wrap .sonia-booth-modal-image-wrap img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.sonia-floor-plan-wrap .sonia-booth-modal-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.sonia-floor-plan-wrap .sonia-booth-modal-status {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

.sonia-floor-plan-wrap .sonia-booth-modal-status.is-hold { color: var(--sonia-booth-hold); }
.sonia-floor-plan-wrap .sonia-booth-modal-status.is-sold { color: var(--sonia-booth-sold); }

.sonia-floor-plan-wrap .sonia-booth-modal-info {
    margin: 30px auto 22px;
    background: #ececec;
    border-radius: 28px;
    padding: 30px 24px 24px;
    max-width: 560px;
    text-align: left;
}

.sonia-floor-plan-wrap .sonia-booth-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

.sonia-floor-plan-wrap .sonia-booth-modal-field {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.sonia-floor-plan-wrap .sonia-booth-modal-label {
    display: block;
    font-weight: 600;
}

.sonia-floor-plan-wrap .sonia-booth-modal-dimensions {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-align: center;
}

.sonia-floor-plan-wrap .sonia-booth-modal-price-line {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.sonia-floor-plan-wrap--hide-prices .sonia-booth-modal-price-line {
    display: none;
}

.sonia-floor-plan-wrap .sonia-booth-modal-buy {
    display: block;
    min-height: 48px;
    line-height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #5aa2d8;
    color: #fff !important;
    margin: 18px auto 0;
    width: fit-content;
    max-width: 100%;
}

.sonia-floor-plan-wrap .sonia-booth-modal-buy.is-in-basket {
    background: #b45309;
}

.sonia-floor-plan-wrap .sonia-booth-modal-buy:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.sonia-floor-plan-wrap .sonia-booth-modal-buy.is-disabled {
    background: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.sonia-floor-plan-wrap #sonia-booth-date-actions {
    display: flex;
    gap: 12px;
    margin: 12px auto 0;
    width: 100%;
    max-width: 560px;
}

.sonia-floor-plan-wrap #sonia-booth-date-actions .sonia-date-btn {
    flex: 1 1 0;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #f4639d;
    border-radius: 6px;
    background: #fff;
    color: #cc3d78;
    font-family: 'Gilroy', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sonia-floor-plan-wrap #sonia-booth-date-actions .sonia-date-btn:hover:not(:disabled) {
    background: #f4639d;
    border-color: #f4639d;
    color: #fff;
}

.sonia-floor-plan-wrap #sonia-booth-date-actions .sonia-date-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .sonia-floor-plan-wrap .sonia-booth-modal {
        padding: 28px 16px 18px;
        border-radius: 18px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-title {
        font-size: 22px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-row {
        grid-template-columns: 1fr;
    }

    .sonia-floor-plan-wrap #sonia-booth-date-actions {
        flex-direction: column;
        gap: 10px;
    }

    .sonia-floor-plan-wrap #sonia-booth-date-actions .sonia-date-btn {
        font-size: 15px;
    }
}

/* ─── Mobile responsive ─────────────────────────────────── */
@media (max-width: 900px) {
    .sonia-floor-plan-wrap {
        padding: 12px 8px;
    }

    .sonia-floor-plan-wrap .container {
        padding: 12px 10px 18px;
        border-radius: 10px;
    }

    /* Allow the SVG floor plan to scroll sideways on small screens */
    .sonia-floor-plan-wrap .container > svg,
    .sonia-floor-plan-wrap .sonia-floor-plan-venue > svg,
    .sonia-floor-plan-wrap svg {
        min-width: 600px; /* keeps all booths readable */
    }

    /* Wrap the SVG in a horizontally scrollable box */
    .sonia-floor-plan-wrap .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sonia-floor-plan-wrap .status-legend {
        gap: 20px;
        padding: 14px 16px;
        border-radius: 20px;
    }

    .sonia-floor-plan-wrap .status-legend span {
        font-size: 13px;
    }

    .sonia-floor-plan-wrap .header {
        gap: 12px;
    }

    .sonia-floor-plan-wrap .venue-select {
        font-size: 11px;
        padding: 5px 10px;
    }

    .sonia-floor-plan-wrap .venue-select option {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .sonia-floor-plan-wrap .sonia-booth-modal-backdrop {
        padding: 8px;
        align-items: flex-end; /* slide up from bottom on phone */
    }

    .sonia-floor-plan-wrap .sonia-booth-modal {
        padding: 24px 14px 16px;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        width: 100%;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-image-wrap {
        width: 110px;
        height: 110px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-title {
        font-size: 20px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-info {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sonia-floor-plan-wrap .sonia-booth-modal-buy {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .sonia-floor-plan-wrap .status-legend {
        gap: 14px;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* Vendor info section inside sold-booth modal */
.sonia-floor-plan-wrap .sonia-booth-modal-vendor {
    margin-top: 16px;
    text-align: center;
}

.sonia-floor-plan-wrap .sonia-vendor-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.sonia-floor-plan-wrap .sonia-vendor-logo-img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.sonia-floor-plan-wrap .sonia-vendor-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 4px 0 0;
}
