/* Real Estate Madurai — site styles (Bootstrap 5 base) */
:root {
    --brand: #7a1f2b;          /* temple maroon */
    --brand-dark: #5c1520;
    --brand-soft: #f8eef0;
    --gold: #d49a1c;
    --gold-dark: #b8820f;
    --ink: #1d2433;
    --muted: #667085;
    --line: #e7e9ee;
    --bg-soft: #f7f6f3;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(29, 36, 51, .08);
    --shadow-lg: 0 14px 40px rgba(29, 36, 51, .14);
    --bs-primary: var(--brand);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-dark);
}

body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* reserve icon space so async icon font doesn't shift layout */
.bi::before { display: inline-block; min-width: 1em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 500; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d1300; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.link-brand { color: var(--brand); font-weight: 600; }

/* Top bar + header */
.topbar { background: var(--brand-dark); color: #f3dfe2; font-size: .85rem; padding: 7px 0; }
.topbar a { color: #f3dfe2; } .topbar a:hover { color: #fff; }
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header .navbar { padding: 12px 0; }
.site-header .nav-link { font-weight: 500; color: var(--ink); padding: 10px 14px !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
@media (min-width: 992px) {
    .mega { position: static; }
    .mega:hover > .mega-menu { display: block; }
    .mega-menu { left: 50%; transform: translateX(-50%); width: 560px; margin-top: 0; padding: 24px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
    .site-header .container { position: relative; }
}
.mega-head { display: block; font-family: 'Poppins'; font-weight: 600; color: var(--brand); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-menu li a { display: block; color: var(--ink); padding: 6px 0; font-size: .95rem; }
.mega-menu li a:hover { color: var(--brand); padding-left: 4px; transition: .15s; }
.mega-menu li a i { color: var(--gold-dark); }
.mobile-nav > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-sub-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 10px 0 4px; font-weight: 600; }
.mobile-sub { display: block; padding: 6px 12px; color: var(--muted); }

/* Hero */
.hero {
    position: relative; color: #fff; padding: 90px 0 60px;
    background:
        linear-gradient(115deg, rgba(60, 12, 20, .92) 0%, rgba(122, 31, 43, .82) 55%, rgba(212, 154, 28, .55) 100%),
        url('../images/hero-pattern.svg') center / cover, var(--brand-dark);
}
.hero-kicker { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; padding: 6px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.hero-sub { font-size: 1.08rem; opacity: .88; max-width: 720px; margin: 0 auto 36px; }
.hero-browse { margin-top: 40px; } .hero-browse p { opacity: .85; }

/* Search box */
.search-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 0 0 18px; color: var(--ink); text-align: left; }
.search-tabs { display: flex; gap: 4px; padding: 14px 18px 0; }
.search-tab { padding: 8px 22px; border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 600; font-family: 'Poppins'; color: var(--muted); border-bottom: 3px solid transparent; }
.btn-check:checked + .search-tab { color: var(--brand); border-bottom-color: var(--brand); }
.search-fields { display: grid; grid-template-columns: repeat(3, 1fr) 200px; gap: 14px; padding: 14px 18px 0; border-top: 1px solid var(--line); }
.sf label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; display: block; }
.sf .form-select { border-radius: 10px; padding: 11px 12px; }
.sf-btn { display: flex; align-items: end; } .sf-btn .btn { padding: 11px; }
@media (max-width: 991px) { .search-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .search-fields { grid-template-columns: 1fr; } }
.search-box.compact { box-shadow: none; padding: 0; }
.search-box.compact .search-tabs { padding: 0 0 4px; }
.search-box.compact .search-fields { grid-template-columns: 1fr; padding: 10px 0 0; gap: 10px; }

/* Category pills */
.cat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cat-pill { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 8px 18px 8px 8px; border-radius: 40px; backdrop-filter: blur(4px); transition: .2s; }
.cat-pill:hover { background: #fff; color: var(--brand); }
.cat-pill-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #1d1300; display: grid; place-items: center; font-size: 1.05rem; }

/* Stats */
.stats-strip { background: var(--ink); color: #fff; padding: 22px 0; }
.stats-strip strong { display: block; font-family: 'Poppins'; font-size: 1.6rem; color: var(--gold); }
.stats-strip span { font-size: .85rem; opacity: .8; }

/* Sections */
.section { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }

/* Type cards */
.type-card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; color: var(--ink); height: 100%; transition: .25s; overflow: hidden; }
.type-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.type-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; transition: .25s; }
.type-card:hover .type-icon { background: var(--brand); color: #fff; }
.type-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.type-count { color: var(--muted); font-size: .9rem; }
.type-arrow { position: absolute; right: 20px; bottom: 22px; color: var(--brand); opacity: 0; transition: .25s; }
.type-card:hover .type-arrow { opacity: 1; right: 16px; }

/* Filter tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs button { border: 1px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 30px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.filter-tabs button.active, .filter-tabs button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Property card */
.prop-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column; }
.prop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prop-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-img img { transform: scale(1.05); }
.prop-status, .prop-sold, .prop-feat { position: absolute; top: 12px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.prop-status { left: 12px; background: var(--brand); color: #fff; }
.prop-status.rent { background: #0f766e; }
.prop-feat { right: 12px; background: var(--gold); color: #1d1300; }
.prop-sold { right: 12px; background: #dc3545; color: #fff; }
.prop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prop-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prop-price { font-family: 'Poppins'; font-weight: 700; font-size: 1.25rem; color: var(--brand); }
.prop-price small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.prop-title { font-size: 1rem; line-height: 1.4; margin: 4px 0 6px; }
.prop-title a { color: var(--ink); } .prop-title a:hover { color: var(--brand); }
.prop-loc { color: var(--muted); font-size: .88rem; margin-bottom: 10px; } .prop-loc i { margin-right: 4px; color: var(--gold-dark); }
.prop-meta { list-style: none; padding: 10px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; font-size: .83rem; color: var(--muted); }
.prop-meta i { margin-right: 4px; color: var(--brand); }

/* Why + locations */
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.why-card i { font-size: 1.8rem; color: var(--gold-dark); }
.why-card h3 { font-size: 1.05rem; margin: 10px 0 6px; } .why-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.loc-card { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--ink); transition: .2s; }
.loc-card:hover { background: var(--brand); color: #fff; } .loc-card:hover span, .loc-card:hover i { color: #fff; }
.loc-card i { font-size: 1.5rem; color: var(--brand); }
.loc-card h3 { font-size: 1rem; margin: 0; } .loc-card span { font-size: .85rem; color: var(--muted); }

.seo-block { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; color: #475467; font-size: .95rem; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seo-links a { font-size: .85rem; background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 20px; color: #475467; }
.seo-links a:hover { color: var(--brand); border-color: var(--brand); }

/* Page head + listing */
.page-head { background: linear-gradient(110deg, var(--brand-dark), var(--brand)); color: #fff; padding: 40px 0 34px; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0 4px; }
.page-head-sm { padding: 16px 0; }
.page-head .breadcrumb-item, .page-head .breadcrumb-item a, .page-head .breadcrumb-item::before { color: rgba(255,255,255,.8) !important; font-size: .88rem; }
.page-head .breadcrumb-item.active { color: #fff !important; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.amenity-checks { max-height: 200px; overflow-y: auto; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--bg-soft); border-radius: var(--radius); }
.empty-state > i { font-size: 3rem; color: var(--brand); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); }

/* Detail */
.detail-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.detail-price { font-family: 'Poppins'; font-weight: 700; font-size: 1.9rem; color: var(--brand); white-space: nowrap; }
.detail-price small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.badge-status { background: var(--brand); } .badge-status.rent { background: #0f766e; }
.detail-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.detail-gallery img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 0; }
.gallery-thumbs button { border: 0; padding: 0; border-radius: 8px; overflow: hidden; flex: 0 0 96px; height: 64px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.detail-card h2 { font-size: 1.2rem; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; }
.fact i { color: var(--brand); font-size: 1.2rem; } .fact span { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; } .fact strong { font-size: .95rem; }
.detail-desc { color: #344054; line-height: 1.75; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.amenity-list i { color: var(--brand); margin-right: 8px; }
@media (min-width: 992px) { .enquiry-sticky { position: sticky; top: 96px; } .enquiry-sticky .detail-card { margin-top: 0; } }

/* About / contact */
.check-list { list-style: none; padding: 0; } .check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--brand); }
.about-visual { display: grid; gap: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); padding: 34px; border-radius: 20px; color: #fff; }
.about-stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: 18px 20px; }
.about-stat strong { display: block; font-family: 'Poppins'; font-size: 1.3rem; color: var(--gold); }
.contact-item { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.contact-item > i { font-size: 1.5rem; color: var(--brand); }
.contact-item span { display: block; font-size: .8rem; color: var(--muted); }
.contact-item a { color: var(--ink); font-weight: 600; }

/* CTA + footer */
.cta-band { background: linear-gradient(110deg, var(--brand-dark), var(--brand)); color: #fff; padding: 42px 0; }
.site-footer { background: #15151c; color: #b8bcc8; padding: 60px 0 0; font-size: .92rem; }
.site-footer a { color: #b8bcc8; } .site-footer a:hover { color: var(--gold); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links li { padding: 4px 0; }
.footer-contact li { display: flex; gap: 10px; padding: 4px 0; } .footer-contact i { color: var(--gold); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a { border: 1px solid #2f3140; padding: 4px 12px; border-radius: 20px; font-size: .84rem; }
.footer-bottom { border-top: 1px solid #2a2c38; margin-top: 40px; padding: 20px 0; font-size: .85rem; }

/* Floating buttons */
.float-wa, .float-call { position: fixed; right: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: var(--shadow-lg); z-index: 1030; }
.float-wa { bottom: 20px; background: #25d366; } .float-wa:hover { color: #fff; transform: scale(1.06); }
.float-call { bottom: 84px; background: var(--brand); font-size: 1.3rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 767px) { .hero { background: linear-gradient(115deg, #3c0c14, #7a1f2b 60%, #9b5a1c); padding: 56px 0 40px; } .hero-sub { font-size: 1rem; } }

/* FAQ */
.faq-block .accordion-item { border: 1px solid var(--line); border-radius: 10px !important; margin-bottom: 8px; overflow: hidden; }
.faq-block .accordion-button { font-weight: 600; font-size: .95rem; }
.faq-block .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.faq-block .accordion-button:focus { box-shadow: none; }
