/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #8B6F47;        
    --secondary-color: #D4AF8C;      
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #F5F1E8;             
    --dark-color: #2D2416;          
    --accent-brown: #704214;         
    --cream: #FFF8F0;               
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(139, 111, 71, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, #8B6F47 0%, #704214 100%);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 8px;
}

.navbar-nav .nav-link {
    margin-left: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #8B6F47 0%, #704214 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%238B6F47;stop-opacity:0.9" /><stop offset="100%" style="stop-color:%23704214;stop-opacity:0.9" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.35rem;
    font-weight: 300;
}

/* ===== SEARCH FORM ===== */
.search-form-container {
    margin-top: 2rem;
    animation: slideUp 0.8s ease-out;
}

.search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-form .form-control,
.search-form .form-select {
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(253, 149, 13, 0.25);
}

.search-form .form-control::placeholder {
    color: #999;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
    padding: 5rem 0;
}

.property-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.property-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #D4AF8C 0%, #8B6F47 100%);
}

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

.property-card:hover .property-image-wrapper img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.property-badge.featured {
    background: #ffc107;
    color: #333;
}

.property-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.property-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.property-details {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.property-detail-item {
    text-align: center;
}

.property-detail-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.property-detail-label {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 1rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-enquire {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-brown));
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-enquire:hover {
    background: linear-gradient(135deg, var(--accent-brown), #5a2e0f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.4);
}

/* ===== FILTER BUTTONS ===== */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-color);
    color: white;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 5rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 250px;
    background: linear-gradient(135deg, #D4AF8C 0%, #8B6F47 100%);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* ===== MAPS SECTION ===== */
.maps-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #F5F1E8 100%);
}

.maps-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.maps-container iframe {
    border-radius: var(--border-radius);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-section {
    padding: 5rem 0;
}

.enquiry-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(204, 141, 47, 0.25);
}

.enquiry-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.enquiry-form textarea {
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.enquiry-form .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3em;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.enquiry-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#successMessage {
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    animation: slideDown 0.5s ease-out;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 0;
}

.about-section h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: #555;
    transition: var(--transition);
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.features-list li:hover {
    padding-left: 1rem;
    color: var(--dark-color);
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2D2416 0%, #1a170d 100%);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 2rem 0 !important;
}

.newsletter-form .input-group {
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: #999;
}

.newsletter-form .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        min-height: 70vh;
        margin-top: 70px;
    }

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

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

    .search-form {
        padding: 1.5rem;
    }

    .search-form .row {
        flex-direction: column;
    }

    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer {
        text-align: center;
    }

    .footer ul {
        margin-top: 1rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .footer-bottom {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .search-form {
        border-radius: 8px;
    }

    .property-card {
        margin-bottom: 1.5rem;
    }

    .enquiry-form {
        padding: 1.5rem;
    }

    .about-section h3 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h4 {
        font-size: 2rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .enquiry-form {
        display: none;
    }

    body {
        background: white;
    }

    .property-card {
        page-break-inside: avoid;
    }
}