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

:root {
    --primary: #009dde;
    --primary-dark: #0081b8;
    --accent: #e8a317;
    --accent-dark: #c98c0f;
    --dark: #252525;
    --dark-2: #303030;
    --text: #454646;
    --text-light: #707070;
    --light: #f7f7f7;
    --white: #ffffff;
    --border: #e5e5e5;
    --success: #27ae60;
    --radius: 6px;
    --shadow: 0 2px 15px rgba(0,0,0,.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,.12);
    --transition: .3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

h1,h2,h3,h4 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--dark); line-height: 1.3; }
h2 em, h1 em { font-style: italic; color: var(--primary); }

/* ===== Icons ===== */
.icon-inline { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.icon-social { width: 18px; height: 18px; }
.icon-tiny { width: 14px; height: 14px; vertical-align: middle; margin-right: 2px; }
.icon-check { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.contact-icon { width: 28px; height: 28px; color: var(--primary); margin-bottom: 10px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-weight: 500; font-size: .95rem; font-family: inherit;
    border: none; cursor: pointer; transition: all var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--light); color: var(--dark); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Topbar ===== */
.topbar { background: var(--dark); padding: 8px 0; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 20px; }
.topbar-left a { color: #ccc; display: flex; align-items: center; gap: 4px; }
.topbar-left a:hover { color: var(--white); }
.topbar-left svg { stroke: #ccc; }
.topbar-right { display: flex; gap: 12px; }
.topbar-right a { color: #ccc; }
.topbar-right a:hover { color: var(--white); }
.topbar-right svg { stroke: #ccc; }
.topbar-right a:hover svg { stroke: var(--white); }

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-svg { width: 36px; height: 36px; color: var(--primary); }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: .95rem; color: var(--dark); font-family: 'Libre Baskerville', serif; }
.logo-text span { font-size: .75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

.nav-menu { display: flex; list-style: none; gap: 28px; }
.nav-menu a { color: var(--text); font-size: .9rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: all var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); border-bottom-color: var(--primary); }

.nav-cta { padding: 10px 22px; font-size: .85rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80') center/cover no-repeat;
    padding: 120px 0 160px;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13,33,55,.82) 0%, rgba(10,20,35,.7) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { text-align: center; margin-bottom: 50px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.hero h1 em { color: var(--accent); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}
.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}
.search-field label {
    display: block; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-light); margin-bottom: 6px;
}
.search-field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: .9rem; font-family: inherit;
    color: var(--text); background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    cursor: pointer; transition: border-color var(--transition);
}
.search-field select:focus { outline: none; border-color: var(--primary); }
.search-submit .btn { width: 100%; padding: 12px 24px; height: 46px; }

/* ===== Stats ===== */
.stats { background: var(--primary); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 700; color: var(--white); font-family: 'Libre Baskerville', serif; }
.stat-number::after { content: '+'; }
.stat-label { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 4px; }

/* ===== Sections Common ===== */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-tag {
    display: inline-block; padding: 4px 14px;
    background: rgba(0,157,222,.08); border: 1px solid rgba(0,157,222,.15);
    border-radius: 50px; font-size: .75rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-header p { color: var(--text-light); font-size: 1rem; }

/* ===== Properties ===== */
.properties { padding: 80px 0; }
.properties-alt { padding-top: 0; }
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.property-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
    transition: all var(--transition);
}
.property-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.property-image { position: relative; height: 220px; background: var(--light); overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-image img { transform: scale(1.05); }

.property-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 12px; border-radius: 4px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.property-badge.sale { background: var(--success); color: var(--white); }
.property-badge.rent { background: var(--primary); color: var(--white); }

.property-price {
    position: absolute; bottom: 14px; right: 14px;
    background: var(--dark); color: var(--white);
    padding: 6px 14px; border-radius: 4px;
    font-weight: 700; font-size: 1rem;
}
.property-price small { font-weight: 400; font-size: .8rem; opacity: .8; }

.property-body { padding: 20px; }
.property-body h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: 'Roboto', sans-serif; font-weight: 500; }
.property-address { color: var(--text-light); font-size: .85rem; margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.property-address svg { color: var(--primary); flex-shrink: 0; }

.property-features {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.property-features span {
    font-size: .8rem; color: var(--text-light);
    padding: 4px 10px; background: var(--light); border-radius: 4px;
}

/* ===== Neighborhoods ===== */
.neighborhoods { padding: 80px 0; background: var(--light); }
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 200px;
    gap: 20px;
}
.neighborhood-card {
    position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
    background: linear-gradient(135deg, #1a3a5c, #0d2137);
}
.neighborhood-card.nb-1 { grid-column: 1 / 2; grid-row: 1 / 3; background: linear-gradient(135deg, #1a5276, #0d2f4f); }
.neighborhood-card.nb-2 { background: linear-gradient(135deg, #1e6b3a, #14472a); }
.neighborhood-card.nb-3 { background: linear-gradient(135deg, #7d3c1e, #5a2c16); }
.neighborhood-card.nb-4 { background: linear-gradient(135deg, #4a2d7a, #321d54); }
.neighborhood-card.nb-5 { grid-column: 3 / 4; grid-row: 1 / 3; background: linear-gradient(135deg, #8b6914, #5f470d); }

.neighborhood-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.2);
    transition: background var(--transition);
}
.neighborhood-card:hover .neighborhood-overlay { background: rgba(0,0,0,.1); }

.neighborhood-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px; color: var(--white); z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}
.neighborhood-content h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 2px; }
.neighborhood-content span { font-size: .85rem; opacity: .85; }

/* ===== CTA ===== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    padding: 80px 0;
    text-align: center;
}
.cta-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l2 3.5-2 3z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-content p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 550px; margin: 0 auto 30px; }

/* ===== About ===== */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content .section-tag { margin-bottom: 12px; }
.about-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 20px; }
.about-content p { color: var(--text-light); margin-bottom: 14px; line-height: 1.7; }

.about-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.about-feature { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text); }

.about-image { display: flex; justify-content: center; }
.about-placeholder {
    width: 100%; max-width: 400px; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f4fd, #d4eaf7);
    border-radius: 12px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
}
.about-placeholder svg { width: 80px; height: 80px; color: #7bb8d9; }
.about-placeholder span { color: #7bb8d9; font-weight: 500; font-size: 1.1rem; }

/* ===== Testimonials ===== */
.testimonials { padding: 80px 0; background: var(--light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
    background: var(--white); border-radius: 8px; padding: 30px;
    border: 1px solid var(--border); transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); }

.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { color: var(--text-light); font-style: italic; line-height: 1.7; margin-bottom: 20px; font-size: .95rem; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--dark); }
.testimonial-author span { font-size: .8rem; color: var(--text-light); }

/* ===== Contact ===== */
.contact { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-card {
    padding: 24px; background: var(--light);
    border-radius: 8px; text-align: center;
}
.contact-card h4 { font-size: .9rem; font-family: 'Roboto', sans-serif; font-weight: 700; margin-bottom: 6px; }
.contact-card a { color: var(--text); font-size: .9rem; }
.contact-card a:hover { color: var(--primary); }
.contact-card p { color: var(--text-light); font-size: .9rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .95rem; font-family: inherit; color: var(--text);
    transition: border-color var(--transition); outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===== Footer ===== */
.footer-main { background: var(--dark); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }

.logo-footer .logo-svg { color: var(--primary); }
.logo-footer .logo-text strong { color: var(--white); }
.footer-brand > p { color: #999; font-size: .88rem; margin-top: 14px; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { color: var(--white); font-size: .95rem; margin-bottom: 8px; font-family: 'Roboto', sans-serif; }
.footer-links a { color: #999; font-size: .88rem; }
.footer-links a:hover { color: var(--primary); }

.footer-creci { background: var(--dark-2); padding: 20px 0; border-bottom: 1px solid #3a3a3a; }
.creci-grid { display: flex; justify-content: center; gap: 60px; }
.creci-item { display: flex; align-items: center; gap: 12px; }
.creci-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.creci-item strong { display: block; color: var(--white); font-size: .9rem; font-family: 'Roboto', sans-serif; }
.creci-item span { font-size: .8rem; color: #aaa; letter-spacing: .5px; }

.footer-bottom { background: var(--dark-2); padding: 18px 0; text-align: center; }
.footer-bottom p { color: #777; font-size: .8rem; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37,211,102,.4);
    z-index: 999; transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* ===== Fade Animations ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .search-form { grid-template-columns: repeat(2, 1fr); }
    .search-submit { grid-column: 1 / -1; }
    .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .neighborhood-card.nb-1,
    .neighborhood-card.nb-5 { grid-column: auto; grid-row: auto; }
    .neighborhood-card { min-height: 180px; }
}

@media (max-width: 768px) {
    .topbar-left { display: none; }
    .topbar-right { margin-left: auto; }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); flex-direction: column;
        padding: 80px 30px 40px; gap: 0;
        transition: right var(--transition); z-index: 1001;
        box-shadow: -5px 0 20px rgba(0,0,0,.1);
    }
    .nav-menu.open { right: 0; }
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu a { display: block; padding: 14px 0; font-size: 1rem; }
    .nav-cta { display: none; }
    .menu-toggle { display: flex; z-index: 1002; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    .hero { padding: 80px 0 120px; min-height: auto; }
    .search-form { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 2rem; }

    .properties-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .neighborhoods-grid { grid-template-columns: 1fr; grid-template-rows: auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .contact-info { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Property Card as Link ===== */
a.property-card { text-decoration: none; color: inherit; display: block; }
a.property-card:hover { color: inherit; }

.property-no-photo {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--light); color: #aaa; font-size: .9rem;
}

.empty-section { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-section p { font-size: 1rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--light);
    padding: 14px 0;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ===== Property Detail ===== */
.detail { padding: 40px 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }

/* Gallery */
.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 14px; border-radius: 4px;
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--white);
}
.gallery-badge.sale { background: var(--success); }
.gallery-badge.rent { background: var(--primary); }
.gallery-count {
    position: absolute; bottom: 14px; right: 14px;
    background: rgba(0,0,0,.6); color: var(--white);
    padding: 4px 12px; border-radius: 4px; font-size: .8rem;
}
.gallery-empty { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.property-no-photo-lg { color: #aaa; font-size: 1.1rem; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.gallery-thumb {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
    opacity: .7;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail Info */
.detail-header { margin-bottom: 20px; }
.detail-header h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 8px; }
.detail-address { color: var(--text-light); font-size: .95rem; display: flex; align-items: center; gap: 4px; }
.detail-address svg { color: var(--primary); }

.detail-price {
    font-size: 2rem; font-weight: 700; color: var(--primary);
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.price-suffix { font-size: 1rem; font-weight: 400; color: var(--text-light); }

.detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.detail-feature { text-align: center; }
.feature-value { display: block; font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.feature-label { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }

.detail-description { margin-bottom: 24px; }
.detail-description h3 {
    font-size: 1rem; font-family: 'Roboto', sans-serif;
    font-weight: 600; margin-bottom: 10px; color: var(--dark);
}
.detail-description p { color: var(--text-light); line-height: 1.8; }

.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-cta .btn { flex: 1; min-width: 140px; justify-content: center; }
.btn-success { background: #25d366; color: var(--white); }
.btn-success:hover { background: #1fb855; color: var(--white); }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
    max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-content img {
    max-width: 100%; max-height: 85vh;
    object-fit: contain; border-radius: 4px;
}
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: #fff;
    font-size: 2.5rem; cursor: pointer; z-index: 1;
    line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    font-size: 1.5rem; padding: 16px 12px; cursor: pointer;
    border-radius: 4px; transition: background .3s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
    position: absolute; bottom: 20px;
    color: rgba(255,255,255,.7); font-size: .9rem;
}

/* ===== Search Results Filtering ===== */
.properties-grid .property-card.hidden { display: none; }
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== Detail Page Responsive ===== */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .detail-features { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .detail-features { grid-template-columns: repeat(2, 1fr); }
    .detail-cta { flex-direction: column; }
    .detail-cta .btn { width: 100%; }
    .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
    .lightbox-prev, .lightbox-next { padding: 12px 8px; font-size: 1.2rem; }
}
