/* ============================================
   ASG IMMOBILIER - PROGRAMS PAGE SPECIFIC STYLES
   Split View & Interactive Map
   ============================================ */

/* Main Layout Split View */
.split-view-container {
    display: flex;
    height: calc(100vh - 120px);
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

.programs-side {
    flex: 0 0 55%;
    height: 100%;
    overflow-y: auto;
    padding-right: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--champagne-gold) transparent;
}

.map-side {
    flex: 0 0 45%;
    height: 100%;
    position: sticky;
    top: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Custom Marker Styling */
.custom-marker-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blinking-marker {
    width: 12px;
    height: 12px;
    background-color: var(--navy-blue);
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.blinking-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    opacity: 0.4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Program Card Enhancements */
.program-card.active {
    background-color: rgba(197, 184, 165, 0.05);
}

/* Grid for Split View - 2 Columns compact */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.program-image {
    height: 140px;
    /* Reduced for square look */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.program-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-image-overlay span {
    border-left: 2px solid var(--gold);
    padding-left: 0.5rem;
}

.program-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--navy-blue);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.program-content {
    padding: 0.75rem;
}

.program-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.program-location {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.program-features {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--navy-blue);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
}

/* Premium Filter Bar */
.premium-filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}


/* Modal & Reservation Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.privacy-group input {
    margin-top: 4px;
}

.privacy-group label {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.privacy-group a {
    color: var(--navy-blue);
    text-decoration: underline;
}

.w-100 {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .split-view-container {
        flex-direction: column;
        height: auto;
    }

    .programs-side,
    .map-side {
        flex: 1 1 auto;
        width: 100%;
    }

    .map-side {
        height: 400px;
        order: -1;
        margin-bottom: 2rem;
    }

    .programs-side {
        padding-right: 0;
        overflow-y: visible;
    }
}