:root {
    --primary-blue: #0087eb;
    --dark-bg: #001e33;
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0b1a2a;
    --muted: rgba(11, 26, 42, 0.65);
    --border: rgba(0,0,0,0.10);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-strong: 0 16px 45px rgba(0,0,0,0.14);
    --ring: rgba(0, 135, 235, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { background: var(--bg); color: var(--text); }
button { font: inherit; }

/* HEADER */
.main-header {
    background: rgba(0, 30, 51, 0.70);
    backdrop-filter: saturate(140%) blur(10px);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.main-header.scrolled {
    background: rgba(0, 30, 51, 0.92);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.logo { font-size: 24px; font-weight: 900; letter-spacing: -0.2px; }

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

.search-box {
    background: var(--card);
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 14px;
    overflow: visible;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    min-width: 260px;
    position: relative;
}

.search-box:focus-within { box-shadow: 0 0 0 6px var(--ring), 0 10px 25px rgba(0,0,0,0.10); }

.search-type {
    padding: 10px 12px;
    border-right: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    border-radius: 14px 0 0 14px;
}

.search-type:hover { background: rgba(0,0,0,0.03); }

.search-type-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 230px;
    background: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    box-shadow: var(--shadow-strong);
    padding: 10px;
    z-index: 1200;
    display: none;
}

.search-type-menu.open { display: block; }

.menu-group + .menu-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06); }

.menu-title {
    font-size: 11px;
    color: rgba(0,0,0,0.45);
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}

.menu-item {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    color: var(--text);
    font-weight: 800;
    text-align: left;
}

.menu-item:hover { background: rgba(0, 135, 235, 0.08); }

.menu-item i { opacity: 0; color: var(--text); }
.menu-item[aria-checked="true"] i { opacity: 1; }

/* SEARCH OVERLAY (header input) */
.search-overlay[hidden] { display: none; }

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: start center;
    padding: 70px 18px 18px;
    z-index: 3000;
}

.search-modal {
    width: min(980px, 100%);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0,0,0,0.10);
    overflow: hidden;
}

.search-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-modal-left {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    position: relative;
}

.search-modal-type {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 900;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
}

.search-modal-type:hover { background: rgba(0,0,0,0.04); }

.modal-search-type-menu {
    left: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    z-index: 3100;
}

.search-modal-input {
    border-left: 1px solid rgba(0,0,0,0.08);
    padding-left: 12px;
    min-width: 0;
    position: relative;
}

.search-modal-input .search-suggestions {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
}

.search-modal-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px 8px;
}

.search-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
}

.bar-left { display: flex; align-items: center; gap: 10px; }
.bar-title { font-size: 12px; color: rgba(0,0,0,0.55); font-weight: 800; }
.bar-link { background: transparent; border: none; color: var(--primary-blue); cursor: pointer; font-weight: 900; }

.bar-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bar-tab {
    border: 1px solid rgba(0,0,0,0.12);
    background: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    color: rgba(0,0,0,0.72);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bar-tab.active {
    border-color: rgba(0, 135, 235, 0.40);
    background: rgba(0, 135, 235, 0.10);
    color: var(--text);
}

.search-modal-body { padding: 14px 16px 8px; min-height: 220px; }
.pane { display: none; }
.pane.active { display: block; }

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 12px 16px;
    padding-top: 6px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(0,0,0,0.80);
}

.type-item input { width: 16px; height: 16px; accent-color: var(--primary-blue); }

.modal-inline-link {
    margin-top: 10px;
    background: transparent;
    border: none;
    color: rgba(0,0,0,0.72);
    cursor: pointer;
    font-size: 13px;
}

.modal-inline-link b { color: var(--primary-blue); }

.pane-title { font-weight: 900; margin-top: 2px; }
.pane-sub { color: rgba(0,0,0,0.55); font-size: 12px; margin-top: 4px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill-row .pill { padding: 9px 14px; }

.range-wrap { margin-top: 14px; }
.range-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.range-pill {
    background: #0f1b26;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 12px;
}

.range-track { position: relative; height: 34px; }
.range {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 18px;
}

.range::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(0,0,0,0.10);
    border-radius: 999px;
}

.range::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--primary-blue);
    border: 2px solid white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.20);
    margin-top: -6px;
}

.range::-moz-range-track {
    height: 4px;
    background: rgba(0,0,0,0.10);
    border-radius: 999px;
}

.range::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--primary-blue);
    border: 2px solid white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}

.range::-moz-focus-outer { border: 0; }

.search-modal-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 900;
    padding: 10px 12px;
}

@media (max-width: 840px) {
    .type-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
}

@media (max-width: 560px) {
    .search-overlay { padding-top: 60px; }
    .type-grid { grid-template-columns: 1fr; }
    .bar-tabs { justify-content: flex-start; }
}

.tags-container { flex: 1; display: flex; align-items: center; padding: 0 10px; gap: 8px; min-width: 0; }

.tag {
    background: rgba(0, 135, 235, 0.10);
    border: 1px solid rgba(0, 135, 235, 0.24);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tag-x {
    border: none;
    background: rgba(0,0,0,0.05);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.60);
}

.tags-container input {
    border: none;
    outline: none;
    padding: 10px 8px;
    width: 100%;
    min-width: 0;
    font-size: 14px;
}

.search-suggestions {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 60;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggestions .suggestion-item {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item:focus {
    background: rgba(0,0,0,0.04);
    outline: none;
}

.search-suggestions .suggestion-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(0,0,0,0.88);
}

.search-suggestions mark {
    background: rgba(0, 135, 235, 0.14);
    color: inherit;
    padding: 0 2px;
    border-radius: 6px;
}

.search-suggestions .suggestion-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-suggestions .suggestion-type {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    font-weight: 800;
}

.mic-icon { color: var(--primary-blue); padding: 0 8px; }
.search-btn { padding: 0 14px; font-size: 18px; color: rgba(0,0,0,0.75); }
.search-btn:hover { background: rgba(0,0,0,0.04); }

.btn-post {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.85);
    color: white;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.btn-post span {
    margin-left: 6px;
    background: rgba(76, 175, 80, 0.18);
    color: #b8ffbd;
    border: 1px solid rgba(76, 175, 80, 0.32);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 800;
}

.header-right { display: flex; align-items: center; gap: 14px; }
.user-profile { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: rgba(255,255,255,0.92); }
.menu-icon { color: rgba(255,255,255,0.92); }

/* LAYOUT */
.page-layout {
    max-width: 1300px;
    margin: 18px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    padding: 0 20px;
}

/* SIDEBAR */
.sidebar {
    background: var(--card);
    padding: 18px;
    border-radius: 16px;
    position: sticky;
    top: 78px;
    height: calc(100vh - 98px);
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.filter-section { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 14px 0; }
.filter-header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.clear-all { color: var(--primary-blue); cursor: pointer; font-size: 12px; background: transparent; border: none; font-weight: 800; }

.applied-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 135, 235, 0.10);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(0, 135, 235, 0.24);
}

.chip-x {
    border: none;
    background: rgba(0,0,0,0.05);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.60);
}

/* Custom Switch Toggle */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #c7cdd4; transition: .2s; border-radius: 999px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .2s; border-radius: 50%; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(16px); }

.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.verified-header { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.small-text { color: var(--muted); font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.small-text i { color: #2e7d32; }

.filter-label { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.budget-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.budget-selects select { border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px; background: white; color: var(--text); }

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 125, 50, 0.14);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.22);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}

.collapsible { padding: 10px 0; }

.section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    color: var(--text);
}

.section-toggle i {
    color: rgba(0,0,0,0.55);
    transition: transform 140ms ease;
}

.section-body { padding: 6px 0 2px; }

.collapsible.collapsed .section-body { display: none; }
.collapsible.collapsed .section-toggle i { transform: rotate(180deg); }

.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-clear {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 900;
    font-size: 12px;
    padding: 8px 0;
}

.range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.select-pill,
.unit-select {
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 999px;
    padding: 10px 12px;
    background: white;
    color: var(--text);
    font-weight: 700;
}

.unit-select { padding: 8px 12px; font-size: 12px; color: rgba(0,0,0,0.70); }
.area-sub { margin-top: 2px; margin-bottom: 8px; }

.more-link,
.more-inline {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    padding: 8px 0 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.more-inline { font-weight: 800; font-size: 13px; }

.check-list { display: grid; gap: 10px; margin-top: 6px; }

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.check-item input { width: 16px; height: 16px; accent-color: var(--primary-blue); }

.pill-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill {
    border: 1px solid rgba(0,0,0,0.16);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    background: white;
    color: var(--muted);
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.pill:hover { transform: translateY(-1px); border-color: rgba(0, 135, 235, 0.35); }
.pill.active { border-color: rgba(0, 135, 235, 0.55); color: var(--primary-blue); background: rgba(0, 135, 235, 0.08); }

/* MAIN CONTENT */
.results-title { font-size: 18px; margin-bottom: 14px; font-weight: 900; }
.results-title span { color: var(--muted); font-weight: 600; }

.insight-banner {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.insight-banner i { color: #f9a825; margin-right: 10px; }
.insight-banner a { text-decoration: none; color: var(--primary-blue); font-weight: 900; font-size: 14px; }

.quick-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.chip-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 46px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.72);
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.10);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(0,0,0,0.75);
    z-index: 2;
}

.chip-scroll:hover { border-color: rgba(0, 135, 235, 0.30); color: var(--primary-blue); }
.chip-scroll-left { left: 6px; }
.chip-scroll-right { right: 6px; }
.chip-scroll:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}
.chip-scroll:disabled:hover {
    border-color: rgba(0,0,0,0.10);
    color: rgba(0,0,0,0.75);
}

.q-chip {
    background: white;
    border: 1px solid rgba(0,0,0,0.14);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
    white-space: nowrap;
}
.q-chip:hover { transform: translateY(-1px); border-color: rgba(0, 135, 235, 0.28); }
.q-chip.active { background: rgba(0, 135, 235, 0.10); border-color: rgba(0, 135, 235, 0.40); color: #0b1a2a; }
.new-launch { border-color: rgba(255, 152, 0, 0.45); color: #e67c00; }
.new-launch.active { background: rgba(255, 152, 0, 0.10); border-color: rgba(255, 152, 0, 0.52); }

.sort-wrap { position: relative; margin-left: auto; }

.sort-by {
    font-size: 13px;
    background: white;
    border: 1px solid rgba(0,0,0,0.14);
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    white-space: nowrap;
}

.sort-by:hover { border-color: rgba(0, 135, 235, 0.28); }
.sort-by b { font-weight: 900; }

.sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 340px;
    background: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    box-shadow: var(--shadow-strong);
    padding: 8px;
    z-index: 1400;
    display: none;
}

.sort-menu.open { display: block; }

.sort-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sort-item:hover { background: rgba(0, 135, 235, 0.08); }
.sort-item.active { background: rgba(0, 135, 235, 0.10); }

.sort-item.locked { color: rgba(0,0,0,0.80); }

.lock-note {
    color: rgba(0,0,0,0.55);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 740px) {
    .quick-filters { flex-direction: column; align-items: stretch; }
    .sort-wrap {
        margin-left: 0;
        width: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .results-actions { margin-right: 0; }
    .view-toggle { flex: 0 0 auto; }
    .sort-by { flex: 1 1 220px; width: auto; justify-content: center; }
    .sort-menu { width: 100%; }
}

/* PROPERTY CARD */
.property-card {
    background: var(--card);
    border-radius: 16px;
    display: flex;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }

.card-img-box { width: 290px; position: relative; background: #eef3f9; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge-featured,
.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.badge-featured { background: rgba(0, 30, 51, 0.90); }
.badge-new { background: rgba(0, 135, 235, 0.92); }

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.20);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.heart-icon.saved { background: rgba(255, 77, 77, 0.20); border-color: rgba(255, 77, 77, 0.45); }

.card-details { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card-details h3 { font-size: 18px; color: #000; letter-spacing: -0.2px; }
.card-details p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.blue-check { color: var(--primary-blue); font-size: 12px; }

.price-info { display: flex; gap: 26px; margin: 6px 0 0; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 12px; flex-wrap: wrap; }
.price-main { font-size: 20px; font-weight: 900; }
.sqft-main { font-size: 14px; font-weight: 800; color: var(--text); }
.sqft-main span { font-size: 12px; color: var(--muted); display: block; font-weight: 600; margin-top: 2px; }

.description { color: var(--muted); line-height: 1.45; }

.multi-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f5f7fb; padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); }
.m-item { font-size: 12px; color: var(--muted); }
.m-item b { color: var(--text); }

.nearby { margin-top: 4px; color: var(--muted); font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nearby-tag { background: rgba(0,0,0,0.05); padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--text); border: 1px solid rgba(0,0,0,0.06); }

.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 14px; gap: 12px; }
.poster-info { font-size: 12px; line-height: 1.5; color: var(--muted); }
.poster-info b { color: var(--text); }

.card-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.btn-outline {
    background: white;
    border: 1px solid rgba(0, 135, 235, 0.55);
    color: var(--primary-blue);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.btn-outline:hover { background: rgba(0, 135, 235, 0.08); }

.btn-filled {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
}

.btn-filled:hover { filter: brightness(0.96); }

/* FOOTER */
.main-footer { background: #0f1b26; color: rgba(255,255,255,0.62); padding: 50px 0; margin-top: 42px; }
.footer-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 20px; gap: 34px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; cursor: pointer; }
.footer-col ul li:hover { color: #fff; }
.social-links { margin-top: 16px; display: flex; gap: 16px; font-size: 20px; color: #fff; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0, 30, 51, 0.96);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 2000;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(-2px); }

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

@media (max-width: 740px) {
    .header-container { padding: 0 14px; }
    .btn-post { display: none; }
    .property-card { flex-direction: column; }
    .card-img-box { width: 100%; height: 220px; }
    .sort-by { margin-left: 0; }
}

@media (max-width: 480px) {
    .search-type { display: none; }
    .tag { display: none; }
}
