/* CSS Variables & Theme Tokens */
:root {
    /* Colors */
    --bg-dark: #FDFBF7;
    --bg-card: #FFFFFF;
    --text-primary: #3E2723;
    --text-secondary: #5D4037;
    --accent-color: #8D6E63;
    --accent-glow: rgba(141, 110, 99, 0.3);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Layout/Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(141, 110, 99, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography styles */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h2 span, h1 span {
    color: var(--accent-color);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary, .btn-primary-outline {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-primary-outline:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-top: 5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* Search Box */
.search-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.08);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 150px;
    border-right: 1px solid var(--glass-border);
    padding-right: 1rem;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.search-field input, .search-field select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-field input::placeholder {
    color: rgba(62, 39, 35, 0.5);
}

.search-field select option {
    background: var(--bg-dark);
}

/* Properties Section */
.properties {
    padding: var(--spacing-lg) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

.view-all {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.view-all::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.view-all:hover::after {
    width: 100%;
}

.grid-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(62, 39, 35, 0.08);
    border-color: var(--accent-color);
}

.card-img {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.glass-card:hover .card-img img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.features {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

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

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(141, 110, 99, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* About Section */
.about {
    padding: var(--spacing-lg) 0;
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-bullets {
    margin-top: var(--spacing-md);
}

.about-bullets li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Section with Profiles */
.contact {
    padding: var(--spacing-lg) 0;
}

.contact-wrapper {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    align-items: center;
}

.contact-text {
    flex: 1;
    padding-right: var(--spacing-md);
}

.contact-text p {
    color: var(--text-secondary);
}

.contact-profiles {
    display: flex;
    flex: 1.2;
    gap: var(--spacing-md);
    justify-content: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

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

.profile-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.profile-details .role {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand .logo {
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-text {
        padding-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-profiles {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links a {
        display: none;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .search-field:last-of-type {
        border-bottom: none;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }

    .contact-profiles {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(62, 39, 35, 0.5); /* Coffee-tinted backdrop */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: #FDFBF7;
    margin: 5vh auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(62, 39, 35, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-secondary);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: 1rem;
    align-items: start;
}

.modal-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-box {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(62, 39, 35, 0.08);
    border: 1px solid var(--glass-border);
    background: #FFFFFF;
}

.content-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.content-box.interactive-box {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(141, 110, 99, 0.05);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-info {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.modal-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.modal-features {
    display: flex;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
    margin-bottom: 1rem;
}

.modal-features span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-price {
    margin-bottom: 1rem;
}

.modal-price .price {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.modal-map iframe {
    /* Styles iframe slightly sepia to match the formal cafe/white UI */
    filter: sepia(0.35) grayscale(0.5) contrast(1.1);
}

.modal-btn-contact {
    text-align: center;
    display: inline-block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
}

 

@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-media img {
        min-height: 250px;
        height: 250px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}
