/* CautColeg.ro Global CSS - Reset & Utility Classes */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* =========================================
   UTILITY CLASSES (Replace page-specific bloat)
   ========================================= */
.text-h1 {
    font-size: var(--fs-3xl); 
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.text-h2 {
    font-size: var(--fs-xl); 
    font-weight: 700;
    line-height: 1.3;
}
.text-h3 {
    font-size: var(--fs-lg); 
    font-weight: 600;
}
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-gray { color: var(--gray); }
.text-black { color: var(--black); }
.text-white { color: var(--white); }
.mb-2 { margin-bottom: var(--sp-2); } 
.mb-4 { margin-bottom: var(--sp-4); } 
.mb-6 { margin-bottom: var(--sp-6); } 
.mb-8 { margin-bottom: var(--sp-8); } 
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.hidden { display: none !important; }
.d-none { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.p-0 { padding: 0; }
.p-4 { padding: var(--sp-4); } 
.p-6 { padding: var(--sp-6); } 
.p-8 { padding: var(--sp-8); } 
.py-6 { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.py-12 { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
.py-16 { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.px-6 { padding-left: var(--sp-6); padding-right: var(--sp-6); }
.px-8 { padding-left: var(--sp-8); padding-right: var(--sp-8); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xs { max-width: 260px; width: 100%; }
.max-w-sm { max-width: 400px; width: 100%; }
.max-w-md { max-width: 568px; width: 100%; margin: 0 auto; }
.max-w-lg { max-width: 800px; width: 100%; margin: 0 auto; }
.min-h-screen { min-height: 100vh; }
.min-h-\[80vh\] { min-height: 80vh; }
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/4 { width: 25%; flex-shrink: 0; }
    .md\:w-3\/4 { width: 75%; }
}
.list-none { list-style: none; padding: 0; margin: 0; }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.rounded-none { border-radius: 0; }
.rounded-md { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.underline { text-decoration: underline; }
.card-standard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.input-group-flush {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.input-flush {
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    border: none;
    border-radius: 0;
    outline: none;
    font-size: var(--fs-base);
    transition: background 0.2s;
}
.input-flush:focus {
    background: var(--gray-bg);
}
.input-group-flush > .input-flush:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.flash {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 32px;
  background: var(--black);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  animation: slideDown 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
}
@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.w-120px { width: 120px !important; }
.right-0 { right: 0 !important; }
.left-0 { left: 0 !important; }
.text-decoration-none { text-decoration: none !important; }
.color-text-primary { color: var(--text-primary) !important; }
.d-block { display: block !important; }
.px-20 { padding-left: 20px !important; padding-right: 20px !important; }
.py-12 { padding-top: 12px !important; padding-bottom: 12px !important; }
.fw-700 { font-weight: 700 !important; }
.mt-1 { margin-top: 4px !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mt-6 { margin-top: 24px !important; }
.pt-4 { padding-top: 16px !important; }
.items-start { align-items: flex-start !important; }
.text-center { text-align: center !important; }
.justify-center { justify-content: center !important; }
.border-t-dashed { border-top: 1px dashed #eee !important; }
.fw-400 { font-weight: 400 !important; }
.fw-600 { font-weight: 600 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 16px !important; }
.shadow-none { box-shadow: none !important; }
.text-xs { font-size: 12px !important; }
.p-5 { padding: 20px !important; }
.line-height-1-6 { line-height: 1.6 !important; }
.animate-fade-in { animation: fadeIn 0.3s ease; }
.shadow-none { box-shadow: none !important; }
.pos-relative { position: relative !important; }
.w-full { width: 100% !important; }
.mt-4 { margin-top: 16px !important; }

/* Utility additions for listing cards and profile setups */
.pos-relative { position: relative !important; }
.pos-absolute { position: absolute !important; }
.top-16 { top: 16px !important; }
.right-16 { right: 16px !important; }
.z-10 { z-index: 10 !important; }

.wishlist-btn-solid {
    display: flex; align-items: center; justify-content: center; background: white; border-radius: 50%; width: 32px; height: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.2); color: black; border: none; cursor: pointer; padding: 0;
}
.wishlist-btn-ghost {
    display: flex; align-items: center; justify-content: center; background: transparent; border: none; width: 32px; height: 32px; cursor: pointer; padding: 0;
}

.svg-icon-24 { display: block; height: 24px; width: 24px; stroke-width: 2; overflow: visible; }
.svg-icon-heart-active { fill: #E61E4D; stroke: white; }
.svg-icon-heart-inactive { fill: rgba(0,0,0,0.5); stroke: white; }
.svg-icon-heart-inactive-dark { fill: rgba(0,0,0,0.5); stroke: currentColor; }

.badge-own-listing { background: #EBF5FF; color: #0070F3; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid #0070F3; display: inline-block; }
.badge-own-listing-mt4 { margin-top: 4px; }

/* ── Atributul `hidden` chiar ascunde ─────────────────────────────────────
   `[hidden]` are specificitate zero, deci orice `display` pus pe o clasă îl
   anulează — iar noi punem `display` pe aproape orice clasă de buton. Rezultatul
   e un element marcat ascuns în JS care rămâne pe ecran, un fel de eroare care
   nu dă nicio eroare.

   S-a întâmplat de trei ori în proiect: la un buton din chestionar, la „Arată
   toate cartierele" şi la proba de notificări. Regula asta o încheie. */
[hidden] { display: none !important; }
