/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    background-color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__figure {
    margin: 0;
    z-index: 10;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: aliceblue;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav__link:hover {
    color: #1a4d7a;
}

.nav__input {
    display: none;
}

.nav__toggle {
    display: none;
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #357ABD;
}

.breadcrumb span {
    color: #666;
}

/* Property Hero Header */
.property-hero-header {
    padding: 2rem 0 1.5rem;
}

.property-hero-header .property-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.property-hero-header .property-badge.sale {
    background: #e74c3c;
    color: #fff;
}

.property-hero-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.property-hero-header .location {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: #666;
    font-weight: 500;
}

/* Carousel Container */
.property-hero {
    background: #f5f5f5;
    padding: 0 0 60px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 650px;
    background-color: #f9f7f4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4A90E2;
}

.carousel-image-placeholder p {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #1a1a1a;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: #4A90E2;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: #4A90E2;
    border-color: #fff;
    transform: scale(1.3);
}

/* Autoplay Button */
.carousel-autoplay-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 18px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-autoplay-btn:hover {
    background: #4A90E2;
    transform: scale(1.1);
}

/* Property Details Section */
.property-details-section {
    padding: 80px 20px;
    background: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.main-details {
    background: #fff;
}

.property-header {
    margin-bottom: 2rem;
}

.property-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.property-badge.sale {
    background: #e74c3c;
    color: #fff;
}

.property-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.location {
    font-size: 1.3rem;
    color: #666;
}

.price-section {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
}

.price-per-sqm {
    font-size: 1rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4A90E2;
}

.feature-icon i {
    color: #4A90E2;
    font-size: 2rem;
}

.feature-text strong {
    display: block;
    font-size: 1.8rem;
    color: #1a1a1a;
}

.feature-text span {
    font-size: 0.95rem;
    color: #666;
}

.description-section,
.amenities-section {
    margin-bottom: 3rem;
}

.description-section h2,
.amenities-section h2 {
    font-size: 2rem;
    color: #4A90E2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.description-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.amenity-item {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #4A90E2;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: #e9ecef;
    padding-left: 1.5rem;
}

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-form-detail input,
.contact-form-detail textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Times New Roman', Times, serif;
    transition: all 0.3s ease;
}

.contact-form-detail input:focus,
.contact-form-detail textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.agent-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.agent-info h4 {
    font-size: 1.3rem;
    color: #4A90E2;
    margin-bottom: 1rem;
}

.agent-info p {
    margin-bottom: 0.5rem;
}

.contact-link {
    display: block;
    padding: 12px;
    background: #f8f9fa;
    color: #4A90E2;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link:hover {
    background: #4A90E2;
    color: #fff;
}

.share-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.share-section h4 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-btn {
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.share-btn.instagram:hover {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    color: #fff;
    border-color: transparent;
}

.share-btn.copy-link:hover {
    background: #5DADE2;
    color: #fff;
    border-color: #5DADE2;
}

/* Video Section */
.video-section {
    padding: 40px 20px;
    background: #f8f9fa;
}

.video-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
}

.video-section p {
    color: #555;
    margin-bottom: 1rem;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link-note {
    margin-top: 0.8rem;
    color: #666;
    font-size: 0.95rem;
}

/* Back Section */
.back-section {
    padding: 40px 20px;
    background: #f8f9fa;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 15px 40px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #4A90E2;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        background-color: black;
    }

    .nav__container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        --icon-toggle-menu: url("./assets/menu.svg");
        --transform-menu-show: translate(-100%);
    }

    .nav__container:has(.nav__input:checked) {
        --icon-toggle-menu: url("./assets/close.svg");
        --transform-menu-show: translate(0);
    }

    .nav__toggle {
        width: 40px;
        height: 40px;
        background-image: var(--icon-toggle-menu);
        filter: invert(1); 
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: background-image .5s;
        cursor: pointer;
        z-index: 10;
        border: none;
        background-color: transparent;
        display: block;
    }

    .nav__list {
        transform: var(--transform-menu-show);
        position: fixed;
        inset: 0;
        background-color: black;
        display: grid;
        place-content: center;
        gap: 2.5rem;
        text-align: center;
        transition: .5s transform;
        margin: 0;
        padding: 0;
        z-index: 9;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .nav__input:checked ~ .nav__list {
        transform: translate(0);
    }

    .nav__link {
        color: #4A90E2;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        transition: all 0.3s ease;
        padding: 10px 15px;
        border-radius: 5px;
    }

    .nav__link:hover {
        color: #ffffff;
        background-color: #4A90E2;
        transform: scale(1.05);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: relative;
        top: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-container {
        height: 65vh;
        max-height: 700px;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .property-header h1 {
        font-size: 2rem;
    }

    .price-tag {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 60vh;
        max-height: 580px;
    }

    .carousel-btn {
        padding: 0.6rem 1rem;
        font-size: 1.5rem;
    }

    .carousel-indicators {
        bottom: 15px;
    }
}

/* Carousel Image Styles */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
