/* 10.11.2026: „Anunță-mă când apare” (sa-), comutatorul Listă/Hartă și harta rezultatelor (sr-, sm-),
   compararea anunțurilor salvate (cp-, fv-cmp), cererile „Caut” (rq-) și casetele din Contul meu (cx-). */

/* ---------- alerta pe căutare ---------- */
.sa-box { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; }
.sa-box--big { padding: 16px; border-color: #93c5fd; background: linear-gradient(135deg, #eff6ff, #f8fafc); }
.sa-row { display: flex; align-items: center; gap: 12px; }
.sa-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #2563eb; display: flex; align-items: center; justify-content: center; }
.sa-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sa-txt { flex: 1; min-width: 0; }
.sa-txt h2 { margin: 0; font-size: .98rem; font-weight: 800; color: #0f172a; line-height: 1.3; }
.sa-txt p { margin: 2px 0 0; font-size: .85rem; color: #475569; line-height: 1.4; }
.sa-btn { flex: none; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 14px; cursor: pointer; white-space: nowrap; }
.sa-btn:hover { background: #1d4ed8; }
.sa-btn:disabled { opacity: .6; cursor: wait; }
.sa-form { margin-top: 12px; }
.sa-form label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin-bottom: 4px; }
.sa-inline { display: flex; gap: 8px; }
.sa-inline input { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font-size: 1rem; background: #fff; }
.sa-captcha { margin-top: 10px; min-height: 0; }
.sa-small { margin: 8px 0 0; font-size: .78rem; color: #64748b; line-height: 1.45; }
.sa-msg { margin: 10px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.sa-msg--ok { color: #047857; }
.sa-msg--err { color: #b91c1c; }
@media (max-width: 560px) {
  .sa-row { flex-wrap: wrap; }
  .sa-btn { width: 100%; }
  .sa-row .sa-btn { margin-left: 50px; width: calc(100% - 50px); }
  .sa-inline { flex-direction: column; }
}

/* ---------- Listă / Hartă ---------- */
.sr-view { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; background: #fff; }
.sr-view button { border: 0; background: transparent; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: #475569; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sr-view button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-view button[aria-pressed="true"] { background: #2563eb; color: #fff; }
.sr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sr-bar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sr-map { margin-bottom: 20px; }
.sr-map__map { height: 560px; max-height: 75vh; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; z-index: 0; }
.sr-map__status { margin: 8px 2px 0; font-size: .85rem; color: #475569; }
@media (max-width: 640px) { .sr-map__map { height: 68vh; } }
.sm-pin { background: transparent; border: 0; }
.sm-pin span { display: inline-block; transform: translate(-50%, -100%); background: #2563eb; color: #fff; font: 700 12px/1 Inter, system-ui, sans-serif; padding: 5px 7px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(15, 23, 42, .3); position: relative; }
.sm-pin span::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #2563eb; }
.sm-pin--zona span { background: #fff; color: #1d4ed8; border: 1px solid #93c5fd; }
.sm-pin--zona span::after { border-top-color: #fff; }
.sm-pop { display: block; color: #0f172a; text-decoration: none; }
.sm-pop img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.sm-pop__p { display: block; font-weight: 800; font-size: 15px; }
.sm-pop__t { display: block; font-weight: 600; font-size: 13px; line-height: 1.35; margin-top: 2px; }
.sm-pop__m, .sm-pop__z { display: block; font-size: 12px; color: #64748b; margin-top: 3px; }
.sm-pop__z { color: #1d4ed8; }

/* ---------- compararea ---------- */
.cp-page { padding: 24px 0 48px; background: #f8fafc; }
.cp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.cp-crumbs { font-size: .85rem; color: #64748b; margin-bottom: 10px; }
.cp-crumbs a { color: #2563eb; }
.cp-page h1 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.cp-lead { color: #475569; margin: 0 0 16px; line-height: 1.5; }
.cp-note { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.cp-empty { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; color: #334155; line-height: 1.55; }
.cp-empty a:not(.cp-btn) { color: #2563eb; text-decoration: underline; }
.cp-btn { display: inline-block; background: #2563eb; color: #fff; font-weight: 700; border-radius: 10px; padding: 10px 16px; text-decoration: none; }
.cp-btn--sm { padding: 7px 12px; font-size: .85rem; }
.cp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.cp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; color: #0f172a; }
.cp-table th, .cp-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; text-align: left; line-height: 1.4; }
.cp-table td { min-width: 170px; }
.cp-n2 td { width: 40%; }
.cp-n3 td { width: 28%; }
.cp-table small { color: #64748b; }
.cp-rowh { position: sticky; left: 0; z-index: 1; background: #f8fafc; font-weight: 600; color: #475569; font-size: .82rem; min-width: 104px; max-width: 130px; border-right: 1px solid #e2e8f0; }
.cp-table thead th { background: #fff; vertical-align: bottom; }
.cp-table thead .cp-rowh { background: #f8fafc; }
.cp-head { display: block; color: #0f172a; text-decoration: none; }
.cp-head img, .cp-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #e2e8f0; }
.cp-title { display: block; margin-top: 6px; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.cp-remove { display: inline-block; margin-top: 4px; font-size: .78rem; color: #64748b; text-decoration: underline; font-weight: 500; }
.cp-best { background: #ecfdf5; color: #065f46; font-weight: 700; }
.cp-best small { color: #047857; }
.cp-sec th { background: #eef2ff !important; color: #3730a3; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.cp-risks { margin: 0; padding-left: 16px; color: #92400e; }
.cp-ok { color: #047857; }
.cp-foot { margin: 12px 2px 0; font-size: .8rem; color: #64748b; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* bifa „Compară” pe cardurile salvate și bara de jos */
.fv-cmp { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: #334155; cursor: pointer; }
.fv-cmp input { width: 16px; height: 16px; accent-color: #2563eb; }
.fv-cmpbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; z-index: 60; display: flex; align-items: center; gap: 10px; background: #0f172a; color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .35); max-width: calc(100vw - 32px); font-size: .9rem; }
.fv-cmpbar[hidden] { display: none; }
.fv-cmpbar a { background: #2563eb; color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.fv-cmpbar a[aria-disabled="true"] { background: #475569; pointer-events: none; }
.fv-cmpbar button { background: transparent; border: 0; color: #cbd5e1; font-size: .82rem; text-decoration: underline; cursor: pointer; }
@media (min-width: 1024px) { .fv-cmpbar { bottom: 24px; } }

/* ---------- cererile „Caut” ---------- */
.rq { background: #f8fafc; padding-bottom: 48px; }
.rq-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.rq-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 28px 0 30px; }
.rq-crumbs { font-size: .85rem; color: #bfdbfe; margin-bottom: 10px; }
.rq-crumbs a { color: #fff; text-decoration: underline; }
.rq-crumbs--dark { color: #64748b; }
.rq-crumbs--dark a { color: #2563eb; }
.rq-hero h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.rq-lead { margin: 0; font-size: 1.02rem; line-height: 1.55; color: #dbeafe; max-width: 760px; }
.rq-lead--dark { color: #475569; margin-bottom: 14px; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rq-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; font-size: .92rem; padding: 10px 16px; text-decoration: none; cursor: pointer; }
.rq-btn:hover { background: #1d4ed8; }
.rq-btn--light { background: #fff; color: #1d4ed8; }
.rq-btn--light:hover { background: #eff6ff; }
.rq-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.rq-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.rq-btn--soft { background: #eff6ff; color: #1d4ed8; }
.rq-btn--soft:hover { background: #dbeafe; }
.rq-btn--big { width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; }
.rq-main { padding-top: 20px; }
.rq-flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.rq-flash--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; font-weight: 500; }
.rq-flash--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.rq-flash a { text-decoration: underline; }
.rq-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; }
.rq-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: #475569; min-width: 0; }
.rq-filters select, .rq-form select, .rq-form input[type="text"], .rq-form textarea, .rq-report input { border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 10px; font-size: 1rem; background: #fff; color: #0f172a; width: 100%; min-width: 0; font-weight: 400; }
.rq-filters .rq-btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .rq-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; } .rq-filters .rq-btn { grid-column: auto; } }
.rq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.rq-chips a { font-size: .82rem; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.rq-chips a span { color: #2563eb; font-weight: 700; }
.rq-chips a[aria-current="page"] { background: #2563eb; color: #fff; border-color: #2563eb; }
.rq-chips a[aria-current="page"] span { color: #fff; }
.rq-h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 22px 0 12px; }
.rq-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .rq-list { grid-template-columns: 1fr 1fr; } }
.rq-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.rq-card:target { box-shadow: 0 0 0 3px #93c5fd; }
.rq-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.rq-tag { font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.rq-tag--cumpar { background: #ecfdf5; color: #047857; }
.rq-tag--inchiriez { background: #eef2ff; color: #4338ca; }
.rq-ago { color: #94a3b8; }
.rq-card h3 { font-size: 1.02rem; font-weight: 800; color: #0f172a; margin: 8px 0 2px; line-height: 1.3; }
.rq-meta { margin: 0; color: #334155; font-size: .9rem; }
.rq-about { margin: 8px 0 12px; color: #475569; font-size: .9rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; flex: 1; }
.rq-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rq-who { font-size: .82rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-report { margin-top: 8px; font-size: .78rem; color: #94a3b8; }
.rq-report summary { cursor: pointer; }
.rq-report form { display: flex; gap: 6px; margin-top: 6px; }
.rq-report input { font-size: .85rem; padding: 6px 8px; }
.rq-report button { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 6px 10px; font-size: .82rem; cursor: pointer; }
.rq-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.rq-pages a { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; text-decoration: none; }
.rq-pages a[aria-current="page"] { background: #2563eb; color: #fff; border-color: #2563eb; }
.rq-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 18px; color: #334155; line-height: 1.55; }
.rq-empty p { margin: 0 0 12px; }
.rq-empty a:not(.rq-btn) { color: #2563eb; text-decoration: underline; }
.rq-faq { margin-top: 28px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.rq-faq h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; color: #0f172a; }
.rq-faq details { border-top: 1px solid #f1f5f9; padding: 10px 0; }
.rq-faq summary { cursor: pointer; font-weight: 700; color: #1e293b; }
.rq-faq details p { margin: 6px 0 0; color: #475569; line-height: 1.55; }
.rq-note { margin: 12px 0 0; font-size: .85rem; color: #92400e; }
.rq-formwrap { max-width: 720px; padding-top: 22px; }
.rq-formwrap h1 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.rq-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.rq-kind { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 10px; }
.rq-kind legend { font-weight: 700; color: #334155; margin-bottom: 6px; font-size: .9rem; }
.rq-kind label { flex: 1; }
.rq-kind input { position: absolute; opacity: 0; }
.rq-kind span { display: block; text-align: center; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px; font-weight: 700; color: #334155; cursor: pointer; }
.rq-kind input:checked + span { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.rq-kind input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.rq-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .rq-grid { grid-template-columns: 1fr 1fr; } }
.rq-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: #334155; }
.rq-form small { font-weight: 400; color: #64748b; font-size: .78rem; }
.rq-full { margin-top: 12px; }
.rq-agree { flex-direction: row !important; align-items: flex-start; gap: 8px !important; margin-top: 12px; font-weight: 400 !important; font-size: .85rem !important; line-height: 1.45; }
.rq-agree input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.rq-agree a { color: #2563eb; text-decoration: underline; }

/* ---------- Contul meu ---------- */
.cx-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-top: 16px; scroll-margin-top: 90px; }
.cx-box h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.cx-box > p { margin: 0 0 10px; color: #64748b; font-size: .88rem; line-height: 1.5; }
.cx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid #f1f5f9; }
.cx-row__main { flex: 1 1 260px; min-width: 0; }
.cx-row__main a { color: #1d4ed8; font-weight: 600; }
.cx-row__main small { display: block; color: #64748b; font-size: .8rem; margin-top: 2px; }
.cx-row form { margin: 0; }
.cx-btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 6px 10px; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.cx-btn--blue { background: #2563eb; border-color: #2563eb; color: #fff; }
.cx-btn--red { color: #b91c1c; border-color: #fecaca; }
.cx-badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #f1f5f9; color: #475569; margin-left: 6px; vertical-align: 1px; }
.cx-badge--on { background: #ecfdf5; color: #047857; }
.cx-flash { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 8px 12px; font-size: .88rem; margin: 0 0 8px; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 11.11.2026: pinii apropiați adunați într-un cerc „N anunțuri” (public/js/harta-anunturi.js) */
.sm-cl { background: transparent; border: 0; cursor: pointer; }
.sm-cl span { display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -50%); background: #1e3a8a; color: #fff; font: 600 12px/1 Inter, system-ui, sans-serif; padding: 7px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 4px rgba(37, 99, 235, .3), 0 3px 8px rgba(15, 23, 42, .3); }
.sm-cl b { font-size: 14px; font-weight: 800; }
.sm-cl:hover span { background: #2563eb; }

/* cardul „Vezi anunțurile pe hartă” de deasupra rezultatelor */
.sr-teaser { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 14px; padding: 12px; text-align: left; border: 1px solid #bfdbfe; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: 0 6px 18px -12px rgba(37, 99, 235, .55); transition: border-color .15s, box-shadow .15s; font: inherit; color: inherit; }
.sr-teaser:hover { border-color: #60a5fa; box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .7); }
.sr-teaser:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.sr-teaser[hidden] { display: none; }
.sr-teaser__art { flex: none; width: 128px; height: 77px; border-radius: 12px; overflow: hidden; }
.sr-teaser__art svg { display: block; width: 100%; height: 100%; }
.sr-teaser__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-teaser__txt strong { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.sr-teaser__txt span { font-size: .86rem; color: #475569; line-height: 1.4; }
.sr-teaser__go { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #2563eb; color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 14px; border-radius: 10px; }
.sr-teaser__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .sr-teaser { flex-wrap: wrap; gap: 10px; }
  .sr-teaser__art { width: 96px; height: 58px; }
  .sr-teaser__txt strong { font-size: 1rem; }
  .sr-teaser__go { width: 100%; justify-content: center; }
}

/* butonul plutitor „Hartă” / „Listă”, după ce comutatorul de sus iese din ecran */
.sr-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: 80px; z-index: 55; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #0f172a; color: #fff; font: 700 .95rem/1 Inter, system-ui, sans-serif; padding: 13px 20px; box-shadow: 0 10px 28px rgba(15, 23, 42, .35); cursor: pointer; }
.sr-fab[hidden] { display: none; }
.sr-fab:hover { background: #1e293b; }
.sr-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) { .sr-fab { bottom: 28px; } }
