* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0d1b2a;
    font-family: 'Roboto', sans-serif;
}

/* neutralise Odoo website layout wrappers */
#wrap,
.oe_structure,
.o_website_preview {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
}

/* ═══════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════ */
#vp_intro_overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999;
    background: #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}

#vp_intro_overlay.vp-intro-hiding {
    opacity: 0;
    pointer-events: none;
}

#vp_intro_window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#vp_intro_window video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#vp_intro_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #0d1b2a;
}

#vp_intro_label {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 18px 36px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

#vp_intro_expo_name {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#vp_intro_loading {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: vp-pulse 1.4s ease-in-out infinite;
}

@keyframes vp-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* ═══════════════════════════════════════
   MAIN APP LAYOUT
═══════════════════════════════════════ */
#vp_plan_app {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f0f2f5;
    z-index: 100;
}

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
#vp_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    min-height: 56px;
    background: #1f4986;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 100;
    gap: 12px;
}

#vp_topbar_left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

#vp_topbar_logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

#vp_topbar_name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vp_topbar_dates {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

#vp_topbar_dates i { font-size: 13px; }

#vp_topbar_right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vp-legend-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.vp-legend-available-pill {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.vp-legend-reserved-pill {
    background: rgba(234,102,119,0.25);
    color: #ffd0d6;
}

.vp-legend-dot-sm {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    border: 1.5px solid;
}

.vp-dot-available {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}

.vp-dot-reserved {
    background: rgba(234,102,119,0.5);
    border-color: #ea6677;
}

#vp_hint {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   SVG MAP
═══════════════════════════════════════ */
#vp_svg_map {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background: #fff;
}

#vp_svg_map:active { cursor: grabbing; }

#vp_map_holder {
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    will-change: transform;
}

#vp_map_holder svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════
   BOOTH OVERLAY STATES
═══════════════════════════════════════ */
.VP_Booth {
    fill: transparent !important;
    stroke: transparent !important;
    cursor: pointer;
    transition: fill 0.12s ease, stroke 0.12s ease;
    pointer-events: all;
}

.VP_Booth.vp-hover-booth {
    fill: rgba(31,73,134,0.18) !important;
    stroke: #1f4986 !important;
    stroke-width: 2px !important;
}

.VP_Booth.vp-reserved-booth {
    fill: rgba(234,102,119,0.14) !important;
    stroke: #ea6677 !important;
    stroke-width: 1.5px !important;
    cursor: pointer;
}

.VP_Booth.vp-reserved-booth.vp-hover-booth {
    fill: rgba(234,102,119,0.28) !important;
    stroke: #c0392b !important;
    stroke-width: 2px !important;
}

/* ═══════════════════════════════════════
   ZOOM CONTROLS
═══════════════════════════════════════ */
#vp_zoom_controls {
    position: absolute;
    right: 16px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 8px 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

#vp_zoom_controls button {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background 0.15s, color 0.15s;
    outline: none;
}

#vp_zoom_controls button:hover {
    background: #1f4986;
    color: #fff;
    border-color: #1f4986;
}

/* ═══════════════════════════════════════
   HOVER TOOLTIP  (non-interactive)
═══════════════════════════════════════ */
.vp-hover-tip {
    position: fixed;
    z-index: 8000;
    pointer-events: none;
    background: rgba(255,255,255,0.97);
    border: 1px solid #dde3ee;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 160px;
    max-width: 220px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.16);
    font-size: 12px;
    color: #333;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.vp-ht-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1f4986;
    margin-bottom: 4px;
}

.vp-ht-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.vp-ht-reserved-badge {
    display: inline-block;
    background: #ea6677;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.vp-ht-available-badge {
    display: inline-block;
    background: #1f4986;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.vp-ht-row {
    display: flex;
    gap: 6px;
    margin-top: 3px;
    color: #555;
}

.vp-ht-lbl {
    color: #aaa;
    min-width: 36px;
}

.vp-ht-type {
    display: inline-block;
    background: #1f4986;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 5px;
    margin: 4px 0 2px;
    letter-spacing: 0.3px;
}

.vp-ht-click-hint {
    margin-top: 7px;
    font-size: 10px;
    color: #1f4986;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
}

/* ═══════════════════════════════════════
   PINNED CARD  (interactive, links work)
═══════════════════════════════════════ */
.vp-pinned-card {
    position: fixed;
    z-index: 9000;
    pointer-events: auto;
    background: #fff;
    border: 1px solid #dde3ee;
    border-radius: 14px;
    padding: 18px 18px 14px;
    width: 260px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vp-pc-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #aaa;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.vp-pc-close:hover { color: #333; background: #f0f0f0; }

.vp-pc-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #eee;
    margin: 0 auto 10px;
    background: #fafafa;
}

.vp-pc-company {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #1f4986;
    margin-bottom: 10px;
    word-break: break-word;
}

.vp-pc-company a {
    color: #1f4986;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(31,73,134,0.3);
    transition: border-color 0.15s;
}

.vp-pc-company a:hover { border-color: #1f4986; }

.vp-pc-company-sub {
    text-align: center;
    font-size: 11.5px;
    color: #888;
    margin-top: -6px;
    margin-bottom: 8px;
    word-break: break-word;
}

.vp-ht-company-sub {
    font-size: 10.5px;
    color: #888;
    margin-top: -2px;
    margin-bottom: 3px;
}

.vp-pc-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.vp-pc-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.vp-pc-link i { font-size: 15px; }

.vp-pc-link-ig {
    background: rgba(225,48,108,0.08);
    color: #c13584;
}

.vp-pc-link-ig:hover { background: rgba(225,48,108,0.18); color: #c13584; }

.vp-pc-link-web {
    background: rgba(31,73,134,0.08);
    color: #1f4986;
}

.vp-pc-link-web:hover { background: rgba(31,73,134,0.18); color: #1f4986; }

.vp-pc-type-badge {
    display: inline-block;
    background: #eef2fa;
    color: #1f4986;
    border: 1px solid #c5d3ee;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin: 4px 0 10px;
    letter-spacing: 0.3px;
}

.vp-pc-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 10px 0 8px;
}

.vp-pc-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #444;
    margin-bottom: 4px;
}

.vp-pc-lbl {
    color: #aaa;
    min-width: 40px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   PRINT BUTTON
═══════════════════════════════════════ */
#vp_print_btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

#vp_print_btn:hover {
    background: rgba(255,255,255,0.25);
}

#vp_print_btn i { font-size: 15px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 600px) {
    .vp-legend-pill { display: none; }
    #vp_hint        { display: none; }
    #vp_topbar_name { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════
   PRINT  (landscape)
═══════════════════════════════════════ */
@media print {
    @page { size: landscape; margin: 8mm; }

    /* hide everything except the map */
    #vp_intro_overlay,
    #vp_topbar,
    #vp_zoom_controls   { display: none !important; }

    html, body,
    #wrap, .oe_structure,
    #vp_plan_app,
    #vp_svg_map,
    #vp_map_holder      {
        position: static !important;
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
        background: #fff !important;
    }

    #vp_map_holder {
        transform: none !important;
    }

    #vp_map_holder svg {
        width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
}
