* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

#map-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

#map {
    flex: 1;
    height: 100%;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: calc(100vh - 90px);
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.side-panel.active {
    right: 0;
}

.side-panel-content {
    padding: 20px;
}

.close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.project-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-info p {
    margin-bottom: 8px;
    color: #666;
}

.property-types {
    margin-top: 20px;
}

.property-type-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.property-type-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.specs {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.image-gallery {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.contact-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.contact-btn:hover {
    background: #2980b9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.btn:hover {
    background: #2980b9;
}



/* Removed hidden class to ensure ad banner is always visible */

.bottom-banner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.ad-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    height: 100%;
    position: relative;
}

.ad-image {
    height: 90px;
    width: 728px;
    object-fit: cover;
    max-width: 100%;
}

.ad-info {
    position: absolute;
    top: 5px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    opacity: 0.7;
}

.ad-sponsor {
    font-weight: bold;
    color: #333;
}

.ad-label {
    color: #666;
    font-style: italic;
}

.ad-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1002;
}

.ad-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Advertisement Map Overlay Styles */
.ad-marker {
    background: #ff6b35;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ad-marker::after {
    content: 'AD';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
    white-space: nowrap;
}

.ad-popup {
    min-width: 200px;
}

.ad-popup h4 {
    margin: 0 0 5px 0;
    color: #ff6b35;
    font-size: 14px;
}

.ad-popup p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
}

.ad-popup .ad-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.ad-popup .ad-btn:hover {
    background: #e55a2b;
}

/* Advertisement Styles */
.ad-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.ad-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    height: 100%;
    position: relative;
}

.ad-image {
    height: 90px;
    width: 728px;
    object-fit: cover;
    max-width: 100%;
}

.ad-info {
    position: absolute;
    top: 5px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    opacity: 0.7;
}

.ad-sponsor {
    font-weight: bold;
    color: #333;
}

.ad-label {
    color: #666;
    font-style: italic;
}

.ad-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1002;
}

.ad-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Adjust map container for ad */
#map-container {
    height: calc(100vh - 90px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .side-panel {
        width: 100%;
        right: -100%;
    }

    .image-gallery {
        flex-direction: column;
    }

    .image-gallery img {
        width: 100%;
        height: auto;
    }

    /* Advertisement Mobile Styles */
    .bottom-banner {
        height: 50px;
    }

    .ad-image {
        height: 50px;
        width: 320px;
    }

    .ad-info {
        top: 2px;
        right: 30px;
        font-size: 9px;
    }

    .ad-close {
        width: 20px;
        height: 20px;
        font-size: 14px;
        right: 5px;
    }

    /* Adjust map container for mobile ad */
    #map-container {
        height: calc(100vh - 50px);
    }
}

@media (max-width: 480px) {
    .ad-image {
        width: 100%;
        object-fit: cover;
    }

    .ad-info {
        display: none;
    }
}