/* ============================================================
   Listing Logic — Frontend Styles
   ============================================================ */

:root {
  --ll-navy:    #042D62;
  --ll-gold:    #C9A84C;
  --ll-accent:  #2F7FD1;
  --ll-paper:   #F7F6F2;
  --ll-line:    rgba(4,45,98,.12);
  --ll-slate:   #5C6C7D;
  --ll-shadow:  0 8px 32px -10px rgba(4,45,98,.18);
  --ll-radius:  6px;
  --ll-serif:   'Cinzel', Georgia, serif;
  --ll-sans:    'Inter', -apple-system, Arial, sans-serif;
}

/* ── State Selector ─────────────────────────────── */
/* ── State Select ──────────────────────────── */
.ll-state-select    { max-width: 960px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.ll-state-eyebrow   { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ll-accent); margin-bottom: 10px; }
.ll-state-title     { font-family: var(--ll-serif); font-size: clamp(1.8rem,3.5vw,2.8rem); color: var(--ll-navy); margin-bottom: 10px; }
.ll-state-sub       { color: var(--ll-slate); font-size: .95rem; margin-bottom: 48px; }
.ll-state-cards     { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }

.ll-state-card {
    display: flex; flex-direction: column; align-items: center;
    background: var(--ll-navy); color: #fff;
    border-radius: 6px; padding: 40px 48px 32px;
    min-width: 260px; flex: 1; max-width: 380px;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
}
.ll-state-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(4,45,98,.25); }

.ll-state-map       { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.ll-state-map img   { width: 100%; height: 100%; object-fit: contain; opacity: .85; transition: opacity .3s; }
.ll-state-card:hover .ll-state-map img { opacity: 1; }

.ll-state-info      { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ll-state-name      { font-family: var(--ll-serif); font-size: 1.5rem; font-weight: 500; color: #fff; letter-spacing: .02em; }
.ll-state-region    { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ll-state-count     { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: 4px; }

@media (max-width: 600px) {
    .ll-state-cards { flex-direction: column; align-items: center; }
    .ll-state-card  { max-width: 100%; width: 100%; }
}

/* ── Browse ─────────────────────────────────────── */
.ll-browse       { max-width: 1200px; margin: 0 auto; }
.ll-browse-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.ll-back         { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ll-accent); text-decoration: none; }
.ll-back:hover   { color: var(--ll-navy); }
.ll-browse-title { font-family: var(--ll-serif); font-size: clamp(1.3rem,2.5vw,1.9rem); color: var(--ll-navy); }

/* ── Filters ────────────────────────────────────── */
.ll-filters      { background: var(--ll-paper); border: 1px solid var(--ll-line); padding: 18px 20px; border-radius: var(--ll-radius); margin-bottom: 24px; }
.ll-filter-row   { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ll-select, .ll-input-num { height: 38px; padding: 0 12px; border: 1px solid var(--ll-line); border-radius: var(--ll-radius); font-size: .85rem; color: var(--ll-navy); background: #fff; font-family: var(--ll-sans); min-width: 130px; }
.ll-input-num    { min-width: 100px; }
.ll-btn-filter, .ll-btn-reset { height: 38px; padding: 0 20px; border: none; border-radius: var(--ll-radius); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ll-btn-filter   { background: var(--ll-accent); color: #fff; }
.ll-btn-filter:hover { background: var(--ll-navy); }
.ll-btn-reset    { background: transparent; border: 1px solid var(--ll-line); color: var(--ll-slate); }
.ll-btn-reset:hover  { border-color: var(--ll-navy); color: var(--ll-navy); }
.ll-results-meta { font-size: .82rem; color: var(--ll-slate); margin-bottom: 16px; }

/* ── Grid ───────────────────────────────────────── */
.ll-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width:900px) { .ll-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:580px) { .ll-grid { grid-template-columns: 1fr; } }

/* ── Card ───────────────────────────────────────── */
.ll-card { background: #fff; border: 1px solid var(--ll-line); border-radius: var(--ll-radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ll-navy); transition: box-shadow .3s, transform .3s; }
.ll-card:hover { box-shadow: var(--ll-shadow); transform: translateY(-3px); }
.ll-card-thumb { width: 100%; height: 200px; object-fit: cover; display: block; background: #e8eef4; }
.ll-card-thumb-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--ll-navy) 0%, var(--ll-accent) 100%); }
.ll-card-body   { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ll-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ll-badge-small { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; }
.ll-badge-type  { background: var(--ll-navy); color: #fff; }
.ll-badge-prop  { background: var(--ll-paper); color: var(--ll-slate); border: 1px solid var(--ll-line); }
.ll-card-title  { font-family: var(--ll-serif); font-size: 1.06rem; font-weight: 500; color: var(--ll-navy); margin-bottom: 6px; line-height: 1.3; }
.ll-card-town   { font-size: .82rem; color: var(--ll-slate); margin-bottom: 12px; }
.ll-card-details { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ll-line); }
.ll-card-stat   { font-size: .8rem; }
.ll-card-stat strong { color: var(--ll-navy); font-weight: 600; }
.ll-card-stat span   { color: var(--ll-slate); }
.ll-card-status { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ll-accent); margin-top: 8px; }

/* ══════════════════════════════════════════════════
   SINGLE LISTING
══════════════════════════════════════════════════ */
.ll-single { max-width: 100%; font-family: var(--ll-sans); }

/* ── Hero — title only, slim ───────────── */
.ll-single-hero {
    background: var(--ll-navy);
    padding: 120px 24px 36px; /* top accounts for fixed header (~90px) + breathing room */
    position: relative;
    overflow: hidden;
}
.ll-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        rgba(255,255,255,.02) 0px,
        rgba(255,255,255,.02) 1px,
        transparent 1px,
        transparent 12px
    );
    pointer-events: none;
}
.ll-single-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.ll-single-hero__title {
    font-family: var(--ll-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: .01em;
}

/* ── Badges (sidebar context) ───────── */
.ll-badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.ll-badge-type   { background: var(--ll-navy); color: #fff; }
.ll-badge-prop   { background: var(--ll-paper); color: var(--ll-slate); border: 1px solid var(--ll-line); }
.ll-badge-state  { background: #e8eef4; color: var(--ll-navy); }
.ll-badge-status { background: #16a34a; color: #fff; }
.ll-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--ll-radius); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; transition: .2s; }
.ll-btn-gold { background: var(--ll-navy); color: #fff; }
.ll-btn-gold:hover { background: #0a4a9e; color: #fff; }
.ll-btn-outline-light { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.3); }
.ll-btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.ll-btn-full { width: 100%; justify-content: center; }
/* Legacy aliases */
.ll-btn-primary { background: var(--ll-accent); color: #fff; }
.ll-btn-primary:hover { background: var(--ll-navy); }
.ll-btn-outline { background: transparent; color: var(--ll-navy); border: 1px solid var(--ll-navy); }
.ll-btn-outline:hover { background: var(--ll-navy); color: #fff; }

/* ── Body layout ────────────────────────────── */
.ll-single-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) { .ll-single-body { grid-template-columns: 1fr; } }

/* ── Main column ────────────────────────────── */
.ll-single-featured {
    border-radius: var(--ll-radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--ll-shadow);
}
.ll-single-featured img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.ll-single-section { margin-bottom: 36px; }
.ll-section-title {
    font-family: var(--ll-serif);
    font-size: 1.1rem;
    color: var(--ll-navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ll-navy);
}

.ll-single-content { line-height: 1.8; color: #3a3a3a; }
.ll-single-content p { margin-bottom: 1em; }

/* Gallery */
.ll-gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.ll-gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--ll-radius); display: block; transition: opacity .2s; }
.ll-gallery-item:hover img { opacity: .88; }
@media (max-width:600px) { .ll-gallery-grid { grid-template-columns: repeat(2,1fr); } }

/* ── Sidebar ────────────────────────────────── */
.ll-single-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }

.ll-sidebar-card {
    background: #fff;
    border: 1px solid var(--ll-line);
    border-radius: var(--ll-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(4,45,98,.07);
}
.ll-sidebar-card__head {
    background: var(--ll-navy);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 16px;
}
.ll-sidebar-card__body { padding: 16px; }

/* Property details in sidebar */
.ll-sb-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ll-sb-address {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .85rem;
    color: var(--ll-slate);
    margin-bottom: 14px;
}
.ll-sb-address svg { flex-shrink: 0; }
.ll-sb-stats {
    border-top: 1px solid var(--ll-line);
    border-bottom: 1px solid var(--ll-line);
    padding: 12px 0;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ll-sb-stat { display: flex; justify-content: space-between; align-items: baseline; }
.ll-sb-stat__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ll-slate);
}
.ll-sb-stat__val { font-size: .95rem; font-weight: 700; color: var(--ll-navy); }
.ll-sb-actions { display: flex; flex-direction: column; gap: 8px; }

/* Map */
.ll-single-map { width: 100%; height: 200px; }
.ll-sidebar-address { padding: 10px 16px; font-size: .85rem; color: var(--ll-slate); border-top: 1px solid var(--ll-line); }

/* ── Agents list ────────────────────────────── */
.ll-agents-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.ll-agent-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--ll-paper);
    border-radius: var(--ll-radius);
    border: 1px solid var(--ll-line);
}
.ll-agent-block__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #dde2ed;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ll-line);
}
.ll-agent-block__photo img { width: 100%; height: 100%; object-fit: cover; }
.ll-agent-block__initials { font-size: 1.2rem; font-weight: 700; color: var(--ll-navy); }

.ll-agent-block__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ll-agent-block__name  { font-size: .95rem; font-weight: 700; color: var(--ll-navy); }
.ll-agent-block__title { font-size: .78rem; color: var(--ll-slate); font-weight: 600; }
.ll-agent-block__contact {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--ll-slate);
    text-decoration: none;
    margin-top: 2px;
}
.ll-agent-block__contact:hover { color: var(--ll-accent); }
.ll-agent-block__contact svg { flex-shrink: 0; }
.ll-agent-block__license { font-size: .72rem; color: var(--ll-slate); margin-top: 3px; }

/* ── Inquiry form ───────────────────────────── */
.ll-inquiry-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ll-inquiry-field input,
.ll-inquiry-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--ll-line);
    border-radius: var(--ll-radius);
    font-size: .88rem;
    font-family: var(--ll-sans);
    color: #1a1a2e;
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
}
.ll-inquiry-field input:focus,
.ll-inquiry-field textarea:focus { border-color: var(--ll-navy); outline: none; }
.ll-inquiry-field textarea { resize: vertical; min-height: 90px; }

/* ── Misc ───────────────────────────────────── */
.ll-loading, .ll-no-results { text-align: center; padding: 48px; color: var(--ll-slate); font-weight: 600; }
.ll-spinner { display: inline-block; width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; border: 2px solid var(--ll-line); border-top-color: var(--ll-navy); border-radius: 50%; animation: ll-spin .7s linear infinite; }
@keyframes ll-spin { to { transform: rotate(360deg); } }
.ll-map { border: 1px solid var(--ll-line); border-radius: var(--ll-radius); }

/* ── Gallery lightbox ─────────────────────── */
.ll-gallery-item { cursor: zoom-in; display: block; overflow: hidden; border-radius: var(--ll-radius); }
.ll-gallery-item img { transition: opacity .2s, transform .2s; }
.ll-gallery-item:hover img { opacity: .85; transform: scale(1.03); }

.ll-lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9998;
}
.ll-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
.ll-lb__stage {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ll-lb__stage img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    display: block;
}
.ll-lb__close,
.ll-lb__prev,
.ll-lb__next {
    position: fixed;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background .2s;
}
.ll-lb__close:hover,
.ll-lb__prev:hover,
.ll-lb__next:hover { background: rgba(255,255,255,.28); }
.ll-lb__close {
    top: 20px; right: 24px;
    width: 44px; height: 44px;
    font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.ll-lb__prev {
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 34px;
    display: flex; align-items: center; justify-content: center;
}
.ll-lb__next {
    right: 16px; top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 34px;
    display: flex; align-items: center; justify-content: center;
}
.ll-lb__counter {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    margin-top: 14px;
    font-family: var(--ll-sans);
}
@media (max-width: 600px) {
    .ll-lb__prev { left: 4px; }
    .ll-lb__next { right: 4px; }
}

/* ── Tabs ─────────────────────────────────── */
.ll-tabs { margin-bottom: 36px; }
.ll-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ll-line);
    margin-bottom: 0;
}
.ll-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--ll-sans);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ll-slate);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.ll-tab-btn:hover { color: var(--ll-navy); }
.ll-tab-btn--active {
    color: var(--ll-navy);
    border-bottom-color: var(--ll-navy);
}
.ll-tab-btn svg { flex-shrink: 0; }
.ll-tab-count {
    background: var(--ll-navy);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.6;
}

.ll-tab-panel { display: none; padding-top: 20px; }
.ll-tab-panel--active { display: block; }
.ll-tab-empty { color: var(--ll-slate); font-size: .9rem; padding: 24px 0; }
.ll-tab-map-wrap { border-radius: var(--ll-radius); overflow: hidden; border: 1px solid var(--ll-line); }

/* ── Browse header with toggle ───────────── */
.ll-browse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ll-browse-header__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* View toggle */
.ll-view-toggle {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--ll-line);
    border-radius: var(--ll-radius);
    overflow: hidden;
}
.ll-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: none;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ll-slate);
    cursor: pointer;
    transition: background .15s, color .15s;
    border-right: 1.5px solid var(--ll-line);
}
.ll-view-btn:last-child { border-right: none; }
.ll-view-btn:hover { background: var(--ll-paper); color: var(--ll-navy); }
.ll-view-btn--active { background: var(--ll-navy); color: #fff; }
.ll-view-btn--active:hover { background: var(--ll-navy); color: #fff; }
.ll-view-btn svg { flex-shrink: 0; }

/* Live search bar */
.ll-search-wrap {
    position: relative;
    margin-bottom: 12px;
}
.ll-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ll-slate);
    pointer-events: none;
}
.ll-search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 40px;
    border: 1.5px solid var(--ll-line);
    border-radius: var(--ll-radius);
    font-size: .95rem;
    font-family: var(--ll-sans);
    color: var(--ll-navy);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.ll-search-input:focus {
    border-color: var(--ll-navy);
    box-shadow: 0 0 0 3px rgba(4,45,98,.08);
    outline: none;
}
.ll-search-input::placeholder { color: #aab; }
.ll-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ll-slate);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.ll-search-clear:hover { color: var(--ll-navy); }

/* Browse map */
.ll-browse-map {
    width: 100%;
    height: 560px;
    border-radius: var(--ll-radius);
    border: 1px solid var(--ll-line);
    box-shadow: var(--ll-shadow);
}
@media (max-width: 600px) { .ll-browse-map { height: 420px; } }

/* Map popup */
.ll-map-popup { font-family: var(--ll-sans); min-width: 180px; }
.ll-map-popup strong { display: block; font-size: .92rem; color: var(--ll-navy); margin-bottom: 4px; line-height: 1.3; }
.ll-map-popup__addr  { font-size: .78rem; color: var(--ll-slate); margin-bottom: 3px; }
.ll-map-popup__price { font-size: .85rem; font-weight: 700; color: var(--ll-navy); margin-bottom: 2px; }
.ll-map-popup__sqft  { font-size: .78rem; color: var(--ll-slate); margin-bottom: 6px; }
.ll-map-popup__link  {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 12px;
    background: var(--ll-navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}
.ll-map-popup__link:hover { background: var(--ll-accent); }

/* ── Browse top bar ──────────────────────── */
.ll-browse-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ll-browse-topbar__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── View toggle ─────────────────────────── */
.ll-view-toggle { display: flex; border: 1.5px solid var(--ll-line); border-radius: var(--ll-radius); overflow: hidden; }
.ll-view-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: #fff; border: none; border-right: 1.5px solid var(--ll-line);
    font-size: .78rem; font-weight: 600; color: var(--ll-slate);
    cursor: pointer; transition: background .15s, color .15s;
    font-family: var(--ll-sans);
}
.ll-view-btn:last-child { border-right: none; }
.ll-view-btn:hover { background: var(--ll-paper); color: var(--ll-navy); }
.ll-view-btn--active { background: var(--ll-navy) !important; color: #fff !important; }
.ll-view-btn svg { flex-shrink: 0; }

/* ── Browse canvas ───────────────────────── */
.ll-browse-canvas {
    display: grid;
    gap: 0;
    min-height: 600px;
}

/* Split: list left, map right */
.ll-browse-canvas[data-view="split"] {
    grid-template-columns: 420px 1fr;
}
/* List only */
.ll-browse-canvas[data-view="list"] {
    grid-template-columns: 1fr;
}
.ll-browse-canvas[data-view="list"] .ll-browse-map-panel { display: none; }

/* Map only */
.ll-browse-canvas[data-view="map"] {
    grid-template-columns: 1fr;
}
.ll-browse-canvas[data-view="map"] .ll-browse-list { display: none; }

@media (max-width: 960px) {
    .ll-browse-canvas[data-view="split"] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 420px;
    }
}

/* ── List panel (scrollable) ─────────────── */
.ll-browse-list {
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 4px;
}
.ll-browse-canvas[data-view="list"] .ll-browse-list {
    max-height: none;
    overflow-y: visible;
}

/* In split mode: single column cards */
.ll-browse-canvas[data-view="split"] .ll-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 4px 2px;
}
.ll-browse-canvas[data-view="split"] .ll-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 100px;
}
.ll-browse-canvas[data-view="split"] .ll-card-thumb {
    width: 120px;
    height: 100%;
    min-height: 100px;
}
.ll-browse-canvas[data-view="split"] .ll-card-thumb-placeholder {
    width: 120px;
    min-height: 100px;
    height: 100%;
}
.ll-browse-canvas[data-view="split"] .ll-card-body {
    padding: 12px;
}
.ll-card--active {
    border-color: var(--ll-navy) !important;
    box-shadow: 0 0 0 2px var(--ll-navy) !important;
}

/* ── Map panel ───────────────────────────── */
.ll-browse-map-panel {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
}
.ll-browse-canvas[data-view="map"] .ll-browse-map-panel {
    position: static;
    height: 600px;
}
.ll-browse-map {
    width: 100%;
    height: 100%;
    border-left: 1px solid var(--ll-line);
}
.ll-browse-canvas[data-view="map"] .ll-browse-map {
    border-radius: var(--ll-radius);
    border: 1px solid var(--ll-line);
    height: 600px;
}
.ll-map-no-key {
    padding: 20px;
    background: #fff8e1;
    border: 1px solid #fdd835;
    border-radius: var(--ll-radius);
    font-size: .85rem;
    color: #555;
    margin: 12px;
}

/* Google Maps popup */
.ll-map-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 200px;
    overflow: hidden;
}
.ll-map-popup img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.ll-map-popup__body {
    padding: 10px 14px 14px;
}
.ll-map-popup strong {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #042D62;
    line-height: 1.3;
    margin-bottom: 5px;
}
.ll-map-popup__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ll-map-popup__price {
    font-size: .78rem;
    font-weight: 700;
    color: #042D62;
}
.ll-map-popup__sqft {
    font-size: .72rem;
    color: #6b7280;
    padding-left: 8px;
    border-left: 1px solid #dde2ed;
}
.ll-map-popup__link {
    display: block;
    padding: 6px 0;
    text-align: center;
    background: #042D62;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
}
.ll-map-popup__link:hover { background: #2F7FD1; color: #fff; }
/* Override Google's default popup padding */
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 8px !important; box-shadow: 0 4px 20px rgba(0,0,0,.18) !important; overflow: hidden !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-style-iw-t::after { display: none; }
/* Hide the default X button — we rely on clicking outside */
.gm-style .gm-style-iw-ch { display: none !important; }
.gm-style .gm-ui-hover-effect { display: none !important; }

/* Single listing sidebar map */
.ll-single-map-sidebar {
    width: 100%;
    height: 220px;
    display: block;
}

/* ── Single listing full-width map ──────── */
.ll-single-map-section {
    border-top: 1px solid var(--ll-line);
}
.ll-single-map-section__head {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ll-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ll-single-map-section__head svg { flex-shrink: 0; color: var(--ll-accent); }
.ll-single-map-main {
    width: 100%;
    height: 420px;
    display: block;
}

/* ── Breadcrumbs ─────────────────────────── */
.ll-breadcrumbs {
    background: #f0f2f7;
    border-bottom: 1px solid var(--ll-line);
}
.ll-breadcrumbs__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .78rem;
    font-family: var(--ll-sans);
}
.ll-breadcrumbs__inner a {
    color: var(--ll-accent);
    text-decoration: none;
    font-weight: 500;
}
.ll-breadcrumbs__inner a:hover { color: var(--ll-navy); text-decoration: underline; }
.ll-bc-sep { color: var(--ll-slate); opacity: .5; }
.ll-bc-current {
    color: var(--ll-navy);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
