/* „Caut coleg de apartament” (views/colegi/*.ejs, views/partials/coleg-card.ejs) */
.cl-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.cl-hero { background: linear-gradient(135deg, #312e81, #4338ca 50%, #6366f1); color: #fff; padding: 22px 0 30px; }
.cl-hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; line-height: 1.15; margin: 8px 0 10px; max-width: 24ch; }
.cl-hero--guide h1 { max-width: 30ch; font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
.cl-lead { color: #e0e7ff; font-size: 1.04rem; line-height: 1.6; max-width: 68ch; margin: 0; }
.cl-lead--dark { color: #475569; }
.cl-lead a, .cl-hero a:not(.cl-btn) { color: inherit; text-decoration: underline; }
.cl-crumbs { font-size: .85rem; color: #c7d2fe; }
.cl-crumbs a { color: inherit; }
.cl-crumbs--dark { color: #64748b; margin: 16px 0 6px; }
.cl-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cl-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; font-size: .9rem; color: #e0e7ff; }
.cl-hero__facts b { color: #fff; }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 18px; border-radius: 12px; border: 1px solid #4f46e5; background: #4f46e5; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.cl-btn:hover { background: #4338ca; }
.cl-btn--light { background: #fff; color: #3730a3; border-color: #fff; }
.cl-btn--light:hover { background: #eef2ff; }
.cl-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cl-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.cl-btn--soft { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.cl-btn--soft:hover { background: #e0e7ff; }
.cl-btn--block { width: 100%; }
.cl-btn--big { min-height: 50px; font-size: 1.05rem; }
.cl-main { padding: 20px 16px 56px; }
.cl-h2 { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin: 22px 0 12px; }
.cl-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; margin-top: -32px; position: relative; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.cl-filters label { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: #334155; }
.cl-filters select, .cl-filters input, .cl-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .cl-form select, .cl-form textarea, .cl-split input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; color: #0f172a; }
.cl-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cl-cities a { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; color: #334155; font-weight: 600; font-size: .88rem; text-decoration: none; }
.cl-cities a:hover { border-color: #a5b4fc; color: #3730a3; }
.cl-cities span { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #eef2ff; color: #3730a3; font-size: .78rem; text-align: center; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cl-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.cl-card:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.cl-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef2ff; }
.cl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; color: #6366f1; background: repeating-linear-gradient(135deg, #eef2ff 0 14px, #e0e7ff 14px 28px); }
.cl-card__ph--caut { color: #0f766e; background: repeating-linear-gradient(135deg, #f0fdfa 0 14px, #ccfbf1 14px 28px); }
.cl-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 800; background: #4f46e5; color: #fff; }
.cl-tag--caut { background: #0f766e; }
.cl-tag--static { position: static; display: inline-block; }
.cl-card__body { display: grid; gap: 4px; padding: 12px 14px 14px; align-content: start; }
.cl-card__title { color: #0f172a; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.cl-card__price { color: #3730a3; font-weight: 800; }
.cl-card__place { color: #475569; font-size: .86rem; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cl-chips span { font-size: .74rem; padding: 2px 8px; border-radius: 99px; background: #f1f5f9; color: #334155; }
.cl-chips .cl-chips__ago { background: none; color: #94a3b8; padding-left: 0; }
.cl-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cl-pages a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #334155; text-decoration: none; }
.cl-pages a[aria-current] { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.cl-empty { padding: 20px; background: #fff; border: 1px dashed #c7d2fe; border-radius: 16px; color: #334155; }
.cl-guide-teaser { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 26px 0; padding: 18px 20px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; }
.cl-guide-teaser h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.cl-guide-teaser ul { margin: 0; padding-left: 18px; list-style: disc; color: #78350f; font-size: .92rem; display: grid; gap: 2px; }
.cl-city p { color: #334155; line-height: 1.6; max-width: 75ch; }
.cl-city h3 { font-size: 1.02rem; font-weight: 800; color: #0f172a; margin: 16px 0 8px; }
.cl-univ { margin: 0; padding-left: 18px; list-style: disc; color: #334155; display: grid; gap: 3px; }
.cl-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cl-links a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.cl-links a:hover { border-color: #a5b4fc; }
.cl-links b { color: #0f172a; }
.cl-links span { color: #64748b; font-size: .85rem; }
/* anunțul */
.cl-ad { padding-bottom: 56px; }
.cl-flash { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 600; font-size: .92rem; }
.cl-flash--warn { background: #fffbeb; color: #92400e; }
.cl-flash--err { background: #fee2e2; color: #991b1b; }
.cl-flash a { text-decoration: underline; }
.cl-ad__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .cl-ad__grid { grid-template-columns: minmax(0, 1fr) 330px; } .cl-ad__side { position: sticky; top: 84px; align-self: start; } }
.cl-ad__main { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; min-width: 0; }
.cl-ad__main h1 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; color: #0f172a; line-height: 1.2; margin: 10px 0 6px; overflow-wrap: anywhere; }
.cl-ad__main h2 { font-size: 1.08rem; font-weight: 800; color: #0f172a; margin: 18px 0 6px; }
.cl-ad__price { font-size: 1.3rem; font-weight: 800; color: #3730a3; margin: 0; }
.cl-ad__place { color: #475569; margin: 4px 0 0; }
.cl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 14px; }
.cl-gallery a:first-child { grid-column: 1 / -1; }
.cl-gallery img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; display: block; aspect-ratio: 4 / 3; }
.cl-gallery a:first-child img { aspect-ratio: 16 / 9; }
.cl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 16px 0 0; }
.cl-facts div { padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #f1f5f9; }
.cl-facts dt { font-size: .76rem; color: #64748b; font-weight: 700; }
.cl-facts dd { margin: 2px 0 0; color: #0f172a; font-weight: 600; }
.cl-text { white-space: pre-line; color: #334155; line-height: 1.65; overflow-wrap: anywhere; }
.cl-meta { margin-top: 16px; color: #94a3b8; font-size: .82rem; }
.cl-contact, .cl-safe, .cl-report { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.cl-contact { display: grid; gap: 10px; }
.cl-contact__who { display: flex; gap: 10px; align-items: center; }
.cl-contact__who div { display: grid; }
.cl-contact__who b { color: #0f172a; }
.cl-contact__who span { color: #64748b; font-size: .82rem; }
.cl-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cl-save { width: 100%; justify-content: center; }
.cl-contact__note { margin: 0; font-size: .82rem; color: #64748b; }
.cl-own { display: grid; gap: 8px; }
.cl-link { color: #4338ca; font-weight: 600; font-size: .9rem; }
.cl-safe { background: #fffbeb; border-color: #fde68a; color: #78350f; font-size: .88rem; }
.cl-safe ul { margin: 6px 0 8px; padding-left: 18px; list-style: disc; display: grid; gap: 3px; }
.cl-safe a { color: #92400e; font-weight: 700; text-decoration: underline; }
.cl-report summary { cursor: pointer; color: #64748b; font-size: .88rem; }
.cl-report form { display: grid; gap: 8px; margin-top: 8px; }
.cl-report textarea { border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px; font: inherit; }
.cl-more { margin-top: 18px; color: #475569; }
.cl-more a { color: #4338ca; font-weight: 600; }
.cl-gone { padding: 48px 16px; text-align: center; }
.cl-gone h1 { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.cl-gone .cl-hero__actions { justify-content: center; }
/* formularul */
.cl-formwrap { padding-bottom: 56px; max-width: 860px; }
.cl-formwrap h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.cl-formwrap .cl-lead a { color: #4338ca; }
.cl-form { display: grid; gap: 16px; margin-top: 16px; padding: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.cl-kind { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.cl-kind legend { font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.cl-kind label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 14px; cursor: pointer; }
.cl-kind label:has(input:checked) { border-color: #6366f1; background: #eef2ff; }
.cl-kind span { display: grid; }
.cl-kind small { color: #64748b; }
.cl-kind input { width: 18px; height: 18px; margin-top: 3px; accent-color: #4f46e5; }
.cl-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.cl-form label, .cl-full { display: grid; gap: 4px; font-size: .88rem; font-weight: 700; color: #334155; min-width: 0; }
.cl-form small { font-weight: 400; color: #64748b; font-size: .8rem; }
.cl-form [hidden] { display: none !important; }
.cl-label { font-size: .88rem; font-weight: 700; color: #334155; margin: 0; }
.cl-preview, .cl-keep { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-preview img, .cl-keep img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.cl-keep label { display: grid; justify-items: center; gap: 2px; font-weight: 400; font-size: .75rem; }
.cl-agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cl-agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.cl-agree a { color: #4338ca; text-decoration: underline; }
/* ghidul */
.cl-guide { padding: 20px 16px 60px; max-width: 900px; }
.cl-short { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #c7d2fe; border-left: 5px solid #6366f1; }
.cl-short__l { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4f46e5; }
.cl-short h2 { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin: 4px 0 8px; }
.cl-short p { color: #334155; line-height: 1.6; margin: 0 0 8px; }
.cl-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.cl-toc a { padding: 6px 12px; border-radius: 99px; background: #eef2ff; color: #3730a3; font-weight: 600; font-size: .85rem; text-decoration: none; }
.cl-sec { margin-top: 34px; scroll-margin-top: 84px; }
.cl-sec h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; line-height: 1.25; margin: 0 0 10px; }
.cl-sec h3 { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 16px 0 8px; }
.cl-sec p, .cl-sec li { color: #334155; line-height: 1.65; }
.cl-sec a { color: #4338ca; text-decoration: underline; }
.cl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin: 12px 0; }
.cl-card-txt { padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.cl-card-txt h3 { margin-top: 0; }
.cl-checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.cl-checks li { position: relative; padding-left: 26px; }
.cl-checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #e0e7ff; color: #4338ca; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; }
.cl-box { padding: 14px 16px; border-radius: 14px; margin: 14px 0; }
.cl-box--warn { background: #fef2f2; border: 1px solid #fecaca; }
.cl-box--warn h3 { margin-top: 0; color: #991b1b; }
.cl-box ul { margin: 0; padding-left: 18px; list-style: disc; display: grid; gap: 6px; }
.cl-example { padding: 16px; border-radius: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; }
.cl-example__t { font-size: .78rem !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b !important; margin: 0 0 6px; }
.cl-chat-demo { display: grid; gap: 6px; max-width: 520px; padding: 14px; border-radius: 16px; background: #f1f5f9; margin: 12px 0; }
.cl-bub { justify-self: start; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; color: #0f172a; font-size: .92rem; line-height: 1.4; }
.cl-bub--me { justify-self: end; background: #2563eb; color: #fff; border-radius: 14px 14px 4px 14px; }
.cl-note { font-size: .88rem !important; color: #64748b !important; }
.cl-qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.cl-qgroup { padding: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.cl-qgroup h3 { margin: 0 0 8px; }
.cl-qgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cl-qgroup li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: .92rem; }
.cl-copy { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 8px; padding: 3px 8px; font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cl-copy.is-done { background: #dcfce7; border-color: #86efac; color: #166534; }
.cl-flags { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.cl-flags li { padding: 10px 12px 10px 38px; position: relative; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; }
.cl-flags li::before { content: '!'; position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: #dc2626; color: #fff; font-weight: 800; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; }
.cl-steps { padding-left: 22px; display: grid; gap: 8px; }
.cl-tools { padding: 12px 14px; background: #eef2ff; border-radius: 12px; }
.cl-split { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid #c7d2fe; border-radius: 16px; }
.cl-split__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cl-split__in label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: #334155; }
.cl-split__in .cl-label { grid-column: 1 / -1; }
.cl-split__rooms { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cl-split__out table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cl-split__out th, .cl-split__out td { padding: 8px 10px; border-top: 1px solid #e2e8f0; text-align: left; }
.cl-split__out td.n, .cl-split__out th.n { text-align: right; white-space: nowrap; }
.cl-split__out thead th { border-top: 0; background: #f8fafc; font-size: .82rem; }
.cl-faq details { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; margin-bottom: 8px; }
.cl-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: #0f172a; }
.cl-faq p { margin: 0; padding: 0 16px 12px; }
.cl-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 34px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #312e81, #4f46e5); color: #fff; }
.cl-cta h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.cl-cta p { margin: 0; color: #e0e7ff; }
.cl-cta .cl-hero__actions { margin-top: 0; }
.cl-src { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
/* caseta de promovare de pe alte pagini (views/partials/coleg-promo.ejs) */
.cl-promo { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #c7d2fe; }
.cl-promo__t { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.cl-promo__t b { color: #312e81; font-size: 1rem; }
.cl-promo__t span { color: #4338ca; font-size: .88rem; }
.cl-promo .cl-btn { min-height: 40px; padding: 7px 14px; font-size: .9rem; }
@media (max-width: 560px) { .cl-filters { margin-top: -24px; } .cl-split__rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cl-form { padding: 14px; } }
/* prima pagină (views/index.ejs): câte două pe rând pe telefon, ca anunțurile recente; patru pe desktop */
.cl-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1024px) { .cl-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 639px) {
  .cl-grid--home .cl-card__body { padding: 8px 10px 10px; gap: 2px; }
  .cl-grid--home .cl-card__title { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cl-grid--home .cl-card__price { font-size: .9rem; }
  .cl-grid--home .cl-card__place { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cl-grid--home .cl-chips { display: none; }
  .cl-grid--home .cl-tag { font-size: .66rem; padding: 2px 7px; left: 6px; top: 6px; }
  .cl-grid--home .cl-card__ph { font-size: 1rem; }
}
/* căutarea de chirii (views/listings/search.ejs): pe telefon, un rând care se derulează lateral */
@media (max-width: 639px) {
  .cl-grid--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cl-grid--row > .cl-card { scroll-snap-align: start; }
}
@media (min-width: 640px) { .cl-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
