/* =========================================================================
   Floor Layout Style - Premium Grid & Interactions (Synced with Building)
   ========================================================================= */

.building-facade-section {
    padding: 60px 0;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.facade-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 30px;
}

.facade-navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.oda-back-to-facade {
    color: var(--text-subtitle);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.oda-back-to-facade:hover {
    color: var(--text-heading);
}

.facade-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-footer);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
}

/* ორიგინალი პრემიუმ გრიდი: 63% ნახაზი / 37% პანელი */
.facade-application-dashboard {
    display: grid;
    grid-template-columns: 63% 37%; 
    background: var(--bg-footer);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.dashboard-visual-workspace {
    position: relative;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(0,0,0,0.03) 100%);
    min-width: 0 !important; 
}

.tech-crosshairs span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--text-subtitle);
    opacity: 0.25;
}

.tech-crosshairs span:nth-child(1) { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.tech-crosshairs span:nth-child(2) { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.tech-crosshairs span:nth-child(3) { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.tech-crosshairs span:nth-child(4) { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.facade-graphic-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.facade-graphic-container > div.maphilighted {
    position: relative !important;
    display: block !important;
    max-width: 100% !important;
}

/* ვრცელდება როგორც კორპუსის, ისე სართულის გეგმარების სურათზე */
img.facade-main-render,
img#floor-plan-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.dashboard-control-panel {
    padding: 50px 45px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--switcher-btn-bg);
    min-width: 0 !important;
}

.panel-header {
    margin-bottom: 30px;
}

.panel-subtitle {
    color: var(--text-subtitle);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 6px;
}

.panel-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-heading);
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.panel-decor-line {
    width: 40px;
    height: 2px;
    background: var(--text-subtitle);
}

.panel-specifications {
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.panel-description-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 35px 0;
}

/* სელექტორის კონტეინერი ბინებისთვის */
.premium-floor-selector {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
}

/* სიის ელემენტები და ინტერაქციის ანიმაციები */
.floor-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--switcher-btn-bg);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.floor-meta-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.floor-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-subtitle);
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.floor-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.floor-hover-effect {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.view-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-main);
}

.arrow-diagonal {
    font-size: 14px;
    color: var(--bg-main);
}

.floor-row-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-subtitle);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* აქტიური ბინის ან ჰოვერის მდგომარეობა */
.floor-row-item:hover::before,
.floor-row-item.active-floor::before,
.floor-row-item.highlighted-apt::before {
    transform: scaleY(1);
}

.floor-row-item:hover .floor-num,
.floor-row-item:hover .floor-name,
.floor-row-item.active-floor .floor-num,
.floor-row-item.active-floor .floor-name,
.floor-row-item.highlighted-apt .floor-num,
.floor-row-item.highlighted-apt .floor-name {
    color: var(--bg-main);
}

.floor-row-item:hover .floor-hover-effect,
.floor-row-item.active-floor .floor-hover-effect,
.floor-row-item.highlighted-apt .floor-hover-effect {
    opacity: 1;
    transform: translateX(0);
}

area {
    outline: none;
    cursor: pointer;
}

/* თულთიპის პრემიუმ სტილი */
.facade-custom-tooltip {
    position: absolute;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.facade-custom-tooltip.is-active {
    opacity: 1;
}

.tooltip-pulse {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.tooltip-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: tooltipPulseAnim 1.5s infinite ease-in-out;
}

@keyframes tooltipPulseAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* რესპონსივი */
@media (max-width: 1120px) {
    .facade-application-dashboard {
        grid-template-columns: 1fr !important;
    }
    .dashboard-control-panel {
        border-left: 0;
        border-top: 1px solid var(--border-color);
        padding: 40px;
    }
}

@media (max-width: 575px) {
    .building-facade-section { padding: 120px 0; }
    .dashboard-visual-workspace { padding: 20px; }
    .dashboard-control-panel { padding: 30px 20px; }
    .panel-title { font-size: 28px; }
    .floor-row-item { padding: 16px 20px; }
}