/* MODAL/POPUP STYLES */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 3000;
            animation: fadeIn 0.3s ease-out;
        }

        .modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px;
            padding-top: 80px;
        }

        .modal {
            background: #3a3a3a;
            border-radius: 20px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
            animation: slideUp 0.4s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 25px 30px;
            border-bottom: 2px solid #555;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #e0e0e0;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 32px;
            color: #b0b0b0;
            cursor: pointer;
            transition: all 0.3s ease;
            line-height: 1;
        }

        .modal-close:hover {
            color: #e0e0e0;
        }

        .modal-body {
            padding: 30px;
        }

        /* HOUSE DETAILS MODAL */
        .house-image-gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }

        .house-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 48px;
        }

        .detail-section {
            margin-bottom: 25px;
        }

        .detail-section h3 {
            font-size: 20px;
            color: #e0e0e0;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .detail-item {
            background: #4a4a4a;
            padding: 15px;
            border-radius: 8px;
        }

        .detail-label {
            font-size: 12px;
            color: #b0b0b0;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .detail-value {
            font-size: 16px;
            color: #e0e0e0;
            font-weight: 600;
        }

        .activity-stats {
            background: rgba(74, 222, 128, 0.1);
            border: 2px solid #4ade80;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
        }

        .activity-stats.medium-stats {
            background: rgba(251, 191, 36, 0.1);
            border-color: #fbbf24;
        }

        .activity-stats.low-stats {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
        }

        .activity-stats h3 {
            color: #4ade80;
            margin-bottom: 15px;
        }

        .activity-stats.medium-stats h3 {
            color: #fbbf24;
        }

        .activity-stats.low-stats h3 {
            color: #ef4444;
        }

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

        .activity-stat {
            text-align: center;
        }

        .activity-stat-number {
            font-size: 28px;
            font-weight: 700;
            color: #4ade80;
        }

        .activity-stats.medium-stats .activity-stat-number {
            color: #fbbf24;
        }

        .activity-stats.low-stats .activity-stat-number {
            color: #ef4444;
        }

        .activity-stat-label {
            font-size: 12px;
            color: #b0b0b0;
            text-transform: uppercase;
            margin-top: 5px;
        }

        .nearby-places {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .nearby-tag {
            background: #4a4a4a;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            color: #b0b0b0;
        }
