:root {
    --primary-orange: #F05A00;
    --primary-navy: #0B2545;
    --accent-whatsapp: #25D366;
    --surface-white: #FFFFFF;
    --surface-off-white: #F4F7F6;
    --border-neutral: #E2E8F0;
    --text-navy: #0B2545;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-navy);
    background-color: var(--surface-white);
    line-height: 1.6;
}

header {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container img {
    height: 50px;
    vertical-align: middle;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

nav a:hover {
    color: var(--primary-orange);
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 20px;
}

.hero-section-container {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(11, 37, 69, 0.85), rgba(11, 37, 69, 0.65)), url('/assets/images/hero/namakkal-malaikottai.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: var(--surface-white);
    text-align: center;
}

.hero-section-container:not([style*="url"]) {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #111827 100%);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-ctas .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: var(--surface-white);
}

.btn-navy {
    background-color: var(--primary-navy);
    color: var(--surface-white);
    border: 1px solid var(--primary-orange);
}

.btn-wa {
    background-color: var(--accent-whatsapp);
    color: var(--surface-white);
}

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

h2.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: var(--primary-navy);
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 10px auto 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background-color: var(--surface-off-white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.filter-group select, .filter-group input, .filter-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-neutral);
    border-radius: 4px;
    font-family: inherit;
}

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

.property-card {
    background: var(--surface-white);
    border: 1px solid var(--border-neutral);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.property-img-wrap {
    position: relative;
    height: 200px;
    background-color: #e2e8f0;
}

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

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    color: var(--surface-white);
}

.status-Available { background-color: #16a34a; }
.status-FewLeft { background-color: var(--primary-orange); }
.status-Limited { background-color: #ca8a04; }
.status-SoldOut { background-color: #dc2626; }

.property-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-type {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: bold;
    text-transform: uppercase;
}

.property-title {
    font-size: 1.25rem;
    margin: 5px 0 10px;
    color: var(--primary-navy);
}

.property-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-navy);
    margin-top: auto;
    margin-bottom: 15px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-actions .btn {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.footer-section {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 60px 20px 80px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #94a3b8;
}

.mobile-action-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--primary-navy);
    display: none;
    z-index: 9999;
    grid-template-columns: repeat(3, 1fr);
}

.mobile-action-bar-fixed a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
}

.mobile-action-bar-fixed a.wa-btn {
    background-color: var(--accent-whatsapp);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .mobile-action-bar-fixed {
        display: grid;
    }
    body {
        padding-bottom: 60px;
    }
}
