/* ==========================================================================
   OnlineProperty — Property Listing Page (COMPLETE FILE)
   Save as: public/assets/css/property-list.css

   Depends on home-v2.css :root tokens (--brand, --brand-dark, --brand-light,
   --ink, --ink-soft, --ink-faint, --border, --muted-bg, --radius,
   --radius-sm, --shadow, --shadow-md, --btn styles). Your layout already
   loads them in this order:

       <link rel="stylesheet" href="{{ asset('assets/css/home-v2.css') }}">
       <link rel="stylesheet" href="{{ asset('assets/css/property-list.css') }}">

   That order is correct — leave it as-is, this file must load AFTER
   home-v2.css so the tokens exist when these rules use them.

   This is the full listing-page stylesheet: your original design (topbar,
   filters sidebar, property cards, pagination) PLUS every class that was
   referenced in properties-listing.blade.php but missing from your first
   draft (badges, fav button, empty state, outline button, radio-style
   checklist, disabled filter groups). Nothing to merge by hand — this
   file is complete and self-contained.
   ========================================================================== */

.op-list-page {
    padding: 28px 24px 64px;
}

/* ── Top filter bar ───────────────────────────────────────────────── */
.op-topbar {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr 1.2fr auto auto;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.op-topbar-field {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 46px;
    color: var(--ink-soft);
    font-size: 14px;
    background: #fff;
}
.op-topbar-field svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.op-topbar-field input,
.op-topbar-field select {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.op-topbar-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}
.op-topbar-more svg { width: 16px; height: 16px; }
.op-topbar-more:hover { border-color: var(--brand); color: var(--brand); }
.op-topbar-submit {
    padding: 0 26px;
    height: 46px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    font-family: inherit;
    cursor: pointer;
}
.op-topbar-submit:hover { background: var(--brand-dark); }

@media (max-width: 1100px) {
    .op-topbar { grid-template-columns: repeat(3, 1fr); }
    .op-topbar-submit { grid-column: span 3; }
}
@media (max-width: 640px) {
    .op-topbar { grid-template-columns: 1fr 1fr; }
    .op-topbar-submit { grid-column: span 2; }
}

/* ── Page heading ─────────────────────────────────────────────────── */
.op-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.op-list-header h1 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
.op-list-header p {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
}

.op-view-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.op-view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
}
.op-view-toggle button svg { width: 15px; height: 15px; }
.op-view-toggle button.is-active {
    background: var(--brand);
    color: #fff;
}

/* ── Sort bar ─────────────────────────────────────────────────────── */
.op-sortbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.op-sortbar-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}

/* ── Main layout: sidebar + results ───────────────────────────────── */
.op-list-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .op-list-layout { grid-template-columns: 1fr; }
}

/* ── Filters sidebar ──────────────────────────────────────────────── */
.op-filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.op-filters::-webkit-scrollbar { width: 6px; }
.op-filters::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.op-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.op-filters-head h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}
.op-filters-clear {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
}

.op-filter-group {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.op-filter-group:last-of-type { border-bottom: none; margin-bottom: 8px; }

.op-filter-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -.005em;
}
.op-filter-sub {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0 0 6px;
    font-weight: 500;
}
.op-filter-select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
}

/* Checklist (checkboxes) */
.op-check-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.op-check-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}
.op-check-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s ease;
}
.op-check-list input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: var(--brand);
}
.op-check-list input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio-styled variant of .op-check-list — used for Category / Type /
   City, which are single-select (radio inputs), so the control renders
   as a round dot instead of a square check. */
.op-check-list--radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s ease;
}
.op-check-list--radio input[type="radio"]:checked {
    border-color: var(--brand);
}
.op-check-list--radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

/* Disabled (not-yet-wired) checkbox groups — Possession / Furnishing /
   etc, kept as UI-only until the backend supports them. */
.op-check-list input:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.op-check-list label:has(input:disabled) {
    cursor: not-allowed;
    opacity: .6;
}

.op-filter-showmore {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
}

/* Range rows (Price / Area / Budget) */
.op-range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.op-range-field {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}
.op-range-field span {
    display: block;
    font-size: 10.5px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.op-range-field select,
.op-range-field input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
    width: 100%;
    cursor: pointer;
}
.op-range-field input[type="number"] { cursor: text; }

/* Filter footer */
.op-filters-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.op-btn-block {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
}
.op-filters-reset {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    font-family: inherit;
    cursor: pointer;
}

/* ── Property cards ───────────────────────────────────────────────── */
.op-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.op-prop-card {
    display: grid;
    grid-template-columns: 260px 1fr 180px;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.op-prop-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

@media (max-width: 900px) {
    .op-prop-card { grid-template-columns: 220px 1fr; }
    .op-prop-card .op-prop-actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .op-prop-card { grid-template-columns: 1fr; }
}

/* Media */
.op-prop-media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--muted-bg);
}
.op-prop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.op-photo-count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
}
.op-photo-count svg { width: 12px; height: 12px; }

/* Badge on the property card image (RERA Verified / Builder Verified / etc) */
.op-badge {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 12px 5px 10px;
    border-radius: 0 20px 20px 0;
    color: #fff;
    z-index: 1;
}
.op-badge--rera      { background: #16a34a; }
.op-badge--builder   { background: var(--brand); }
.op-badge--owner     { background: #b45309; }

/* Favourite / shortlist button on the card image */
.op-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}
.op-fav-btn svg { width: 16px; height: 16px; }
.op-fav-btn:hover { color: #e11d48; }

/* Body */
.op-prop-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.op-prop-top { display: flex; flex-direction: column; gap: 3px; }
.op-prop-price {
    font-size: 21px;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.01em;
}
.op-prop-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 0;
}

.op-prop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}
.op-prop-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.op-prop-meta svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }

.op-prop-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 2px 0 0;
}
.op-prop-loc svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }

/* Status chips */
.op-status-chip {
    display: inline-block;
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 4px;
}
.op-status-chip--ready        { background: #dcfce7; color: #15803d; }
.op-status-chip--construction { background: #fef3c7; color: #b45309; }
.op-status-chip--new          { background: #dbeafe; color: #1d4ed8; }

/* Agent row */
.op-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 6px 0 0;
    flex-wrap: wrap;
}
.op-agent svg { width: 15px; height: 15px; color: var(--ink-faint); flex-shrink: 0; }
.op-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-light);
    padding: 3px 8px;
    border-radius: 20px;
}
.op-verified svg { width: 11px; height: 11px; color: var(--brand); }

/* Actions column */
.op-prop-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}
.op-prop-actions .op-btn {
    padding: 11px 0;
    font-size: 13.5px;
    width: 100%;
}
@media (max-width: 900px) {
    .op-prop-actions { flex-direction: row; justify-content: flex-start; }
    .op-prop-actions .op-btn { width: auto; padding: 11px 28px; }
}

/* Outline button variant, used for "View Details" next to the primary
   "Contact" button. */
.op-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}
.op-btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Empty state (no results match filters) */
.op-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
    font-size: 14px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ── Pagination ───────────────────────────────────────────────────── */
.op-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.op-pagination a,
.op-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .15s ease;
    text-decoration: none;
}
.op-pagination a:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.op-pagination a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.op-pagination svg { width: 14px; height: 14px; }
.op-pagination span {
    border: none;
    background: transparent;
    color: var(--ink-faint);
}
.op-pagination .is-disabled {
    opacity: .4;
    pointer-events: none;
}


/* ── property-list.css — v3 additions/overrides ─────────────────────
   Add this block AFTER your existing property-list.css (so these rules
   win where they overlap — thinner topbar, sort field, grid view,
   sleek right-aligned pagination, SEO content block). Nothing needs to
   be deleted from the old file; these rules override by loading later. */

/* ── Topbar — thinner, tighter, no "More Filters" button anymore ───── */
.op-topbar {
    grid-template-columns: 1.4fr 1fr 1.1fr 0.9fr auto 1.1fr;
    padding: 8px;
    gap: 8px;
    box-shadow: none;
    border-color: var(--border);
}
.op-topbar-field {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
}
.op-topbar-field svg { width: 14px; height: 14px; }
.op-topbar-field select,
.op-topbar-field input { font-size: 13px; }
.op-topbar-submit {
    height: 36px;
    padding: 0 20px;
    font-size: 13px;
}
.op-topbar-sort select { font-weight: 600; color: var(--ink); }

@media (max-width: 1100px) {
    .op-topbar { grid-template-columns: repeat(3, 1fr); }
    .op-topbar-submit,
    .op-topbar-sort { grid-column: span 3; }
}
@media (max-width: 640px) {
    .op-topbar { grid-template-columns: 1fr 1fr; }
    .op-topbar-submit,
    .op-topbar-sort { grid-column: span 2; }
}

/* ── Grid view — 3 cards per row, vertical card layout ──────────────
   .op-results.is-grid is toggled by the view-toggle JS. */
.op-results.is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.op-results.is-grid .op-prop-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    overflow: hidden;
}
.op-results.is-grid .op-prop-media {
    border-radius: 0;
    aspect-ratio: 16 / 11;
}
.op-results.is-grid .op-prop-body {
    padding: 14px 16px 4px;
}
.op-results.is-grid .op-prop-meta { display: none; }
.op-results.is-grid .op-agent { display: none; }
.op-results.is-grid .op-prop-actions {
    flex-direction: row;
    padding: 14px 16px 16px;
}
.op-results.is-grid .op-prop-actions .op-btn {
    width: auto;
    flex: 1;
    padding: 10px 0;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .op-results.is-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .op-results.is-grid { grid-template-columns: 1fr; }
}

/* ── Pagination — sleeker, right-aligned ─────────────────────────── */
.op-pagination {
    justify-content: flex-end;
    margin-top: 22px;
    gap: 4px;
}
.op-pagination a,
.op-pagination span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 12.5px;
    border-color: transparent;
    background: transparent;
    font-weight: 500;
}
.op-pagination a:hover {
    background: var(--muted-bg);
    border-color: transparent;
    color: var(--brand);
}
.op-pagination a.is-active {
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}
.op-pagination .op-page-prev,
.op-pagination .op-page-next {
    border: 1px solid var(--border);
    background: #fff;
}
.op-pagination .op-page-prev:hover,
.op-pagination .op-page-next:hover {
    border-color: var(--brand);
}

/* ── SEO content block — sits before pagination ─────────────────────
   Reuses the same typographic scale as .op-cms-content for
   consistency with the About/static pages. */
.op-seo-content {
    /* background: var(--brand-light);
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe; */

    border: 0px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-top: 24px;
}
.op-seo-content h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 12px;
}
.op-seo-content p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #000;
    margin: 0 0 12px;
}
.op-seo-content p:last-child { margin-bottom: 0; }


/* ── property-list.css — v4 additions ────────────────────────────────
   Add this block AFTER your existing property-list.css (and after the
   v3 additions if you kept them as a separate file — load order there
   doesn't matter, this file doesn't touch anything v3 touched except
   noted overrides below). */

/* ── Intro paragraph, under the banner ──────────────────────────────── */
.op-list-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #000;
    /* max-width: 820px; */
    margin: 0 0 18px;
}

/* ── Searchable city combobox (replaces the plain <select> for City) ─── */
.op-combobox {
    position: relative;
}
.op-combobox-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    width: 100%;
    height: 100%;
    cursor: text;
}
.op-combobox-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 20;
    padding: 6px;
}
.op-combobox-list.is-open { display: block; }
.op-combobox-option {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--ink);
    border-radius: 6px;
    cursor: pointer;
}
.op-combobox-option:hover { background: var(--brand-light); color: var(--brand); }

/* ── Active filter chips ─────────────────────────────────────────────── */
.op-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.op-active-filters-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-right: 2px;
}
.op-filter-chip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border-radius: 20px;
    padding: 6px 8px 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}
.op-filter-chip-tag svg {
    width: 14px;
    height: 14px;
    background: rgba(37, 99, 235, .14);
    border-radius: 50%;
    padding: 2px;
}
.op-filter-chip-tag:hover { background: #dbeafe; }
.op-active-filters-clear {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: underline;
    margin-left: 4px;
}
.op-active-filters-clear:hover { color: var(--brand); }

/* ── Property ad banner — full-width, sits between cards ────────────── */
.op-ad-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.op-ad-banner img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.op-ad-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, .75);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 20px;
}
.op-results.is-grid .op-ad-banner { grid-column: 1 / -1; }

/* ── List-view height reduction + centered actions ───────────────────
   These override the base .op-prop-card / .op-prop-media / .op-prop-actions
   rules from property-list.css — load this file AFTER that one. Only
   applies outside grid mode (.op-results:not(.is-grid)), so grid-view
   cards are untouched. */
.op-results:not(.is-grid) .op-prop-card {
    grid-template-columns: 200px 1fr 170px;
    padding: 12px;
    gap: 16px;
}
.op-results:not(.is-grid) .op-prop-media {
    aspect-ratio: 4 / 2.6;
}
.op-results:not(.is-grid) .op-prop-body {
    gap: 5px;
}
.op-results:not(.is-grid) .op-prop-price {
    font-size: 18px;
}
.op-results:not(.is-grid) .op-prop-title {
    font-size: 14px;
}

/* Center View Details / Contact vertically within the actions column,
   in both list and grid view. */
.op-prop-actions {
    justify-content: center;
}

@media (max-width: 900px) {
    .op-results:not(.is-grid) .op-prop-card { grid-template-columns: 160px 1fr; }
}

/* ── Modal (shared "Book Consultation" / "Enquiry" popup styles) ─────
   Only add this block if property-list.css doesn't already have it
   (it was added to home-v2.css for the About page — if this listing
   page loads home-v2.css too, as your layout does, you may already
   have these rules and can skip this block to avoid duplicates). */
.op-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.op-modal.is-open { display: flex; }
.op-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
}
.op-modal-panel {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
    max-height: 90vh;
    overflow-y: auto;
}
.op-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--muted-bg);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.op-modal-close:hover { background: var(--border); color: var(--ink); }
.op-modal-panel h3 { font-size: 20px; font-weight: 900; color: var(--ink); margin: 0 0 6px; }
.op-modal-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.5; }
.op-modal-form { display: flex; flex-direction: column; gap: 16px; }
.op-modal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.op-modal-form input,
.op-modal-form select,
.op-modal-form textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    resize: vertical;
}
.op-modal-form input:focus,
.op-modal-form select:focus,
.op-modal-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}
.op-modal-submit { width: 100%; justify-content: center; margin-top: 4px; }

/* ── property-list.css — v5 additions ────────────────────────────────
   Add this block AFTER your existing property-list.css (and after any
   earlier v3/v4 addition files). Covers: sidebar city search box, the
   Min/Max budget selects (same .op-range-field shell, now holding a
   <select> instead of an <input>), and the 1/2/3-image ad banner. */

/* ── Sidebar City search box ─────────────────────────────────────────── */
.op-filter-search {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--ink);
    margin-bottom: 10px;
}
.op-filter-search:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}

/* City checklist gets a max-height + scroll now that it lists every
   city (not just the first 12) — searching finds ones further down. */
#cityFilterList {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
#cityFilterList::-webkit-scrollbar { width: 5px; }
#cityFilterList::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Budget Min/Max selects — reuse .op-range-field's boxed look ────── */
.op-range-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 14px;
    padding-right: 16px;
}

/* ── Sponsored banner — 1, 2, or 3 images, laid out automatically ──── */
.op-ad-banner {
    position: relative;
    display: flex;
    gap: 4px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.op-ad-banner img {
    flex: 1 1 0;
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
/* Single image: no need to flex-share, just fill the banner. */
.op-ad-banner--1 img { height: 160px; }

.op-ad-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: rgba(15, 23, 42, .75);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 20px;
}
.op-results.is-grid .op-ad-banner { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .op-ad-banner { flex-direction: column; }
    .op-ad-banner img { height: 130px; }
}
