/* =====================================================
   NOIDALUXURY — Projects Page
   Path: public/css/projects.css
   ===================================================== */

:root {
    --dark: #0b1e14;
    --dark-mid: #112a1c;
    --accent: #1B6B5A;
    --gold: #C9A84C;
    --gold-light: #e8cc7e;
    --cream: #faf6ed;
    --light-green: #f0f7f3;
    --text-dark: #1a2622;
    --text-muted: #5a6b65;
    --border: #e0ede9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    margin: 0;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ─── PAGE HERO ─── */
.page-hero {
    background: linear-gradient(135deg, #0b1e14 0%, #112a1c 55%, #0b1e14 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-eyebrow {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}
.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 10px;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    margin-bottom: 0;
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat span {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Hero CTA buttons */
.hero-cta-call,
.hero-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hero-cta-call {
    background: var(--gold);
    color: #0b1e14;
    margin-right: 8px;
}
.hero-cta-call:hover { background: var(--gold-light); color: #0b1e14; transform: translateY(-1px); }
.hero-cta-wa {
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
}
.hero-cta-wa:hover { background: #128C7E; color: #fff; transform: translateY(-1px); }

/* ─── SEARCH + FILTER PANEL ─── */
.search-panel {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
#projectSearch {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: border .2s;
    background: #fff;
}
#projectSearch:focus { border-color: var(--gold); }
#projectSearch::placeholder { color: var(--text-muted); }

.filter-select {
    padding: 10px 32px 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: #fff 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='%235a6b65' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border .2s;
    white-space: nowrap;
}
.filter-select:focus { border-color: var(--gold); }

.chip-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.chip:hover,
.chip.active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}
.chip.active-type {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ─── RESULTS BAR ─── */
.results-strip {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 0;
    flex-wrap: wrap;
    gap: 8px;
}
.results-strip .results-bar { padding: 0; }
.results-count { font-size: 13px; color: var(--text-muted); }
.results-count strong { color: var(--text-dark); }
.results-controls { display: flex; align-items: center; gap: 12px; }
.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.sort-wrap select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 24px 5px 8px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235a6b65' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

/* View toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .2s;
    font-size: 13px;
}
.view-btn.active,
.view-btn:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

/* ─── MAIN LAYOUT ─── */
.projects-page { padding: 32px 0 72px; }

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 84px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-title i { color: var(--gold); font-size: 11px; }

.sb-group { margin-bottom: 14px; }
.sb-group.sb-group-last { margin-bottom: 0; }
.sb-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

/* Sidebar checkboxes */
.sb-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.sb-check:last-child { border-bottom: none; }
.sb-check input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.sb-check-count {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--text-muted);
    background: var(--cream);
    padding: 1px 6px;
    border-radius: 10px;
}

/* Sector pills */
.sector-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sector-pill {
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    background: #fff;
}
.sector-pill:hover,
.sector-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Clear filters button */
.clear-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0;
    margin-top: 4px;
}
.clear-btn:hover { color: #145549; }
.clear-link { color: var(--accent); font-weight: 600; }

/* Sidebar CTA card */
.sidebar-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
}
.sidebar-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.sidebar-cta p {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin-bottom: 16px;
    line-height: 1.6;
}
.sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all .2s;
    text-decoration: none;
    text-align: center;
}
.sidebar-cta-btn.gold { background: var(--gold); color: #0b1e14; }
.sidebar-cta-btn.gold:hover { background: var(--gold-light); color: #0b1e14; }
.sidebar-cta-btn.wa { background: #25D366; color: #fff; }
.sidebar-cta-btn.wa:hover { background: #128C7E; color: #fff; }

/* ─── PROJECT CARDS ─── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}
.project-grid.list-view { grid-template-columns: 1fr; }

.project-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid var(--border);
    transition: transform .28s, box-shadow .28s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
.project-card.hidden { display: none !important; }

/* List view card */
.project-grid.list-view .project-card {
    flex-direction: row;
    height: 160px;
}
.project-grid.list-view .project-img {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: unset;
    height: 100%;
}
.project-grid.list-view .project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 18px;
}

.project-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.project-card:hover .project-img img { transform: scale(1.06); }

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-ready { background: #0d8a52; color: #fff; }
.badge-under { background: var(--gold); color: #0b1e14; }
.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(11,30,20,.75);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
}

.project-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-developer {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3px;
}
.project-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.2;
}
.project-location {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.project-location i { color: var(--gold); font-size: 10px; }
.project-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.project-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}
.project-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}
.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.project-rera {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}
.project-cta {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s;
}
.project-card:hover .project-cta { gap: 8px; }

/* ─── NO RESULTS ─── */
.no-results {
    text-align: center;
    padding: 64px 24px;
    display: none;
}
.no-results i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
}
.no-results h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.no-results p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ─── ENQUIRY MODAL ─── */
.nl-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.nl-modal.active { display: flex; }
.nl-modal-inner {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    max-height: 90vh;
    overflow-y: auto;
}
.nl-modal-inner h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-right: 30px;
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.modal-close-btn:hover { color: var(--text-dark); }
.nl-modal-inner form input,
.nl-modal-inner form textarea,
.nl-modal-inner form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 11px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: #fff;
}
.nl-modal-inner form input:focus,
.nl-modal-inner form textarea:focus,
.nl-modal-inner form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.nl-modal-inner form button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background .2s;
}
.nl-modal-inner form button:hover { background: #155748; }
.modal-consent {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ─── SCROLL REVEAL (injected at runtime) ─── */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal-item.in-view {
    opacity: 1;
    transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    .sidebar-cta { display: none; }
    .project-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
    .page-hero { padding: 52px 0 40px; }
    .page-hero h1 { font-size: 1.9rem; }
    .search-row { gap: 8px; }
    .filter-select { font-size: 12px; padding: 9px 28px 9px 10px; }
    .project-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .project-grid.list-view .project-card {
        flex-direction: column;
        height: auto;
    }
    .project-grid.list-view .project-img {
        width: 100%;
        aspect-ratio: 16/10;
    }
    .sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .search-wrap { min-width: unset; }
    .filter-select { width: 100%; }
    .project-grid { grid-template-columns: 1fr; }
    .chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .chip-row::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .hero-stats { gap: 16px; }
}
