/* Morcos portal — search UX */
:root {
  --portal-ink: #0f1419;
  --portal-muted: #5c6570;
  --portal-line: rgba(15, 20, 25, 0.1);
  --portal-accent: #1a4d6d;
  --portal-accent-2: #0d9488;
  --portal-warm: #f3efe6;
  --portal-card: #fff;
  --portal-radius: 14px;
  --portal-shadow: 0 12px 40px rgba(15, 20, 25, 0.08);
}

.portal-shell { min-height: 100vh; background: linear-gradient(180deg, #eef3f6 0%, var(--portal-warm) 48%, #f7f5f0 100%); color: var(--portal-ink); }
.portal-top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px); background: rgba(255,255,255,0.88); border-bottom: 1px solid var(--portal-line); }
.portal-brand { font-weight: 700; letter-spacing: -0.02em; color: var(--portal-ink); text-decoration: none; }
.portal-brand span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--portal-muted); }
@media (max-width: 960px) {
  .portal-brand span { display: none; }
}

.search-layout { display: grid; grid-template-columns: 1fr; gap: 0; min-height: calc(100vh - 64px); }
@media (min-width: 960px) {
  .search-layout { grid-template-columns: 420px 1fr; }
  .search-layout--wide-filters { grid-template-columns: 460px 1fr; }
}

.search-panel { background: rgba(255,255,255,0.92); border-right: 1px solid var(--portal-line); padding: 1rem 1.1rem 2rem; overflow: auto; max-height: calc(100vh - 64px); }
.search-map { min-height: 320px; background: #d7e0e6; position: relative; }
@media (min-width: 960px) { .search-map { min-height: calc(100vh - 64px); } }
#map { position: absolute; inset: 0; }

.search-panel h1 { font-size: 1.45rem; margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.search-panel .lede { color: var(--portal-muted); font-size: 0.92rem; margin-bottom: 1rem; }

.filters-grid { display: grid; gap: 0.65rem; grid-template-columns: 1fr 1fr; }
.filters-grid .full { grid-column: 1 / -1; }
.filters-grid label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--portal-muted); margin-bottom: 0.25rem; }
.filters-grid input, .filters-grid select {
  width: 100%; border: 1px solid var(--portal-line); border-radius: 10px; padding: 0.55rem 0.7rem; font: inherit; background: #fff;
}
.filters-grid input:focus, .filters-grid select:focus { outline: 2px solid rgba(26,77,109,0.35); border-color: var(--portal-accent); }

.btn-portal {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; padding: 0.7rem 1.15rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-portal--primary { background: var(--portal-accent); color: #fff; }
.btn-portal--primary:hover { background: #143a52; color: #fff; }
.btn-portal--ghost { background: transparent; color: var(--portal-accent); border: 1px solid var(--portal-line); }
.btn-portal--teal { background: var(--portal-accent-2); color: #fff; }
.btn-portal--urgent { background: #b91c1c; color: #fff; width: 100%; }

.advanced-box { margin-top: 0.75rem; padding: 0.85rem; border-radius: 12px; background: #f4f7f9; border: 1px dashed rgba(26,77,109,0.25); }
.advanced-locked { text-align: center; padding: 1rem; }
.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0 0.6rem; font-size: 0.85rem; color: var(--portal-muted); }

.listing-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 0.75rem; padding: 0.75rem; border-radius: var(--portal-radius);
  background: var(--portal-card); box-shadow: var(--portal-shadow); margin-bottom: 0.75rem; text-decoration: none; color: inherit;
  border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.listing-card:hover { transform: translateY(-2px); border-color: rgba(26,77,109,0.25); }
.listing-card img, .listing-card .ph { width: 112px; height: 88px; object-fit: cover; border-radius: 10px; background: #dbe3e8; }
.listing-card strong { display: block; font-size: 0.95rem; letter-spacing: -0.01em; }
.listing-card .price { font-weight: 700; color: var(--portal-accent); margin-top: 0.15rem; }
.listing-card .meta { font-size: 0.78rem; color: var(--portal-muted); margin-top: 0.2rem; }

.detail-hero { width: 100%; max-height: 480px; object-fit: cover; border-radius: 18px; background: #d7e0e6; }
.detail-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.6fr 0.9fr; } }
.detail-card { background: #fff; border-radius: 18px; padding: 1.25rem; box-shadow: var(--portal-shadow); }
.sticky-cta { position: sticky; top: 5.5rem; }
.fact-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--portal-line); font-size: 0.92rem; }
.history-lock { padding: 1rem; border-radius: 12px; background: linear-gradient(135deg, #eef6f8, #f7f1e8); text-align: center; }

.account-card { max-width: 480px; margin: 2rem auto; background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: var(--portal-shadow); }
.flash-ok { background: #ecfdf5; color: #065f46; padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.flash-err { background: #fef2f2; color: #991b1b; padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }

.compare-strip { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.marker-price { background: var(--portal-accent); color: #fff; padding: 0.25rem 0.45rem; border-radius: 8px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

.coming-soon-kicker {
  display: inline-block; margin: 0 0 0.75rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(26, 77, 109, 0.1); color: var(--portal-accent); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.coming-soon-title { font-size: clamp(2.4rem, 6vw, 3.5rem); letter-spacing: -0.04em; margin: 0 0 0.75rem; color: var(--portal-ink); }
.coming-soon-lede { color: var(--portal-muted); font-size: 1.05rem; line-height: 1.55; margin: 0; }

.home-coming-soon {
  margin-top: 1rem; padding: 2rem 1.25rem; border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, rgba(30, 58, 76, 0.06), rgba(13, 148, 136, 0.08));
  border: 1px solid var(--border);
}
.home-coming-soon h3 { margin: 0 0 0.5rem; font-size: 1.75rem; letter-spacing: -0.03em; }
.home-coming-soon p { margin: 0; color: var(--text-muted); }
