@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --geki-bg: #f5f2ed;
    --geki-ink: #1a1a1a;
    --geki-accent: #c5a059; /* Gold/Brass accent */
    --geki-line: rgba(26, 26, 26, 0.15);
    --f-sans: 'Montserrat', sans-serif;
    --f-serif: 'Cormorant Garamond', serif;
}

.geki-360-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    transform-origin: center center;
    font-family: var(--f-sans);
    color: var(--geki-ink);
}

.geki-canvas-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

#geki-360-canvas {
    width: 100%;
    height: auto;
    cursor: grab;
    transition: opacity 0.5s ease;
}

#geki-360-canvas:active {
    cursor: grabbing;
}

#geki-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#geki-svg-overlay svg {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.geki-unit-poly {
    transition: fill 0.3s ease, opacity 0.3s ease;
}

/* Top Navigation Bar */
.geki-top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 150;
    color: #fff;
}

.geki-btn-back {
    background: #334e58;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.geki-breadcrumbs {
    font-size: 14px;
    display: flex;
    gap: 10px;
    opacity: 0.8;
}

.geki-breadcrumb-sep {
    opacity: 0.5;
}

/* Filter Bar */
.geki-filter-bar {
    position: absolute;
    top: 70px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 140;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.geki-filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.geki-filter-btn.active {
    background: #334e58;
    color: #fff;
    border-color: #334e58;
}

/* Side Panel / Bottom Sheet */
.geki-side-panel {
    position: absolute;
    top: 60px;
    left: -400px; /* Hidden by default */
    width: 380px;
    height: calc(100% - 60px);
    background: #fff;
    z-index: 160;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.geki-side-panel.active {
    left: 0;
}

.geki-panel-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.geki-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.geki-panel-unit-id {
    font-size: 24px;
    margin: 0;
    color: #334e58;
}

.geki-panel-price {
    font-size: 18px;
    font-weight: 600;
    color: #25D366;
}

.geki-panel-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.geki-floor-plan-img {
    width: 100%;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.geki-floor-plan-img img {
    width: 100%;
    height: auto;
}

.geki-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 30px;
}

.geki-panel-btn {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.geki-panel-btn.primary {
    background: #334e58;
    color: #fff;
}

.geki-panel-btn.secondary {
    background: #fff;
    border: 1px solid #334e58;
    color: #334e58;
}

.geki-panel-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.geki-footer-icons {
    display: flex;
    gap: 15px;
}

.geki-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

/* Compass */
.geki-compass {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .geki-side-panel {
        top: auto;
        bottom: -100%; /* Hidden bottom sheet */
        left: 0;
        width: 100%;
        height: 60%;
        transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .geki-side-panel.active {
        bottom: 0;
        left: 0;
    }

    .geki-top-nav {
        padding: 0 10px;
    }

    .geki-breadcrumbs {
        display: none; /* Hide breadcrumbs on mobile to save space */
    }

    .geki-filter-bar {
        top: 65px;
        right: 10px;
        left: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .geki-panel-content {
        padding: 20px;
    }

    .geki-panel-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .geki-panel-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px;
        font-size: 12px;
    }
}

.geki-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.geki-detail-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.geki-detail-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    display: block;
    margin-bottom: 2px;
}

.geki-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Loading State */
.geki-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    color: #fff;
    transition: opacity 0.8s ease;
}

.geki-loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.geki-loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--geki-accent);
    transition: width 0.3s ease;
}

.geki-modal-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--geki-accent);
    margin-bottom: 10px;
    display: block;
}

/* Technical Plan View */
.geki-tech-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 50;
}

.geki-tech-plan-active .geki-tech-plan-overlay {
    opacity: 1;
}

.geki-tech-plan-active #geki-360-canvas {
    opacity: 0.2;
}
