/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0B1026; /* Midnight Blue */
    --accent-color: #C9A45C; /* Gold */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --overlay-color: rgba(11, 16, 38, 0.6); /* Dark Blue Overlay */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* Start transparent */
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}

.header.sticky {
    background: rgba(11, 16, 38, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-icon path {
    stroke: var(--accent-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff; /* White text on gold button as per image often, or dark if better contrast */
}

.btn-primary:hover {
    background-color: #b08d4b;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-property.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 16, 38, 0.3) 0%, rgba(11, 16, 38, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px; /* Offset for header */
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Bar */
.search-bar {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-field-wrapper {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    transition: background 0.3s;
}

.search-field-wrapper:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-select {
    width: 100%;
    padding: 15px 40px 15px 25px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

.search-select option {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px;
}

.field-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent-color);
    pointer-events: none;
}

.btn-search {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 0;
    padding: 0 40px;
    font-size: 1.1rem;
}

.btn-search:hover {
    background-color: #b08d4b;
}

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

.modal-content {
    background-color: #fff;
    color: var(--text-dark);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-dark);
}

#modal-message {
    font-size: 1.2rem;
    font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .search-bar {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }
    
    .nav-list {
        gap: 15px;
    }

    .hero-content {
        text-align: center;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .search-field-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-search {
        width: 100%;
        padding: 15px;
    }
}

/* Page Headers */
.page-header {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Property Grid */
.section {
    padding: 60px 0;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.property-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.property-details {
    padding: 20px;
    color: var(--text-dark);
}

.property-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.property-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.property-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.btn-card {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-card:hover {
    background-color: var(--accent-color);
}

/* Sell Page Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
}

.step {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.step-desc {
    color: var(--text-light);
    opacity: 0.8;
}

.valuation-cta {
    text-align: center;
    margin-top: 50px;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    color: var(--text-dark);
}

.contact-info h3, .contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #050814;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 15px;
    opacity: 0.7;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--accent-color);
}

.copyright {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive New Pages */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
