
/* ===== Map View Layout ===== */
.map-view-container {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* ===== Map Panel (Left Side - 65%) ===== */
.map-panel {
    flex: 0 0 65%;
    position: relative;
    background: #f0f0f0;
}

#propertyMap {
    width: 100%;
    height: 100%;
}

/* ===== Map Controls (Top of Map) ===== */
.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-search-box {
    flex: 1;
    max-width: 500px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 15px;
}

.map-filter-btn {
    padding: 10px 20px;
    background: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.map-filter-btn:hover {
    background: #667eea;
    color: #fff;
}

/* ===== Properties List Panel (Right Side - 35%) ===== */
.properties-list-panel {
    flex: 0 0 35%;
    background: #fff;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
}

.list-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.view-toggle-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-toggle-btn:hover {
    background: #667eea;
    color: #fff;
}

.properties-list {
    padding: 0;
}

/* ===== Map Property Card (List View in Sidebar) ===== */
.map-property-card {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 15px;
}

.map-property-card:hover {
    background: #f8f9fa;
}

.map-property-card.active {
    background: #e8f0fe;
    border-left: 4px solid #667eea;
}

.map-property-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.map-property-info {
    flex: 1;
}

.map-property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.map-property-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.map-property-details {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
}

/* ===== Custom Map Marker Popup ===== */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.marker-popup {
    min-width: 250px;
}

.marker-popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.marker-popup-content {
    padding: 12px;
}

.marker-popup-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.marker-popup-address {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.marker-popup-details {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.marker-popup-btn {
    width: 100%;
    padding: 8px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.marker-popup-btn:hover {
    background: #5568d3;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .map-view-container {
        flex-direction: column;
    }
    
    .map-panel {
        flex: 0 0 50%;
    }
    
    .properties-list-panel {
        flex: 0 0 50%;
    }
}
