:root {
    --navy: #234E70;
    --navy-deep: #17364f;
    --gold: #D4A017;
    --accent: #F4A261;
    --bg: #F8F9FA;
    --text: #2B2B2B;
    --muted: #68717a;
    --line: #e7e1d5;
    --white: #ffffff;
}

* {
    letter-spacing: 0;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(35, 78, 112, 0.08);
    box-shadow: 0 12px 35px rgba(35, 78, 112, 0.08);
    min-height: 82px;
    backdrop-filter: blur(14px);
}

.navbar-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--navy);
    font-weight: 700;
}

.brand-logo {
    width: 72px;
    height: 62px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fff;
    padding: 0.12rem;
    box-shadow: 0 8px 20px rgba(35, 78, 112, 0.1);
}

.brand-copy {
    display: grid;
    gap: 0.05rem;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--navy-deep);
    font-size: 1.08rem;
    text-transform: uppercase;
}

.brand-copy small {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: 0.91rem;
    padding-inline: 0.68rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.78rem 1.2rem;
    box-shadow: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border-color: transparent;
    color: #1d2730;
    box-shadow: 0 12px 28px rgba(212, 160, 23, 0.24);
}

.btn-gold:hover {
    background: #bd8e13;
    border-color: #bd8e13;
    color: #1d2730;
}

.btn-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    border-color: var(--navy);
    color: var(--white);
}

.btn-navy:hover,
.btn-outline-navy:hover {
    background: #183c58;
    border-color: #183c58;
    color: var(--white);
}

.btn-outline-navy {
    border-color: var(--navy);
    color: var(--navy);
}

.nav-cta {
    padding: 0.55rem 1rem;
}

.hero-section {
    position: relative;
    min-height: 760px;
    background: url('../images/hero/venkatadri-building.jpg') center 30% / cover no-repeat;
    color: var(--white);
    overflow: hidden;
    filter: contrast(1.04) saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(212, 160, 23, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(13, 31, 47, 0.9), rgba(24, 60, 88, 0.58), rgba(18, 39, 58, 0.14));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 92px;
}

.min-vh-hero {
    min-height: 760px;
}

.eyebrow,
.section-kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 780px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 18px rgba(13,31,47,0.55);
}

.hero-lead {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.hero-meta i {
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.section {
    padding: 96px 0;
}

.section-soft {
    background: linear-gradient(180deg, #fffaf0 0%, #fff5e3 100%);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.8rem;
    text-align: center;
}

h1,
h2,
h3 {
    color: var(--navy);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 1rem;
}

p {
    color: var(--muted);
    line-height: 1.8;
}

.highlights-band {
    margin-top: -64px;
    padding-top: 0;
    position: relative;
    z-index: 3;
}

.highlight-card,
.amenity-card,
.feature-card,
.floorplan-card,
.contact-card,
.form-card {
    height: 100%;
    background: var(--white);
    border: 1px solid rgba(35, 78, 112, 0.09);
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(35, 78, 112, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.highlight-card:hover,
.amenity-card:hover,
.feature-card:hover,
.floorplan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, 0.36);
    box-shadow: 0 28px 70px rgba(35, 78, 112, 0.13);
}

.highlight-card {
    padding: 1.8rem 1.25rem;
    text-align: center;
    border-top: 4px solid rgba(212, 160, 23, 0.86);
}

.highlight-card span {
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.highlight-card p {
    color: var(--navy);
    font-weight: 600;
    margin: 0.6rem 0 0;
}

.image-panel {
    overflow: hidden;
    border-radius: 8px;
    border: 8px solid #fff;
    box-shadow: 0 28px 80px rgba(35, 78, 112, 0.16);
}

.image-panel img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amenity-card {
    padding: 1.8rem 1rem;
    text-align: center;
}

.amenity-card i,
.feature-card i {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.amenity-card h3,
.feature-card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.feature-card,
.contact-card,
.form-card {
    padding: 2rem;
}

.feature-card h2,
.contact-card h2,
.form-card h2,
.floorplan-card h2 {
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid > * {
    min-height: 240px;
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-visual,
.floorplan-visual,
.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 220px;
    background: linear-gradient(135deg, rgba(35, 78, 112, 0.08), rgba(212, 160, 23, 0.2));
    border: 1px solid var(--line);
    color: var(--navy);
    text-align: center;
}

.placeholder-visual i,
.floorplan-visual i,
.map-placeholder i {
    color: var(--gold);
    font-size: 2.6rem;
}

.map-placeholder {
    min-height: 360px;
    border-radius: 8px;
    padding: 2rem;
}

.map-placeholder strong {
    color: var(--navy);
    font-size: 1.35rem;
}

.map-placeholder span {
    color: var(--muted);
}

.check-list,
.nearby-list {
    padding: 0;
    margin: 1.25rem 0 2rem;
    list-style: none;
}

.check-list li,
.nearby-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
}

.nearby-list i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.14);
    color: var(--gold);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(35, 78, 112, 0.96), rgba(23, 54, 79, 0.96)),
        url('../images/hero/venkatadri-building.jpg') center / cover;
    box-shadow: 0 28px 80px rgba(23, 54, 79, 0.18);
}

.cta-panel h2,
.cta-panel p {
    color: var(--white);
}

.cta-panel p {
    margin-bottom: 0;
    opacity: 0.86;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    padding: 116px 0 96px;
    background: linear-gradient(135deg, rgba(35, 78, 112, 0.96), rgba(35, 78, 112, 0.82)), url('../images/hero/venkatadri-building.jpg') center 30% / cover;
}

.page-hero h1 {
    max-width: 820px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
}

.page-hero p:not(.eyebrow) {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.floorplan-card {
    overflow: hidden;
}

.floorplan-visual {
    min-height: 260px;
}

.gallery-page-grid {
    grid-template-columns: repeat(3, 1fr);
}

.map-large {
    min-height: 460px;
}

.contact-card p {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-card i {
    color: var(--gold);
}

.form-control,
.form-select {
    min-height: 50px;
    border-color: #d8dde2;
    border-radius: 6px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.16);
}

.site-footer {
    background:
        linear-gradient(135deg, rgba(23, 54, 79, 0.98), rgba(12, 31, 48, 0.98)),
        url('../images/hero/venkatadri-building.jpg') center 30% / cover;
    color: var(--white);
    padding: 64px 0 28px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    display: block;
    margin-bottom: 0.55rem;
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-brand {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: var(--white);
    padding: 0.6rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding: 1rem 0 1.25rem;
        border-top: 1px solid rgba(35, 78, 112, 0.08);
        margin-top: 0.75rem;
    }

    .brand-logo {
        width: 68px;
        height: 58px;
    }

    .brand-copy strong {
        font-size: 0.98rem;
    }

    .hero-section,
    .min-vh-hero {
        min-height: 680px;
    }

    .gallery-grid,
    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 64px 0;
    }

    .hero-section,
    .min-vh-hero {
        min-height: 650px;
    }

    .brand-logo {
        width: 62px;
        height: 54px;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-copy small {
        font-size: 0.66rem;
    }

    .hero-section h1 {
        font-size: 2.45rem;
    }

    .hero-meta span {
        width: 100%;
    }

    .navbar-toggler {
        padding: 0.4rem 0.55rem;
    }

    .hero-overlay {
        background: rgba(18, 39, 58, 0.78);
    }

    .hero-actions .btn,
    .cta-panel .btn {
        width: 100%;
    }

    .highlights-band {
        margin-top: 0;
        padding-top: 64px;
    }

    .gallery-grid,
    .gallery-page-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel,
    .feature-card,
    .contact-card,
    .form-card {
        padding: 1.5rem;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ── Floor Plan Interactive ─────────────────────────────── */
.unit-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.unit-type-card {
    background: var(--white);
    border: 1px solid rgba(35,78,112,0.1);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(35,78,112,0.08);
}

.unit-type-card .badge-bhk {
    display: inline-block;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.unit-type-card h3 {
    font-size: 1.55rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.unit-type-card .sqft {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.unit-room-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
}

.unit-room-list li {
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.unit-room-list li::before {
    content: '·';
    color: var(--gold);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

.floor-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.floor-tab-btn {
    padding: 0.55rem 1.2rem;
    border: 2px solid rgba(35,78,112,0.2);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.floor-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.floor-tab-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.floor-schematic-wrap {
    background: var(--white);
    border: 1px solid rgba(35,78,112,0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(35,78,112,0.08);
}

.floor-label {
    text-align: center;
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.floor-schematic {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.wing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.lift-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(35,78,112,0.06), rgba(35,78,112,0.1));
    border: 1px dashed rgba(35,78,112,0.25);
    border-radius: 8px;
    min-width: 60px;
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lift-core i {
    color: var(--navy);
    font-size: 1.5rem;
}

.unit-block {
    border: 2px solid rgba(35,78,112,0.15);
    border-radius: 8px;
    padding: 0.9rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.unit-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35,78,112,0.14);
}

.unit-block.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.2);
}

.unit-block[data-status="available"] {
    border-top: 4px solid #22c55e;
}

.unit-block[data-status="sold"] {
    border-top: 4px solid #ef4444;
    opacity: 0.7;
    cursor: default;
}

.unit-block[data-status="reserved"] {
    border-top: 4px solid #f59e0b;
}

.unit-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.unit-bhk-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
}

.unit-bhk-tag.bhk-2 {
    background: rgba(35,78,112,0.1);
    color: var(--navy);
}

.unit-bhk-tag.bhk-3 {
    background: rgba(212,160,23,0.14);
    color: #8a6500;
}

.unit-sqft {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

.unit-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.unit-status-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

[data-status="available"] .unit-status-dot { background: #22c55e; }
[data-status="sold"] .unit-status-dot { background: #ef4444; }
[data-status="reserved"] .unit-status-dot { background: #f59e0b; }
[data-status="available"] .unit-status-label { color: #16a34a; }
[data-status="sold"] .unit-status-label { color: #dc2626; }
[data-status="reserved"] .unit-status-label { color: #d97706; }

.availability-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.avail { background: #22c55e; }
.legend-dot.sold { background: #ef4444; }
.legend-dot.reserved { background: #f59e0b; }

.unit-detail-panel {
    margin-top: 2rem;
    padding: 1.75rem;
    border: 1px solid rgba(212,160,23,0.4);
    border-radius: 10px;
    background: linear-gradient(135deg, #fffaf0, #fff5e3);
    display: none;
}

.unit-detail-panel.visible {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

.unit-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    background: #fff;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
}

.detail-item small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.detail-item strong {
    color: var(--navy);
    font-size: 1rem;
}

.avail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    text-align: center;
}

.avail-stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem;
}

.avail-stat .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.avail-stat .lbl {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

@media (max-width: 767.98px) {
    .unit-type-cards { grid-template-columns: 1fr; }
    .floor-schematic { grid-template-columns: 1fr; gap: 0.75rem; }
    .wing { grid-template-columns: repeat(3, 1fr); }
    .lift-core { flex-direction: row; min-width: unset; padding: 0.6rem 1rem; justify-content: center; }
    .avail-summary { grid-template-columns: repeat(3,1fr); }
    .unit-room-list { grid-template-columns: 1fr; }
}

@media (max-width: 479.98px) {
    .wing { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
    .unit-block { padding: 0.6rem 0.4rem; }
    .unit-num { font-size: 1rem; }
}

/* ── Chatbot Widget ──────────────────────────────────────── */
.chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    font-family: 'Poppins', system-ui, sans-serif;
}

.chatbot-trigger {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    border: none;
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(35,78,112,0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.chatbot-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(35,78,112,0.48);
}

.chatbot-trigger .chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chatbot-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 540px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(35,78,112,0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(35,78,112,0.1);
    transition: opacity 0.22s ease, transform 0.22s ease;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
}

.chatbot-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Views inside the panel must be flex columns so chat-body can scroll */
#chatView, #chatInputView {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    padding: 1rem 1.1rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-header h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.12rem;
}

.chat-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    margin: 0;
    line-height: 1;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #1d2730;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scroll-behavior: smooth;
}

.chat-msg {
    max-width: 88%;
    font-size: 0.85rem;
    line-height: 1.55;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.chat-msg.bot {
    background: #f0f4f8;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-msg.user {
    background: var(--navy);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.suggest-chip {
    background: #fff;
    border: 1.5px solid rgba(35,78,112,0.22);
    border-radius: 20px;
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.suggest-chip:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.chat-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line);
    background: #fafafa;
    flex-shrink: 0;
}

.chat-footer a {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: #1d2730;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.chat-footer a:hover { opacity: 0.88; }

.chat-footer small {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 0.7rem;
    margin-top: 0.4rem;
}

@media (max-width: 479.98px) {
    .chatbot-panel {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        max-height: 70vh;
    }
    .chat-body {
        max-height: calc(70vh - 180px);
    }
}

/* ── Language Toggle Button ──────────────────────────────── */
.lang-toggle-btn {
    background: none;
    border: 1.5px solid rgba(35,78,112,0.3);
    border-radius: 20px;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lang-toggle-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
[lang="te"] .lang-toggle-btn { border-color: var(--gold); color: var(--gold); }
[lang="te"] .lang-toggle-btn:hover { background: var(--gold); color: #1d2730; }

/* ── Floor Plan Schematic (new SVG-based) ────────────────── */
.fp-svg-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(35,78,112,0.1);
    background: #f0f4f8;
}
.fp-unit-clickable { cursor: pointer; }
.fp-unit-clickable:hover rect:first-child { fill: rgba(212,160,23,0.08) !important; }
.fp-unit-sold { opacity: 0.6; }

/* ── Unit Modal ──────────────────────────────────────────── */
.unit-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(35,78,112,0.22);
}
.unit-modal-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: #fff;
    padding: 1.2rem 1.5rem;
    align-items: flex-start;
}
.modal-bhk-badge {
    display: inline-block;
    background: rgba(212,160,23,0.22);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.modal-status-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
}
.unit-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.unit-blueprint-panel {
    background: #f8fafc;
    border-right: 1px solid var(--line);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}
.blueprint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.blueprint-svg-area { flex: 1; }
.unit-enquiry-panel { padding: 1.5rem; overflow-y: auto; max-height: 560px; }
.unit-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.detail-item { background: #f8fafc; border-radius: 7px; padding: 0.65rem 0.8rem; border: 1px solid var(--line); }
.detail-item small { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.detail-item strong { color: var(--navy); font-size: 0.9rem; }

.modal-room-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.room-chip {
    background: rgba(35,78,112,0.07);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(35,78,112,0.12);
}

.enquiry-form-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.enquiry-form label { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }

@media (max-width: 767.98px) {
    .unit-modal-grid { grid-template-columns: 1fr; }
    .unit-blueprint-panel { border-right: none; border-bottom: 1px solid var(--line); max-height: 220px; }
    .unit-enquiry-panel { max-height: unset; }
    .unit-details-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Chatbot enhanced ─────────────────────────────────────── */
.chat-footer-bar {
    border-top: 1px solid var(--line);
    padding: 0.55rem 0.9rem;
    background: #fafafa;
}
.chat-input-trigger {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.3rem 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}
.chat-input-trigger:hover { color: var(--gold); }
.chat-input-form-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.cb-field { margin-bottom: 0.6rem; }
.cb-field label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; font-family: 'Poppins',sans-serif; }
.cb-input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1.5px solid #d8dde2;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.cb-input:focus { border-color: var(--gold); }
textarea.cb-input { resize: vertical; min-height: 60px; }
.cb-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border: none;
    border-radius: 7px;
    color: #1d2730;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.15s;
    margin-top: 0.25rem;
}
.cb-submit-btn:hover { opacity: 0.88; }
.cb-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.msg-form-view .chat-body { padding: 0.9rem; }

/* ── Admin ghost link (barely visible) ───────────────────── */
.admin-ghost-link {
    color: rgba(255,255,255,0.12) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}
.admin-ghost-link:hover { color: rgba(255,255,255,0.4) !important; }

/* ── Avail summary (4-col) ─────────────────────────────── */
.avail-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
@media (max-width:575px) { .avail-summary { grid-template-columns: repeat(2,1fr); } }
