:root {
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B5932B;
    --text-dark: #222222;
    --text-light: #555555;
    --bg-light: #f4f4f4;
    --bg-dark: #111111;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-gold {
    color: var(--primary-gold);
}

.section-padding {
    padding: 80px 0;
}

/* =================== Header =================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--primary-gold);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: var(--text-dark);
}

.header-contact a:hover,
.header-contact a:hover i {
    color: var(--primary-gold);
}

.btn-outline {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

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

/* =================== Hero Section =================== */
.hero {
    background: linear-gradient(rgba(30, 30, 30, 0.7), rgba(30, 30, 30, 0.7)), url('/images/hero.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Mobile menu hidden by default */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* =================== Search Box (Refined) =================== */
.search-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-width: 960px;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}

.search-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-row-top {
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-row-bottom {
    align-items: center;
    flex-wrap: wrap;
}

.search-tabs-inline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding-bottom: 2px;
    flex-shrink: 0;
}

.tab-pill {
    background: #f0ede8;
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab-pill i {
    font-size: 13px;
}

.tab-pill:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.tab-pill.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.tab-pill-sm {
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 30px;
}

.condition-pills {
    gap: 6px;
    padding-bottom: 0;
}

.search-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-field-label i {
    color: var(--primary-gold);
    font-size: 11px;
}

.search-select {
    border: 1.5px solid #e0ddd8;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.search-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.search-field-price {
    flex: 2;
    min-width: 280px;
}

/* =================== Price Slider =================== */
.price-range-wrapper {
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 8px;
}

.slider-track {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    outline: none;
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    background-color: transparent;
    pointer-events: none;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 3;
}

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: var(--primary-gold);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 3;
}

input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
input[type="range"]::-moz-range-track { background: transparent; }

.price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-search-new {
    background: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
}

.btn-search-new:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-1px);
}

.btn-search-new i {
    font-size: 13px;
}

/* Legacy btn-search (used by list.ejs) */
.btn-search {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.btn-search:hover {
    background: var(--primary-gold-dark);
}

/* Legacy input-group (used by list.ejs) */
.input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.input-group i {
    color: var(--primary-gold);
    margin-right: 10px;
}

.input-group input, .input-group select {
    border: none;
    width: 100%;
    padding: 15px 0;
    outline: none;
    font-family: inherit;
    color: var(--text-dark);
}

/* =================== Properties Grid / List =================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

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

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

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

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.launch-tag {
    top: 15px;
    right: 15px;
    left: auto;
    background: #111111;
    color: var(--primary-gold);
}

.price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.9);
    color: var(--primary-gold);
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-top-left-radius: 8px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.location i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    color: var(--text-light);
    font-size: 14px;
}

.features i {
    margin-right: 5px;
}

.btn-card {
    display: block;
    text-align: center;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-card:hover {
    background: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

/* =================== Carousel Buttons =================== */
.btn-prev, .btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }
.btn-prev:hover, .btn-next:hover { background: rgba(0,0,0,0.75); }

/* =================== View Toggle =================== */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.view-toggle-btn {
    border: 1px solid #ddd;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-light);
}

.view-toggle-btn.active {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.properties-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.property-card-list {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.property-card-list .card-image {
    height: 100%;
}

.property-card-list .card-content h3 {
    white-space: normal;
}

.empty-state {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
}

.all-properties {
    background: var(--white);
}

/* =================== Lead Capture V2 (Premium) =================== */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}
@keyframes float-slow-reverse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 25px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.capture-v2 {
    position: relative;
    background: linear-gradient(145deg, #0f0f0f 0%, #1a1a2e 40%, #16213e 100%);
    padding: 100px 0;
    overflow: hidden;
}

/* Seamless fade to footer */
.capture-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
    z-index: 2;
}

/* Decorative background elements */
.capture-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.capture-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.capture-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.capture-circle-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4fc3f7 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: float-slow-reverse 15s ease-in-out infinite;
}

.capture-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
    height: 1px;
}

.capture-line-1 {
    width: 60%;
    top: 25%;
    left: 20%;
    transform: rotate(-5deg);
}

.capture-line-2 {
    width: 40%;
    bottom: 30%;
    right: 10%;
    transform: rotate(3deg);
}

.capture-v2-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 3;
}

/* Left text side */
.capture-v2-text {
    flex: 1;
    min-width: 300px;
    animation: slideInUp 0.8s ease-out;
}

.capture-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--primary-gold);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.capture-v2-badge i {
    font-size: 11px;
}

.capture-v2-text h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
}

.capture-v2-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

/* Benefit cards */
.capture-v2-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 22px;
    border-radius: 12px;
    transition: all 0.35s ease;
    cursor: default;
}

.benefit-card:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateX(8px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.benefit-icon i {
    font-size: 20px;
    color: var(--primary-gold);
    transition: color 0.35s ease;
}

.benefit-card:hover .benefit-icon i {
    color: #fff;
}

.benefit-info h4 {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.benefit-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

/* Stats row */
.capture-v2-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-gold);
    background: linear-gradient(135deg, var(--primary-gold), #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form wrapper — Glassmorphic */
.capture-v2-form-wrapper {
    flex: 1;
    min-width: 340px;
    max-width: 460px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.capture-v2-form {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.form-header-icon i {
    font-size: 26px;
    color: #fff;
}

.form-header h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* Form fields v2 */
.form-group-v2 {
    margin-bottom: 18px;
}

.form-group-v2 label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.form-group-v2 label i {
    font-size: 12px;
    color: var(--primary-gold);
}

.form-group-v2 input,
.form-group-v2 textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #fff;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group-v2 input::placeholder,
.form-group-v2 textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group-v2 input:focus,
.form-group-v2 textarea:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group-v2 textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit button v2 */
.btn-submit-v2 {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    text-decoration: none;
}

.btn-submit-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

.btn-submit-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.btn-submit-v2 .btn-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-submit-v2:hover .btn-arrow {
    transform: translateX(4px);
}

.form-privacy {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-privacy i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

/* =================== Forms (Shared) =================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-gold);
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    resize: vertical;
    transition: border 0.3s;
}

.form-group textarea:focus {
    border-color: var(--primary-gold);
}

.lead-hint {
    font-size: 12px;
    color: #e53935;
    display: block;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background: #25D366;
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-submit:hover {
    background: #128C7E;
}

/* =================== Btn Realtor (single definition) =================== */
.btn-realtor {
    background: var(--text-dark);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid var(--primary-gold);
    transition: all 0.3s;
}

.btn-realtor:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* =================== Contact =================== */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.contact-form textarea:focus {
    border-color: var(--primary-gold);
}

.alert-success {
    background: #e7f8ef;
    border: 1px solid #b7e5c9;
    color: #1c6b3b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #b42318;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* =================== Property Detail =================== */
.property-detail .detail-header {
    margin-bottom: 30px;
}

.detail-gallery {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.gallery-item img,
.gallery-placeholder img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-sidebar {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-self: start;
}

.detail-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.detail-price strong {
    font-size: 28px;
    color: var(--primary-gold);
}

/* =================== Footer =================== */
.footer {
    background: var(--bg-dark);
    color: #aeaeae;
    padding: 60px 0 20px;
    margin-top: 0;
}

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

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 20px;
}

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

.footer ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* =================== Responsive =================== */
@media (max-width: 900px) {
    .property-card-list {
        grid-template-columns: 1fr;
    }
    .detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header / Nav */
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .nav.show {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }
    .nav a {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .header-contact {
        order: 2;
    }
    .logo img {
        height: 44px;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 15px;
    }

    /* Search Box */
    .search-box {
        padding: 20px 16px;
        border-radius: 8px;
    }
    .search-row-top,
    .search-row-bottom {
        flex-direction: column;
        gap: 12px;
    }
    .search-field,
    .search-field-price {
        min-width: 100%;
    }
    .search-tabs-inline {
        width: 100%;
    }
    .tab-pill {
        flex: 1;
        justify-content: center;
    }
    .btn-search-new {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    /* Legacy filter */
    .search-inputs {
        flex-direction: column;
    }
    .input-group {
        min-width: 100%;
    }
    .btn-search {
        width: 100%;
    }

    /* Properties */
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .section-padding {
        padding: 50px 0;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
        margin-top: 40px;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    /* Capture V2 */
    .capture-v2 {
        padding: 60px 0;
    }
    .capture-v2-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .capture-v2-text h2 {
        font-size: 30px;
    }
    .capture-v2-subtitle {
        max-width: 100%;
    }
    .capture-v2-form-wrapper {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    .capture-v2-form {
        padding: 28px 20px 24px;
    }
    .benefit-card {
        justify-content: center;
    }
    .capture-v2-stats {
        justify-content: center;
    }
    .capture-v2-badge {
        font-size: 11px;
    }

    /* Detail */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Features */
    .features {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .nav ul {
        gap: 10px;
    }
    .nav a {
        font-size: 11px;
    }
    .hero-content h1 {
        font-size: 22px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Search inputs (legacy — used by list.ejs) */
.search-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-tabs button {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.search-tabs button.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.price-input-group {
    min-width: 300px;
    align-items: flex-start;
    padding-top: 15px;
    padding-bottom: 15px;
}

.price-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ===== LOGIN PAGE ===== */
.login-page { margin: 0; background: #111; }

.login-wrapper {
  display: flex;
  min-height: 100vh;
}

.login-hero {
  flex: 0 0 45%;
  background: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.55)),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.login-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 40px;
}

.login-hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.login-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #fff;
  margin-bottom: 4px;
}

.login-hero-content p {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 16px;
}

.login-hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.login-form-side {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  height: 64px;
  width: auto;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

.login-error {
  background: #fff3f3;
  border: 1px solid #f5a0a0;
  border-radius: 6px;
  color: #b42318;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-field { margin-bottom: 20px; }

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #555;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.login-input-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1) !important;
}

.login-field-hint {
  font-size: 12px;
  color: #e53935;
  display: block;
  margin-top: 4px;
  min-height: 16px;
}

.login-password-wrapper {
  position: relative;
}

.login-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  transition: color 0.2s;
}

.login-toggle-pw:hover { color: var(--primary-gold); }

.login-btn {
  width: 100%;
  background: #222;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.login-btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.login-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.login-back:hover { color: var(--primary-gold); }

@media (max-width: 768px) {
  .login-hero { display: none; }
  .login-form-side { padding: 40px 24px; }
}
