/* style.css */
:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --accent: #2997ff;
    --accent-hover: #0071e3;
    --border-color: #d2d2d7;
    --hero-overlay: rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    background-color: #000;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.02);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2075&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    margin-top: 5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin: 1.5rem 0 2rem;
    font-weight: 300;
}

/* Properties Section */
.properties-section {
    padding: 6rem 4rem;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-info {
    padding: 2rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-inquire {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-inquire:hover {
    background-color: #e5e5ea;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #e5e5ea;
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.property-badge-group {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.property-badge {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #000;
    transform: scale(1.02);
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message i {
    font-size: 3rem;
    color: #34c759;
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .properties-section {
        padding: 4rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Property Details Page Styles --- */

.solid-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.property-page-header {
    margin-top: 5rem;
    padding: 2rem 4rem;
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
}

.image-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 60vh;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.side-images {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    height: 100%;
}

.side-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.property-page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 6rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.ref-badge {
    background: var(--bg-secondary);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 1rem;
}

.p-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.p-location {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.p-key-stats {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-box span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-box strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.p-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.p-section.border-none {
    border-bottom: none;
}

.p-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.p-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.features-list i {
    color: #34c759;
    /* Apple green */
}

.tech-spec-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
}

.tech-spec {
    font-size: 0.95rem;
}

.property-sidebar {
    position: relative;
}

.sticky-contact-box {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.s-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.s-taxes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.agent-info strong {
    display: block;
    font-size: 0.95rem;
}

.agent-info p {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .property-page-content {
        grid-template-columns: 1fr;
        padding: 0 2rem 4rem;
    }

    .property-page-header {
        padding: 2rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .side-images {
        display: none;
        /* Hide side images on small screens for simplicity, like many premium apps */
    }

    .main-image {
        height: 60vh;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}