:root {
    --primary-color: #1a1a1a;
    --accent-color: #c9a875;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --spacing: 2rem;
    --font-primary: 'Inter', sans-serif;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.hero {
    height: 85vh;
    max-height: 900px;
    position: relative;
    overflow: visible;
    padding-top: 60px;
    margin-bottom: 2rem;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.95);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.1) 60%,
        rgba(0,0,0,0.4) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    padding: 0 2rem;
    text-align: center;
    z-index: 3;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-content .lead {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.property-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3;
    padding: 1rem 0;
}

.property-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.address h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.address p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 0.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item .number {
    font-size: 1.25rem;
    font-weight: 600;
}

.stat-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.stat-item.price .number {
    font-size: 1.5rem;
    color: var(--accent-color);
}

@media (max-width: 1024px) {
    .property-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-stats {
        gap: 2rem;
        padding: 1rem;
    }
    
    .stat-item.price {
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item.price {
        border-right: none;
        padding-right: 0;
        width: 100%;
        margin-bottom: 1rem;
    }
}

.location {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-button {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cta-button.primary {
    background: var(--accent-color);
    color: black;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.property-highlights {
    padding: var(--spacing);
    background: var(--light-bg);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight .number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
}

.highlight .label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-description {
    position: relative;
    z-index: 2;
    background: white;
    padding-top: 2rem;
    margin-top: -4rem;
    border-radius: 20px 20px 0 0;
    padding: var(--spacing);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.property-description h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.property-description .lead {
    font-size: 1.3rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

.description-text {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description-text p {
    line-height: 1.8;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-color);
    line-height: 1.6;
}

.gallery {
    padding: var(--spacing);
    background: #fff;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.view-all-photos {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-all-photos:hover {
    background-color: var(--primary-color-dark);
}

.amenities {
    padding: var(--spacing);
    background: #f9f9f9;
}

.amenities h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.amenity:hover {
    transform: translateY(-5px);
}

.amenity i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amenity h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.amenity ul {
    list-style: none;
    padding: 0;
}

.amenity ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.amenity ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.virtual-tour {
    padding: var(--spacing);
    background: white;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.virtual-tour h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tour-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.tour-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.tour-container .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.tour-container .cta-button i {
    font-size: 1.4rem;
}

.contact {
    padding: var(--spacing);
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 4px;
}

.contact-form textarea {
    height: 150px;
}

footer {
    padding: 2rem;
    text-align: center;
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .property-description h2 {
        font-size: 2rem;
    }
    
    .property-description .lead {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-content {
    position: relative;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Property Details Styles */
.property-details {
    padding: var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card i {
    color: var(--primary-color);
    width: 20px;
}

/* Schools List */
.schools-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.school-rating {
    font-weight: 600;
    color: var(--primary-color);
}

.school-distance {
    color: #666;
    font-size: 0.9rem;
}

/* Neighborhood Stats */
.neighborhood-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Map Section */
.neighborhood-map {
    padding: var(--spacing);
    background: #f9f9f9;
}

.neighborhood-map h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.neighborhood-info {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nearby-places {
    margin-top: 2rem;
}

.nearby-places h4 {
    margin-bottom: 1rem;
}

.nearby-places ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.nearby-places li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nearby-places i {
    color: var(--primary-color);
    width: 20px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .neighborhood-stats {
        grid-template-columns: 1fr;
    }
    
    .nearby-places ul {
        grid-template-columns: 1fr;
    }
}

/* Dark/Gold Modal Styling */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem;
}

.contact-modal .modal-content {
    max-width: 900px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.booking-header {
    padding: 2.5rem 3rem;
    background: #1a1a1a;
    text-align: center;
    border-bottom: 1px solid rgba(201, 168, 117, 0.2);
    position: relative;
}

.booking-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.booking-header .contact-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.booking-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 500px;
    background: #1a1a1a;
}

.dates-column {
    border-right: 1px solid rgba(201, 168, 117, 0.2);
    background: #222;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dates-column::-webkit-scrollbar {
    display: none;
}

.date-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.2s ease;
    color: white;
}

.date-button:hover {
    background: #2a2a2a;
}

.date-button.active {
    background: #1a1a1a;
    position: relative;
}

.date-button.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.date-button .day {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.date-button .date {
    font-size: 1.125rem;
    color: white;
}

.times-column {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    align-content: start;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.times-column::-webkit-scrollbar {
    display: none;
}

.time-button {
    padding: 1rem;
    border: 1px solid rgba(201, 168, 117, 0.3);
    border-radius: 8px;
    background: #222;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    color: white;
}

.time-button:hover {
    background: #2a2a2a;
    border-color: var(--accent-color);
}

.time-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: black;
}

.contact-form {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #1a1a1a;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: #222;
    border: 1px solid rgba(201, 168, 117, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
    background: #2a2a2a;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: black;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 117, 0.2);
}

.back-button {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: translateY(-50%) translateX(-2px);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-modal {
        padding: 1rem;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .dates-column {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(201, 168, 117, 0.2);
        padding: 0.5rem;
    }

    .date-button {
        min-width: 120px;
        padding: 1rem;
        align-items: center;
        text-align: center;
    }

    .times-column {
        padding: 1.5rem;
        max-height: 300px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .booking-header {
        padding: 2rem 1.5rem;
    }

    .name-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modal Navigation */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

.nav-button.prev {
    left: 20px;
}

.nav-button.next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.featured {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.address-banner {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
}

.address-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
}

.address-content i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.address-content span {
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.property-stats {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
}

.stat-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item:first-child .number {
    color: var(--accent-color, #C5A572);
}

.stat-item .label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stat-grid {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 auto;
        min-width: 100px;
    }
}

/* Schools Section */
.schools {
    padding: var(--spacing) 2rem;
    background: var(--light-bg);
    max-width: 1400px;
    margin: 0 auto;
}

.schools h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.school-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.school-card:hover {
    transform: translateY(-2px);
}

.rating {
    background: #002B5C;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rating .score {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.rating .max {
    font-size: 0.8rem;
    opacity: 0.8;
}

.school-info h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.school-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.school-details i {
    margin-right: 0.25rem;
}

.schools-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .school-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Top Bar Mobile Styles */
@media (max-width: 768px) {
    .address-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .address-info {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .address-info i {
        flex-shrink: 0;
    }

    .address-info span {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cta-buttons {
        display: flex;
        width: 100%;
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cta-button {
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 6px;
        padding: 0;
    }    

    .cta-button.primary {
        flex: 1;
        padding: 0 1rem;
        margin-right: 0.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .cta-button.secondary {
        width: 44px;
        min-width: 44px;
        aspect-ratio: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-button.secondary i {
        margin: 0;
    }

    .cta-button.secondary span {
        display: none;
    }
}

/* Property Stats Mobile Styles */
@media (max-width: 768px) {
    .property-stats {
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.95);
    }

    .stat-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .stat-item {
        flex: 1;
        text-align: center;
        min-width: 0; /* Allows flex items to shrink below content size */
    }

    .stat-item .number {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }

    /* Hide all text labels */
    .stat-item .label span {
        display: none;
    }

    .stat-item .label::before {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.7rem;
    }

    
    /* Price styling */
    .stat-item:first-child .number {
        color: var(--accent-color);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .stat-grid {
        gap: 0.1rem;
        padding: 0 0.15rem;
    }

    .stat-item .number {
        font-size: 0.8rem;
    }

    .stat-item .label::before {
        font-size: 0.6rem;
    }
}

/* Hero Content Mobile Styles */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }
}

/* Extremely Small Screens */
@media (max-width: 360px) {
    .stat-grid {
        grid-template-columns: 1fr; /* Stack all stats vertically */
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .address-content span {
        font-size: 0.85rem;
    }
}

/* Fix top spacing for content below fixed header */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px; /* Increase padding to account for wrapped top bar */
    }
}

.cta-button {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.cta-button.primary {
    flex: 1;
    white-space: nowrap;
    min-width: 0;
}

.cta-button.secondary {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

/* Desktop-only width adjustments */
@media (min-width: 769px) {
    .cta-buttons {
        justify-content: flex-end;
        width: auto; /* Override the 100% width */
    }

    .cta-button.primary {
        max-width: 250px;
        flex: 0 1 auto;
    }

    .cta-button.secondary {
        min-width: 160px;
    }
}

/* Update mobile hero and stats positioning */
@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .hero-slider {
        position: relative;
        height: 60vh;
    }

    .hero-thumbnails {
        position: relative;
        bottom: auto;
        order: 2;
        background: #000;
        padding: 10px 0;
    }

    .property-stats {
        position: relative;
        order: 3;
        bottom: auto;
    }

    /* Adjust CTA buttons for mobile */
    .cta-buttons {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
    }

    .cta-button.primary {
        flex: 1;
        min-width: 60%;
        white-space: nowrap;
    }

    .cta-button.secondary {
        width: 48px; /* Fixed width for icon buttons */
        padding: 8px;
        aspect-ratio: 1;
    }

    /* Hide text in secondary buttons, show only icons */
    .cta-button.secondary span {
        display: none;
    }

    .cta-button.secondary i {
        margin: 0;
        font-size: 1.2rem;
    }

    /* Add more spacing above property description */
    .property-description {
        margin-top: 3rem;
    }

    .property-description h2 {
        margin-top: 2rem;
    }
}

/* Ensure proper spacing on larger screens */
@media (min-width: 769px) {
    .property-description {
        margin-top: 4rem;
    }
}

.hero-thumbnails {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 3;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    scroll-padding-left: max(20px, env(safe-area-inset-left));
    scroll-padding-right: max(20px, env(safe-area-inset-right));
}

/* Desktop styles */
@media (min-width: 769px) {
    .hero-thumbnails {
        bottom: calc(2rem + 100px); /* Place above stats bar on desktop */
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .hero-thumbnails {
        bottom: 100px; /* Original mobile positioning */
    }
}

.hero-thumbnail {
    width: 80px;
    height: 60px;
    flex: 0 0 80px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: border-color 0.3s ease;
    &:first-child {
        margin-left: 0;
    }
}

.hero-thumbnail.active {
    border-color: var(--accent-color);
}

/* Hide scrollbar but keep functionality */
.hero-thumbnails::-webkit-scrollbar {
    display: none;
}

.hero-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .property-stats {
        padding: 0.5rem 0;
    }
}

.hero-slider.dragging {
    cursor: grabbing;
}

.hero-slider {
    cursor: grab;
}

/* Add styles for smooth transition between hero and content */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Update Distinctive Features section */
.key-features {
    padding: var(--spacing);
    background: var(--light-bg);
    max-width: 1400px;
    margin: 0 auto;
}

.key-features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-columns .column {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.features-columns h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.features-columns ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-columns ul li::before {
    content: "";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Update Experience Property section */
.virtual-tour {
    padding: var(--spacing);
    background: white;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.virtual-tour h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tour-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.tour-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Update Prime Location section */
.location-highlights {
    padding: var(--spacing);
    background: var(--light-bg);
    max-width: 1400px;
    margin: 0 auto;
}

.location-highlights h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.location-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.location-content ul {
    list-style: none;
    padding: 0;
}

.location-content ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.location-content ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Add responsive styles for these sections */
@media (max-width: 768px) {
    .features-columns {
        grid-template-columns: 1fr;
    }
    
    .key-features h2,
    .virtual-tour h2,
    .location-highlights h2 {
        font-size: 2rem;
    }
    
    .tour-intro,
    .location-content p {
        font-size: 1rem;
    }
    
    .features-columns .column,
    .location-content {
        padding: 1.5rem;
    }
}

/* Feature Blocks Styling */
.smart-home-features,
.comfort-features,
.lifestyle-features {
    padding: var(--spacing);
    background: var(--light-bg);
    margin: 2rem 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding: 2rem;
}

.feature-content h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.feature-content ul {
    list-style: none;
    padding: 0;
}

.feature-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-content ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.feature-image {
    flex: 1;
    max-width: 500px;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 968px) {
    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .feature-content,
    .feature-image {
        width: 100%;
        max-width: 100%;
    }

    .feature-content {
        padding: 1rem;
    }
}

/* Section Title Styling */
section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

section .lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Property Description Title Fix */
.property-description h2 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
}

.key-destinations {
    padding: 4rem 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.key-destinations h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.destinations-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.destination-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.destination-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-info {
    padding: 2rem;
    flex-grow: 1;
}

.destination-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #333;
}

.distance-info {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.distance-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.distance-info i {
    color: #3498db;
}

@media (max-width: 768px) {
    .destination-card {
        flex-direction: column;
    }
    
    .destination-image {
        width: 100%;
    }
    
    .destination-info {
        padding: 1.5rem;
    }
}

/* Message Modal Styles */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.message-modal .modal-content {
    background: white;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.message-modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.message-form .form-group {
    margin-bottom: 1.5rem;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.message-form textarea {
    height: 150px;
    resize: vertical;
}

/* Update hero layout */
.hero-thumbnails {
    bottom: 100px; /* Position above stats bar */
}

.property-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10;
}

/* Ensure CTA buttons maintain proper spacing */
.cta-buttons {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .message-modal .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .cta-buttons {
        flex-wrap: wrap;
    }
    
    .cta-button.secondary {
        flex: 1;
    }
}

/* Comparable Sales Section */
.comparable-sales {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-container, .comparable-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.property-hero, .comparable-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.property-hero img, .comparable-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.property-badge, .sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 5;
    font-size: 0.9rem;
    color: white;
    background: var(--accent-color);
}

.sale-badge {
    background: #e53935;
    white-space: nowrap;
}

.property-info, .comparable-info {
    padding: 1rem 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    padding-top: 0.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat .value {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat .label {
    font-size: 0.875rem;
    color: #666;
}

.diff {
    font-size: 0.875rem;
    font-weight: normal;
}

.diff.negative {
    color: #e53935;
}

.diff.positive {
    color: #4caf50;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #c1a173;
    color: white;
    cursor: pointer;
}

.counter {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .property-container, .comparable-container {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.properties-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.property-media {
    position: relative;
    height: 200px;
}

.property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge, .sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 5;
    font-size: 0.9rem;
    color: white;
    background: var(--accent-color);
}

.sale-badge {
    background: #e53935;
    white-space: nowrap;
}

.comparison-stats {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 0; /* Remove gap */
}

.spec-item {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.spec-item:first-child {
    background: #f9f9f9;
    font-weight: 600;
}

.spec-label {
    font-weight: 500;
    background: #f9f9f9;
    padding: 1rem;
    width: 180px;
}

.spec-value {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.spec-value:last-child {
    border-left: 1px solid #eee;
}

.spec-value .diff-detail {
    color: #e53935;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.spec-value .diff-detail.positive {
    color: #4caf50;
}

@media (min-width: 769px) {
    .spec-value .diff-detail {
        display: inline;
    }
    .spec-value .diff.negative {
        display: none;
    }
}

@media (max-width: 768px) {
    .spec-item {
        grid-template-columns: 120px 1fr 1fr;
    }
    
    .spec-label {
        width: 120px;
        padding: 0.75rem;
    }
    
    .spec-value {
        padding: 0.75rem;
    }
    
    .spec-value .diff {
        display: inline;
    }
    
    .spec-value .diff-detail {
        display: none;
    }
}

.spec-label {
    font-weight: 500;
    background: #f9f9f9;
    min-width: 120px;
}

.spec-value {
    justify-content: center;
}

.spec-value:last-child {
    border-left: 1px solid #eee;
}

.diff {
    color: #e53935;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.spec-item .spec-value .diff-detail {
    display: none;
    font-size: 0.85rem;
    color: #e53935;
    margin-left: 0.5rem;
}

.spec-item .spec-value .diff-detail.positive {
    color: #4caf50;
}

@media (min-width: 769px) {
    .spec-item .spec-value .diff-detail {
        display: inline;
    }
    .spec-item .spec-value .diff.negative {
        display: none;
    }
}

@media (max-width: 768px) {
    .spec-item .spec-value .diff {
        display: inline;
    }
    .spec-item .spec-value .diff-detail {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .comparison-wrapper {
        padding: 1rem;
    }

    .properties-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 0 -0.5rem 1.5rem -0.5rem;
    }

    .property-media {
        height: 140px;
    }

    .property-content {
        padding: 0.75rem;
    }

    .property-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .distance {
        font-size: 0.8rem;
    }

    .spec-item {
        grid-template-columns: 100px 1fr 1fr;
    }

    .spec-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .spec-value {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .property-media {
        height: 120px;
    }

    .property-content h3 {
        font-size: 0.8rem;
    }

    .distance {
        font-size: 0.75rem;
    }
}

.property-content h3 {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.property-header .meta-info {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .property-content h3 {
        font-size: 0.9rem;
    }

    .property-header .meta-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .property-content h3 {
        font-size: 0.8rem;
    }

    .property-header .meta-info {
        font-size: 0.75rem;
    }
}