/* ==========================================================================
   APARTMENT COMPARISON STUDIO SPECIFIC STYLES
   ========================================================================== */
.compare-page-main {
    padding: 120px 4% 80px 4%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.compare-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.compare-hero .hero-content {
    max-width: 600px;
}

.compare-hero h2 {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 20px;
}

.compare-hero p {
    font-size: 16px;
    color: var(--color-text-secondary-dark);
    line-height: 1.6;
}

.compare-illustration-wrapper {
    flex-grow: 1;
    max-width: 500px;
}

.svg-comparison-lines {
    width: 100%;
    opacity: 0.8;
}

.pulse-circle {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% { r: 6; fill: var(--color-gold); opacity: 1; }
    50% { r: 12; fill: #fff; opacity: 0.5; }
    100% { r: 6; fill: var(--color-gold); opacity: 1; }
}

/* Selector Panel styling */
.selection-section {
    margin-bottom: 40px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.selection-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(209, 168, 94, 0.15);
}

.selection-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    font-weight: 600;
}

.apt-selector {
    width: 100%;
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid rgba(209, 168, 94, 0.2);
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.apt-selector:focus {
    border-color: var(--color-gold);
}

/* Timeline row styling */
.timeline-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary-dark);
}

.timeline-toggles {
    display: flex;
    gap: 8px;
}

.timeline-btn {
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary-dark);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-btn:hover {
    color: #fff;
    border-color: rgba(209, 168, 94, 0.3);
}

.timeline-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: #fff;
}

/* Dashboard Side-by-Side Cards styling */
.dashboard-section {
    margin-bottom: 50px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dashboard-card {
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 500px;
}

/* Card Components inside dashboard-card */
.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-card-header .title-area h4 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.dash-card-header .title-area span {
    font-size: 12px;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.reserved {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dash-price-box {
    display: flex;
    flex-direction: column;
}

.dash-price-box .price-val {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.dash-price-box .price-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Panorama drag mock container */
.panorama-drag-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    border: 1px solid rgba(209, 168, 94, 0.15);
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    position: relative;
    cursor: grab;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.panorama-drag-container:active {
    cursor: grabbing;
}

.panorama-drag-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(9, 13, 22, 0.8) 100%);
    pointer-events: none;
}

.panorama-hud-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #fff;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
}

.drag-hud-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 13, 22, 0.7);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.panorama-drag-container:hover .drag-hud-overlay {
    opacity: 1;
}

/* Rating Stars block */
.lifestyle-rating-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-row span {
    font-size: 12px;
    color: var(--color-text-secondary-dark);
}

.stars-list {
    color: var(--color-gold);
    font-size: 11px;
    letter-spacing: 2px;
}

/* Detailed Matrix Table styling */
.matrix-section {
    margin-bottom: 50px;
}

.matrix-card {
    padding: 30px;
    border-radius: 24px;
}

.matrix-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matrix-table-wrapper {
    overflow-x: auto;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.matrix-table th {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(209, 168, 94, 0.2);
}

.matrix-table td {
    padding: 18px 20px;
    font-size: 13px;
    color: var(--color-text-secondary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: #fff;
}

.metric-label-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.metric-label-cell i {
    color: var(--color-gold);
    width: 18px;
    text-align: center;
}

/* Matrix progress bars */
.matrix-progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 260px;
}

.matrix-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.matrix-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.matrix-progress-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* AI Recommendation section styling */
.ai-recommendation-section {
    margin-bottom: 50px;
}

.ai-recommendation-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 30px;
}

.recommendation-card {
    padding: 30px;
    border-radius: 24px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rec-header i {
    font-size: 20px;
}

.rec-header h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.recommendation-card p {
    font-size: 13px;
    color: var(--color-text-secondary-dark);
    line-height: 1.6;
}

.border-gold {
    border: 1px solid rgba(209, 168, 94, 0.5);
    box-shadow: 0 10px 30px rgba(209, 168, 94, 0.08);
}

/* Actions Row styling */
.comparison-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.action-buttons-group {
    display: flex;
    gap: 12px;
}

/* Print Overrides for Luxury Comparison Report PDF */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .compare-page-main {
        padding: 20px !important;
    }
    header, .timeline-controls-row, .selection-section, .comparison-actions-row, .cursor-dot, .cursor-ring {
        display: none !important;
    }
    .glass-panel {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .matrix-progress-bar {
        background: #eee !important;
        border: 1px solid #ccc !important;
    }
    .matrix-progress-fill {
        background: #000 !important;
    }
}

/* Responsive configurations */
@media (max-width: 992px) {
    .selection-grid, .dashboard-grid, .ai-recommendation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
