/*
 * Pagina /cautare (directorul de CAR-uri), in stilul landing-urilor.
 * Se incarca DUPA landing.css (tokens + clase co-*); aici doar specificul paginii, prefix ct-.
 * Tot ce e aici e sub .ct-page, ca sa castige in fata style.css / Bootstrap (inca incarcate global).
 * Mobile-first: o coloana pe telefon, 2 coloane de la 768px, 3 de la 1100px.
 */
.ct-page {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    padding-bottom: 56px;
}
.ct-page a { text-decoration: none; }
.ct-page :is(h1, h2, h3) { font-family: var(--font); }

/* ---------- antet navy cu H1 + formular ---------- */
.ct-hero.co-hero { padding: 32px 0 40px; }
/* antetul vechi al site-ului e suprapus peste primul bloc al paginii */
.ct-chrome-v1 .ct-hero.co-hero { padding-top: 96px; }
.ct-hero__inner { position: relative; }
.ct-page h1.ct-hero__title { color: #fff; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 900px; margin: 0; text-transform: none; }
.ct-hero__sub { margin: 20px 0 0; color: #CBD5E1; font-size: 15px; max-width: 900px; }
.ct-hero__sub a { color: #FCD34D; text-decoration: underline; text-underline-offset: 3px; }
.ct-hero__sub a:hover { color: #fff; }
.ct-hero__count { color: #fff; font-weight: 700; }

.ct-search.co-form { display: grid; gap: 12px; margin-top: 24px; padding: 16px; border-radius: var(--r); }
.ct-search__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-search label { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.ct-search input[type=text], .ct-search select { height: 50px; margin: 0; }
/* style.css stilizeaza #search-input / #search-btn / .search-select pe id (antetul vechi, text alb pe fundal) */
.ct-page #search-input { width: 100%; max-width: none; height: 50px; padding: 12px 14px; color: var(--text); font: 500 16px var(--font); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
.ct-page #search-input::placeholder { color: #94A3B8; font-weight: 500; }
.ct-page #search-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.ct-page .ct-search .search-select { padding: 12px 40px 12px 14px; border-radius: 12px; margin: 0; }
.ct-page #search-btn { flex: 1 1 auto; width: 100%; border: 0; text-transform: capitalize; }
.ct-search__submit { display: flex; align-items: flex-end; }
.ct-page .ct-search__btn { width: 100%; height: 50px; padding: 0 28px; font-size: 16px; text-transform: capitalize; cursor: pointer; }

/* ---------- filtrul de localitati (chip-uri) ---------- */
.ct-cities { padding: 18px 0 4px; }
.ct-cities__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-page .city-label { display: inline-flex; align-items: baseline; gap: 4px; padding: 7px 14px; margin: 0; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .2s, background .2s, color .2s; }
.ct-page .city-label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ct-page .city-label:hover { border-color: var(--blue); color: var(--blue); }
.ct-page .city-label.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.ct-page .city-label.selected small { color: #CBD5E1; }

/* ---------- reclama dinamica (#dynamic-mkt, HTML venit din /website/reclame) ---------- */
.ct-mkt { margin-top: 16px; margin-bottom: 8px; text-align: center; }
.ct-mkt #dynamic-mkt { display: block; margin: 0; }
.ct-mkt #dynamic-mkt:empty { display: none; }
.ct-mkt #dynamic-mkt a { display: inline-block; width: auto; }

/* ---------- rezultate: fise albe ---------- */
.ct-results { padding-top: 16px; }
.ct-results__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ct-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease; }
.ct-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ct-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ct-page h2.ct-card__title { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: 0; width: 100%; }
.ct-card__title a { display: flex; align-items: center; gap: 12px; color: var(--navy); min-width: 0; }
.ct-card__title a:hover .ct-card__name { color: var(--blue); }
.ct-card__name { min-width: 0; overflow-wrap: anywhere; transition: color .2s; }
.ct-logo { display: block; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background-color: #fff; background-position: center; background-size: contain; background-repeat: no-repeat; }
.ct-logo--empty { background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(96, 165, 250, .16)); }
.ct-page .ct-chip { margin: 0; font-size: 12px; padding: 3px 10px; }

.ct-card__meta { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ct-card__meta b { color: var(--text); }
.ct-card__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ct-card__rating small { color: var(--muted); font-size: 13px; }
.ct-card__points { display: grid; gap: 6px; }
.ct-meter { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ct-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.ct-card__address { overflow-wrap: anywhere; }

/* stelele (aceeasi regula ca in style.css, ca pagina sa nu depinda de el) */
.ct-page .stars { --percent: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: 20px; line-height: 1; font-family: Times, serif; }
.ct-page .stars::before { content: "\2605\2605\2605\2605\2605"; letter-spacing: -2px; background: linear-gradient(90deg, var(--amber) var(--percent), #CBD5E1 var(--percent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* produsele: lista compacta eticheta / valoare */
.ct-page .ct-products { list-style: none; margin: 0; padding: 4px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.ct-page .ct-products li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; margin: 0; border-bottom: 1px dashed var(--line); }
.ct-page .ct-products li:last-child { border-bottom: 0; }
.ct-page .ct-products li::after { content: none; }
.ct-page .ct-products .label { float: none; width: auto; flex: 0 0 auto; white-space: nowrap; color: var(--muted); font-weight: 500; padding: 0; }
.ct-page .ct-products .value { float: none; width: auto; min-width: 0; color: var(--text); font-weight: 700; text-align: right; }
.ct-page .ct-products .value em { color: #94A3B8; font-weight: 500; font-style: italic; }

.ct-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.ct-page .ct-card__actions .co-btn { width: 100%; min-width: 0; margin: 0; cursor: pointer; white-space: nowrap; }
.ct-page .ct-btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.ct-page .ct-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.ct-page .ct-btn-outline svg { fill: var(--blue); }
.ct-page .ct-btn-navy { background: var(--navy); color: #fff; }
.ct-page .ct-btn-navy:hover { background: var(--navy-2); color: #fff; }
.ct-page .hidden-phone-no { display: none; color: var(--navy); font-weight: 700; }
.ct-page .remove-me-on-press { display: inline; }

/* ---------- carduri de judete (/cautare fara judet) ---------- */
.ct-counties { padding-top: 24px; }
.ct-counties__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-page .ct-county { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ct-page .ct-county:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.ct-page h2.ct-county__name { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.ct-page .ct-county:hover .ct-county__name { color: var(--blue); }
.ct-county__txt { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- paginare ---------- */
.ct-page .ct-pager { display: block; margin: 28px 0 0; padding: 0; }
.ct-pager__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ct-page .pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; transition: border-color .2s, color .2s, background .2s; }
.ct-page .pagination-btn:hover { border-color: var(--blue); color: var(--blue); }
.ct-page .pagination-btn.active { background: var(--amber); border-color: var(--amber); color: #1F1300; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.ct-page .pagination-btn[href="#"] { opacity: .45; pointer-events: none; }
/* pe telefon, "anterioara" / "urmatoare" ocupa cate un rand intreg, sub numere */
.ct-pager__list .pagination-btn:first-child, .ct-pager__list .pagination-btn:last-child { flex: 1 1 40%; order: 2; }

/* ===================== >= 576px ===================== */
@media (min-width: 576px) {
    .ct-counties__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ct-pager__list .pagination-btn:first-child, .ct-pager__list .pagination-btn:last-child { flex: 0 0 auto; order: 0; }
}
/* ===================== >= 768px ===================== */
@media (min-width: 768px) {
    .ct-hero.co-hero { padding: 48px 0 56px; }
    .ct-chrome-v1 .ct-hero.co-hero { padding-top: 120px; }
    .ct-page h1.ct-hero__title { font-size: 40px; }
    .ct-search.co-form { grid-template-columns: 1fr 1fr; padding: 20px; }
    .ct-search__field--q, .ct-search__submit { grid-column: 1 / -1; }
    .ct-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .ct-card { padding: 22px; }
    .ct-counties__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
/* ===================== >= 1100px ===================== */
@media (min-width: 1100px) {
    .ct-page h1.ct-hero__title { font-size: 46px; }
    .ct-search.co-form { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; }
    .ct-search__field--q, .ct-search__submit { grid-column: auto; }
    .ct-results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ct-counties__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .ct-card, .ct-page .ct-county { transition: none; }
    .ct-card:hover, .ct-page .ct-county:hover { transform: none; }
}
