/* Sonia Booth Map — Covered Patio (scoped) */
.sonia-floor-plan-wrap {
    font-family: Arial, sans-serif;
    background: #e5e5e5;
    padding: 24px;
    box-sizing: border-box;
}

.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: #F86FA3; }
.sonia-floor-plan-wrap .status-legend .swatch.sold { background: #909090; }
.sonia-floor-plan-wrap .status-legend .swatch.on-hold { background: #F5A623; }

.sonia-floor-plan-wrap .venue-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #bcbcbc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    background: #f8f8f8;
    cursor: pointer;
    user-select: none;
}

.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: #F86FA3;
    stroke: #fff;
    stroke-width: 0.5;
    transition: opacity 0.15s;
}

.sonia-floor-plan-wrap .booth:hover rect { opacity: 0.78; }

.sonia-floor-plan-wrap .booth.booked rect {
    fill: #909090;
    cursor: not-allowed;
}

.sonia-floor-plan-wrap .booth.on-hold rect { fill: #F5A623; }

.sonia-floor-plan-wrap .booth.selected rect {
    stroke: #ff0000;
    stroke-width: 3;
}

.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-label-vertical { font-size: 15px; }

/* Modal (Buy Now → vendor login) */
.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-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: #d89017; }
.sonia-floor-plan-wrap .sonia-booth-modal-status.is-sold { color: #3e91c9; }

.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: inline-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;
}

.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;
}

@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;
    }
}

/* ─── 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 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: 13px;
        padding: 6px 12px;
    }
}

@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;
}
