/* Virtual Tour Kantor PTSP */

.ot-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background:
        radial-gradient(900px 420px at 8% 0%, rgba(15, 157, 138, 0.12), transparent 55%),
        radial-gradient(700px 360px at 95% 30%, rgba(11, 79, 122, 0.1), transparent 50%),
        #f5f8fb;
}

.ot-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.ot-copy .section-kicker { margin-bottom: 0.4rem; }
.ot-copy h2 {
    margin: 0 0 0.75rem;
    font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
    color: #0b2f44;
}
.ot-copy p {
    margin: 0 0 1rem;
    color: #456074;
    line-height: 1.6;
}

.ot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.ot-stat {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(11, 79, 122, 0.12);
    font: 600 0.82rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
    color: #0b4f7a;
}

.ot-preview {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    min-height: 320px;
    background: #0b1722;
    box-shadow: 0 24px 50px rgba(11, 47, 68, 0.16);
    cursor: pointer;
    text-align: left;
}

.ot-preview img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.ot-preview-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, transparent, rgba(8, 20, 32, 0.82));
    color: #fff;
}

.ot-preview-cap strong {
    display: block;
    font: 700 1.05rem/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}

.ot-preview-cap span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.ot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

body.ot-open { overflow: hidden; }

.ot-modal[hidden] { display: none !important; }

.ot-modal {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: grid;
    place-items: center;
    padding: 0.75rem;
}

.ot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 32, 0.78);
    backdrop-filter: blur(6px);
}

.ot-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    height: min(860px, calc(100dvh - 1.5rem));
    display: grid;
    grid-template-columns: 240px minmax(280px, 340px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    background: #0b1722;
    color: #e8eef4;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.ot-modal-head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 157, 138, 0.16), transparent);
}

.ot-modal-head p {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fd0c3;
}

.ot-modal-head h2 {
    margin: 0.2rem 0 0;
    font: 700 1.2rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
}

.ot-modal-head span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: rgba(232, 238, 244, 0.7);
}

.ot-close {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.ot-side {
    overflow: auto;
    padding: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
}

.ot-floor-tabs {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.ot-floor-tab {
    display: grid;
    gap: 0.15rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ot-floor-tab em {
    font-style: normal;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8fd0c3;
}

.ot-floor-tab strong {
    font: 700 0.86rem/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}

.ot-floor-tab.is-active {
    background: rgba(15, 157, 138, 0.22);
    border-color: transparent;
}

.ot-side-label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(232, 238, 244, 0.55);
}

.ot-room {
    width: 100%;
    display: grid;
    gap: 0.15rem;
    text-align: left;
    border: 0;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.35rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ot-room:hover,
.ot-room.is-active {
    background: rgba(15, 157, 138, 0.18);
}

.ot-room-type {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8fd0c3;
}

.ot-room strong {
    font: 700 0.88rem/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}

.ot-map-pane {
    padding: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
    overflow: auto;
    background: rgba(255, 255, 255, 0.02);
}

.ot-map-card {
    display: grid;
    gap: 0.65rem;
    height: 100%;
    min-height: 320px;
}

.ot-map-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ot-map-head strong {
    font: 700 0.9rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
}

.ot-map-head span {
    font-size: 0.75rem;
    color: rgba(232, 238, 244, 0.6);
}

.ot-map-stage {
    position: relative;
    flex: 1;
    min-height: 300px;
    height: clamp(300px, 46vh, 460px);
    border-radius: 14px;
    background: #edf3f8;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(11, 79, 122, 0.08);
}

.ot-map-stage--real {
    background: #f4f7fa;
}

.ot-map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
}

.ot-map-bg--soft {
    opacity: 0.18;
}

.ot-floor-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
}

.ot-svg-outer {
    stroke: #0b4f7a;
    stroke-width: 8;
    stroke-linejoin: round;
}

.ot-svg-wall {
    fill: none;
    stroke: #163a52;
    stroke-width: 6;
    stroke-linecap: square;
}

.ot-svg-door {
    fill: #f0c36a;
    stroke: #c7922e;
    stroke-width: 1;
}

.ot-svg-corridor {
    fill: rgba(15, 157, 138, 0.08);
    stroke: rgba(15, 157, 138, 0.25);
    stroke-width: 1;
    stroke-dasharray: 6 4;
}

.ot-svg-stairs rect {
    fill: #d9e6f0;
    stroke: #0b4f7a;
    stroke-width: 2;
}

.ot-svg-stairs line {
    stroke: #0b4f7a;
    stroke-width: 1.5;
}

.ot-svg-stairs text,
.ot-svg-north text,
.ot-svg-title {
    fill: #0b4f7a;
    font: 700 13px "Plus Jakarta Sans", system-ui, sans-serif;
    text-anchor: middle;
}

.ot-svg-title {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.ot-svg-north circle {
    fill: #fff;
    stroke: #0b4f7a;
    stroke-width: 2;
}

.ot-svg-north path {
    fill: #0f9d8a;
}

.ot-svg-room {
    cursor: pointer;
}

.ot-svg-room rect {
    fill: rgba(15, 157, 138, 0.18);
    stroke: #0f9d8a;
    stroke-width: 2.5;
    transition: fill 0.2s ease, stroke-width 0.2s ease;
}

.ot-svg-room text {
    fill: #0b2f44;
    font: 700 15px "Plus Jakarta Sans", system-ui, sans-serif;
    text-anchor: middle;
    pointer-events: none;
}

.ot-svg-room .ot-svg-sub {
    fill: #0f9d8a;
    font-size: 12px;
    font-weight: 700;
}

.ot-svg-room:hover rect,
.ot-svg-room.is-active rect {
    fill: rgba(15, 157, 138, 0.38);
    stroke: #087a6b;
    stroke-width: 3.5;
}

.ot-svg-room:focus {
    outline: none;
}

.ot-svg-room:focus rect {
    stroke: #0b4f7a;
    stroke-width: 4;
}

.ot-map-legend {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: rgba(232, 238, 244, 0.65);
}

.ot-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #0f9d8a;
    display: inline-block;
}

.ot-stage {
    position: relative;
    min-height: 0;
    background: #050b11;
}

.ot-pano-host {
    position: absolute;
    inset: 0;
}

.ot-pano-host .pnlm-container {
    background: #050b11 !important;
}

.ot-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .ot-shell { grid-template-columns: 1fr; }
    .ot-modal-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto minmax(280px, 1fr);
        height: min(960px, calc(100dvh - 1rem));
    }
    .ot-side,
    .ot-map-pane {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .ot-side { max-height: 210px; }
    .ot-map-pane { max-height: none; }
    .ot-map-stage { height: 220px; min-height: 220px; }
    .ot-stage { min-height: 40dvh; }
}
