/* =====================================================================
   LOCATION LANDING PAGES — /homes-for-{rent|sale}[/{state}[/{city}]]
   Built on design-system.css tokens (est-container, est-card, est-btn).
   ===================================================================== */

.loc-page { background: var(--bg); padding: 8px 0 72px; }

/* ---------- Breadcrumb ---------- */
.loc-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 18px; font-size: 14px; color: var(--muted); }
.loc-crumb a { color: var(--muted); }
.loc-crumb a:hover { color: var(--accent); }
.loc-crumb .sep { color: var(--border); }
.loc-crumb .cur { color: var(--ink); font-weight: 600; }

/* ---------- Page head ---------- */
.loc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.loc-head__title { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.loc-head__sub { margin: 0; font-size: 15px; color: var(--muted); }
.loc-head__actions { display: flex; gap: 10px; flex: none; }
.loc-head__actions .est-btn { text-decoration: none !important; white-space: nowrap; }

/* ---------- State tiles (hub) ---------- */
.loc-tiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.loc-tile {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
    text-decoration: none !important; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.loc-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.loc-tile__name { font-weight: 700; color: var(--ink); font-size: 16px; }
.loc-tile__count { font-size: 13px; color: var(--muted); }

/* ---------- City chips ---------- */
.loc-chips { margin: 0 0 30px; }
.loc-chips--after { margin: 44px 0 0; }
.loc-chips__title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.loc-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.loc-chips a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none !important;
    transition: border-color .16s, color .16s;
}
.loc-chips a:hover { border-color: var(--accent); color: var(--accent); }
.loc-chips a b { font-weight: 600; font-size: 12px; color: var(--muted); }
.loc-chips a:hover b { color: inherit; }
.loc-chips__all { border-style: dashed !important; }

/* ---------- Listings ---------- */
.loc-listings__title { display: flex; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.loc-listings__title span { font-size: 13px; font-weight: 500; color: var(--muted); }

.loc-pagination { display: flex; justify-content: center; margin-top: 34px; }
.loc-pagination .pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.loc-pagination .page-item .page-link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--body); font-weight: 600; font-size: 14px; text-decoration: none; transition: .16s; }
.loc-pagination .page-item .page-link:hover { border-color: var(--accent); color: var(--accent); }
.loc-pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.loc-pagination .page-item.disabled .page-link { opacity: .45; pointer-events: none; }

.loc-empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-sm); }
.loc-empty h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.loc-empty p { margin: 0; color: var(--muted); }
.loc-empty a { color: var(--accent); font-weight: 600; }

/* ---------- About ---------- */
.loc-about { margin-top: 48px; padding: 28px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); max-width: 820px; }
.loc-about h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.loc-about p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--body); }
.loc-about p:last-child { margin-bottom: 0; }
.loc-about__cta a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .loc-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .loc-head { flex-direction: column; align-items: flex-start; }
    .loc-head__title { font-size: 26px; }
    .loc-head__actions { flex-wrap: wrap; }
    .loc-tiles { grid-template-columns: repeat(2, 1fr); }
    .loc-about { padding: 22px 20px; }
}
@media (max-width: 480px) {
    .loc-tiles { grid-template-columns: 1fr; }
}
