/* StallLayout/index.php (moved from inline <style>) */

        :root {
            --primary-blue: #233862;
            --accent-gold: #f39c12;
            --bg-light: #f8fafc;
            --text-dark: #334155;
            --map-bg: #e0f2fe;
            --color-hall: #4361ee;
            --color-utility: #e5e7eb;
            --color-entry: #ef4444;
            --border-dark: #1e293b;
        }

        body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-light); color: var(--text-dark); margin: 0; padding: 0; line-height: 1.6; }

        .hero-section { background-color: #ffffff; padding: 60px 0 40px 0; text-align: center; border-bottom: 1px solid #e2e8f0; }
        .hero-title { font-size: 2.5rem; color: var(--primary-blue); margin: 0; text-transform: uppercase; letter-spacing: 2px; }

        .map-wrapper { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
        .map-scroll-container { width: 100%; overflow-x: auto; background: var(--map-bg); border: 2px solid var(--border-dark); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
        .map-canvas { min-width: 950px; padding: 20px; display: flex; flex-direction: column; gap: 30px; }

        .utility-row { display: flex; justify-content: center; gap: 20px; height: 80px; }
        .utility-box { background: var(--color-utility); border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: bold; font-size: 0.9rem; padding: 10px; }
        .vertical-text { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }

        .exhibition-row { display: flex; justify-content: space-between; gap: 20px; }
        .pathway { flex: 1; display: flex; flex-direction: column; justify-content: space-around; align-items: center; font-size: 1.5rem; color: var(--text-dark); letter-spacing: 4px; opacity: 0.6; text-transform: uppercase; }

        .dome-wrapper { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
        .dome-title-outside { font-weight: 800; font-size: 1.4rem; color: var(--primary-blue); margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase; }
        .dome-container { width: 350px; display: flex; border: 1px solid var(--border-dark); border-radius: 8px; background: white; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
        .dome-content { flex: 1; padding: 15px; display: flex; flex-direction: column; gap: 15px; }

        .stall-grid-c, .stall-grid-b { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--border-dark); border-left: 1px solid var(--border-dark); }

        .stall { border-right: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; width: 100%; height: 100%; box-sizing: border-box; transition: filter 0.2s; cursor: help; }
        .stall:hover { filter: brightness(0.85); }
        .booked-stall { cursor: pointer; }
        .booked-stall:hover { filter: brightness(1.1); outline: 2px solid var(--primary-blue); outline-offset: -2px; }
        .bg-d { aspect-ratio: 1 / 1; }

        .block-c { grid-column: 7 / 9; grid-row: 1 / 2; }
        .block-b { grid-column: 7 / 9; grid-row: 1 / 3; }
        .block-c-left { grid-column: 1 / 3; grid-row: 1 / 2; }
        .block-b-left { grid-column: 1 / 3; grid-row: 1 / 3; }

        .hall-box { background-color: var(--color-hall); color: white; width: 100%; flex: 1; border: 2px solid var(--border-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1); box-sizing: border-box; }

        .entry-row { display: flex; justify-content: center; margin-top: 0px; position: relative; top: -40px; }
        .gate { background: var(--color-entry); color: white; padding: 6px 20px; font-size: 0.85rem; font-weight: bold; border: 1px solid var(--border-dark); }
        .registration { background: var(--color-utility); padding: 6px 50px; font-size: 0.85rem; font-weight: bold; border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }

        .legend-row { display: flex; justify-content: space-around; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 2px dashed #94a3b8; }
        .legend-item { display: flex; align-items: center; gap: 10px; background: white; padding: 5px 15px; border: 1px solid var(--border-dark); border-radius: 4px; }
        .legend-color { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; border: 1px solid var(--border-dark); }
        .legend-text { font-size: 0.85rem; line-height: 1.2; }
        .total-stalls { text-align: center; font-size: 2.5rem; font-weight: 900; margin-top: 20px; color: var(--border-dark); }

        /* ================= STALL DETAIL MODAL ================= */
        .sm-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
        .sm-overlay.show { display: flex; }
        .sm-box { background: #fff; width: 620px; max-width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 14px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); padding: 26px 28px; position: relative; }
        .sm-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: none; border-radius: 50%; background: #f1f5f9; color: #64748b; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
        .sm-close:hover { background: #e2e8f0; color: #1e293b; }

        .sm-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid #e2e8f0; padding-right: 40px; }
        .sm-logo { width: 84px; height: 84px; flex: 0 0 84px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px; background: #fff; display: flex; align-items: center; justify-content: center; }
        .sm-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
        .sm-stall { display: inline-block; background: #fef3c7; color: #b45309; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 4px; letter-spacing: .08em; }
        .sm-name { font-size: 1.25rem; font-weight: 800; color: var(--primary-blue); margin: 7px 0 0; text-transform: uppercase; line-height: 1.3; }

        .sm-row { padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
        .sm-row:last-child { border-bottom: none; }
        .sm-label { display: inline-block; background: #f1f5f9; color: var(--primary-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 4px; margin-bottom: 6px; }
        .sm-label i { color: var(--accent-gold); margin-right: 5px; font-size: 10px; }
        .sm-val { font-size: 14px; color: #334155; font-weight: 500; line-height: 1.65; word-break: break-word; }
        .sm-val a { color: #2563eb; text-decoration: none; word-break: break-all; }
        .sm-val a:hover { text-decoration: underline; }

        @media (max-width: 640px) {
            .sm-box { padding: 20px; }
            .sm-logo { width: 62px; height: 62px; flex: 0 0 62px; }
            .sm-name { font-size: 1.05rem; }
        }
