/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.header-phone {
    font-size: 18px;
    font-weight: 600;
}

.phone-link {
    color: #0066cc;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.btn-header {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-header:hover {
    background-color: #0052a3;
    color: #fff;
}

/* Photo Carousel - Top Section */
.photo-carousel-top {
    width: 100%;

    padding: 0;
}

.carousel-wrapper-top {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.carousel-container-top {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-slides-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
    width: max-content;
    gap: 10px;
}

.carousel-slide {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.carousel-image {
    max-width: none;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.2s, opacity 0.2s;
    opacity: 0.8;
}

.carousel-nav-btn:hover {
    background-color: #fff;
    opacity: 1;
}

.carousel-prev-btn {
    left: 20px;
}

.carousel-next-btn {
    right: 20px;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-indicators-top {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.indicator.active {
    background-color: #fff;
}

.carousel-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 20;
}

.carousel-wrapper-top .carousel-fullscreen-btn {
    bottom: 20px;
    right: 20px;
}

.carousel-fullscreen-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

/* Fullscreen Carousel Modal */
.carousel-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.carousel-fullscreen-modal.active {
    display: flex;
}

.carousel-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 10000;
}

.carousel-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-container-fullscreen {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.carousel-container-fullscreen .carousel-slides-wrapper {
    height: 100%;
}

.carousel-container-fullscreen .carousel-slide {
    width: 100%;
    height: 100%;
    padding: 0;
}

.carousel-container-fullscreen .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-indicators-fullscreen {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10001;
}

.carousel-indicators-fullscreen .indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators-fullscreen .indicator.active {
    background-color: #fff;
}

/* Property Header */
.property-header {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.property-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.property-location {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.property-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.meta-divider {
    color: #ccc;
}

/* Property Details Section */
.property-details {
    padding: 40px 0;
    background-color: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.details-main {
    max-width: 100%;
}

/* Photo Carousel - Constrained */
.photo-carousel-constrained {
    margin-top: 40px;
    max-width: 100%;
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    text-align: left;
}

.details-list {
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    font-weight: 500;
    color: #333;
    text-align: right;
}

.subsection-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    margin-top: 32px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    color: #333;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
    font-size: 20px;
}

/* Attachments List */
.attachments-list {
    margin-top: 16px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: #1D86EA;
    text-decoration: none;
    transition: color 0.2s;
}

.attachment-item:hover {
    color: #0066cc;
}

.attachment-item:visited {
    color: #1D86EA;
}

.attachment-item:hover:visited {
    color: #0066cc;
}

.attachment-name {
    font-size: 16px;
    font-weight: 500;
}

.attachment-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* Sidebar */
.details-sidebar {
    max-width: 100%;
}

.contact-box {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 24px;
}

.contact-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.contact-agent {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-agent:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.contact-agent h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-agent p {
    margin-bottom: 4px;
}

.contact-agent a {
    color: #0066cc;
    text-decoration: none;
}

.contact-agent a:hover {
    text-decoration: underline;
}

.company-info-box {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.company-info-box p {
    margin-bottom: 8px;
}

.company-info-box strong {
    color: #333;
    font-weight: 600;
}

.company-info-box a {
    color: #0066cc;
    text-decoration: none;
}

.company-info-box a:hover {
    text-decoration: underline;
}

/* Demographics Section */
.demographics {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.demographics .section-title {
    text-align: center;
}

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.demographic-item {
    background-color: #fff;
    padding: 24px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.demographic-value {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 8px;
}

.demographic-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.demographic-note {
    font-size: 12px;
    color: #666;
}

.source-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-top: 16px;
}

/* Map Section */
.map-section {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.map-section .section-title {
    text-align: center;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Section */
.contact {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.contact .section-title {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
}

.disclaimer {
    margin-bottom: 20px;
}

.disclaimer p {
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .carousel-wrapper {
        height: 600px;
    }

    .property-title {
        font-size: 36px;
    }

    .details-grid {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }

    .photo-carousel-constrained {
        max-width: 100%;
    }

    .demographics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .carousel-wrapper-top {
        height: 600px;
    }

    .property-title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-header {
        width: 100%;
        text-align: center;
    }

    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .meta-divider {
        display: none;
    }

    .demographics-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        flex-direction: column;
        gap: 8px;
    }

    .detail-value {
        text-align: left;
    }
}
