/* SUD IMOBIL — website component & layout styles.
 * Recreates the design-system prototype (PropertyCard, CategoryCard, AgentCard,
 * SearchBar, Button, Badge, Header/Footer, hero, detail) as plain CSS classes
 * referencing the design tokens in tokens/*.css. */

/* ---------- Layout ---------- */
/* SUD IMOBIL — website component & layout styles. */

/* ---------- Layout ---------- */
.wrap { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--band { background: var(--surface-section); }
.section--dark { background: var(--charcoal); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { font-size: var(--text-4xl); margin: 0; }
.section-head .sub { color: var(--text-muted); font-size: var(--text-lg); margin-top: 10px; }

.grid { display: grid; }
.grid--cats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid--props { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.grid--agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.grid--agents .agent-card { width: 300px; max-width: 100%; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 1024px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .adv-grid { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle); /* #E2E6E8 */
  box-shadow: 0 1px 3px rgba(16,38,38,0.05);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); } /* deeper on scroll */
.site-header__bar {
  max-width: var(--container-wide); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-logo img { height: 56px; width: auto; display: block; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 9px 14px; border-radius: var(--radius-md); text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--text-body); background: transparent; transition: all var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { background: var(--gray-50); text-decoration: none; }
.site-nav a.is-active { color: var(--color-primary); background: var(--teal-50); }

/* ---------- Lang switch ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; background: var(--gray-100); border-radius: var(--radius-pill); }
.lang-switch a {
  border: none; cursor: pointer; border-radius: var(--radius-pill); padding: 6px 14px; min-width: 40px;
  text-align: center; font-family: var(--font-body); font-weight: var(--weight-bold);
  font-size: var(--text-sm); letter-spacing: 0.06em; text-decoration: none;
  background: transparent; color: var(--text-muted); transition: all var(--dur-fast) var(--ease-out);
}
.lang-switch a.is-active { background: var(--surface-card); color: var(--color-primary); box-shadow: var(--shadow-xs); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; font-family: var(--font-body); font-weight: var(--weight-semibold);
  font-size: var(--text-base); line-height: 1; letter-spacing: -0.01em; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap; text-decoration: none; border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-default); }
.btn--secondary:hover { background: var(--gray-50); }
.btn--ghost { background: transparent; color: var(--text-link); }
.btn--ghost:hover { background: var(--teal-50); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--ink-800); }
.btn--lg { height: 54px; padding: 0 26px; font-size: var(--text-lg); gap: 10px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--text-sm); gap: 7px; border-radius: var(--radius-sm); }
.btn--block { display: flex; width: 100%; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px;
  border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: var(--weight-bold); letter-spacing: 0.02em; white-space: nowrap;
}
.badge--sm { height: 22px; padding: 0 9px; font-size: 11px; }
.badge--sale  { background: var(--badge-sale-bg);  color: var(--badge-sale-fg); }
.badge--rent  { background: var(--badge-rent-bg);  color: var(--badge-rent-fg); }
.badge--lease { background: var(--badge-lease-bg); color: var(--badge-lease-fg); }
.badge--swap  { background: var(--violet-500);     color: #fff; }
.badge--neutral { background: var(--gray-100); color: var(--text-strong); }

/* ---------- Form fields (Input / Select) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: var(--weight-medium); color: var(--text-strong);
}
.field__control {
  position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field__control:hover, .field__control:focus-within { border-color: var(--color-primary); }
.field__control:focus-within { box-shadow: var(--focus-ring); }
.field__control .ico { color: var(--color-primary); flex: none; }
.field__control input, .field__control select {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong);
}
.field__control select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field__control .chev { color: var(--text-muted); pointer-events: none; flex: none; }
.field__control .suffix { font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--weight-medium); white-space: nowrap; }

/* ---------- Search bar ---------- */
.search-bar { padding: 16px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.search-bar--hero {
  padding: 20px; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 24px 60px rgba(7,38,38,0.32);
}
/* Hero filter: 6 equal columns spanning the full card; button centered below. */
.search-bar--hero .search-bar__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.search-bar--hero .search-bar__actions { justify-content: center; }
.search-bar__row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.search-bar__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,106,112,0.52) 0%, rgba(7,106,112,0.70) 55%, rgba(7,38,44,0.88) 100%); }
.hero__inner { position: relative; width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 64px 24px; }
.hero__title { color: #fff; font-weight: var(--weight-extra); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; max-width: 820px; margin-bottom: 32px; }
.hero__search { width: 100%; max-width: var(--container-max); margin-inline: auto; }

/* Hero filter — responsive column counts */
@media (max-width: 1024px) { .search-bar--hero .search-bar__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .search-bar--hero .search-bar__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .search-bar--hero .search-bar__row { grid-template-columns: 1fr; }
  .search-bar--hero .search-bar__actions .btn { width: 100%; }
}

/* ---------- Eyebrow ---------- */
.eyebrow--teal { color: var(--teal-300); }

/* ---------- Category card ---------- */
.category-card {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; padding: 18px 20px;
  cursor: pointer; background: var(--surface-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-xs); text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}
.category-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.category-card__ico {
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-50); color: var(--teal-600); transition: all var(--dur-base) var(--ease-out);
}
.category-card:hover .category-card__ico { background: var(--color-primary); color: #fff; }
.category-card__title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-base); color: var(--text-strong); }
.category-card__count { font-size: var(--text-sm); color: var(--text-muted); }
.category-card__count strong { color: var(--color-primary); font-weight: var(--weight-bold); }

/* ---------- Property card ---------- */
.property-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface-card);
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); text-decoration: none; }
.property-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--gray-100); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.property-card__fav {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.property-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.property-card__price { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-2xl); color: var(--color-primary); letter-spacing: -0.02em; }
.property-card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-card__loc { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--text-sm); }
.property-card__meta { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle); color: var(--text-body); font-size: var(--text-sm); }
.property-card__meta span { display: flex; align-items: center; gap: 6px; }
.property-card__meta .ico { color: var(--text-muted); }
.property-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.property-card__code { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }
.property-card__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text-link); }

/* ---------- Agent card ---------- */
.agent-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 22px 20px; background: var(--surface-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: all var(--dur-base) var(--ease-out);
}
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); text-decoration: none; }
.agent-card__photo {
  display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--teal-100); border: 3px solid var(--surface-card); box-shadow: var(--shadow-md); margin-bottom: 4px;
}
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__name { font-size: var(--text-lg); font-weight: var(--weight-bold); margin: 0; }
.agent-card__role { font-size: var(--text-sm); color: var(--color-primary); font-weight: var(--weight-semibold); }
.agent-card__count { font-size: var(--text-sm); color: var(--text-muted); }
.agent-card__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; width: 100%; }
.agent-card__contacts a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--text-strong); text-decoration: none; padding: 9px 12px; border-radius: var(--radius-md); background: var(--gray-50);
}
.agent-card__contacts a.muted { color: var(--text-muted); }

/* ---------- Advantages ---------- */
.adv-item { display: flex; flex-direction: column; gap: 12px; }
.adv-item__ico { width: 54px; height: 54px; border-radius: var(--radius-lg); background: rgba(26,191,191,0.16); color: var(--teal-300); display: flex; align-items: center; justify-content: center; }
.adv-item h3 { color: #fff; font-size: var(--text-xl); margin: 0; }
.adv-item p { color: rgba(255,255,255,0.62); font-size: var(--text-base); line-height: 1.6; }

/* ---------- Social links (footer + contact) ---------- */
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--color-primary); background: rgba(11,133,140,0.10);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.social-links a:hover { color: var(--color-primary-hover); background: rgba(11,133,140,0.18); text-decoration: none; }
.social-links svg { width: 22px; height: 22px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #fff; }
.site-footer__cols { max-width: var(--container-wide); margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); color: #fff; margin: 0 0 4px; letter-spacing: 0.02em; }
.site-footer__col a.flink { color: rgba(255,255,255,0.66); text-decoration: none; font-size: var(--text-sm); }
.site-footer__col a.flink:hover { color: #fff; }
.site-footer__contact { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); font-size: var(--text-sm); text-decoration: none; }
.site-footer__tag { color: rgba(255,255,255,0.6); font-size: var(--text-sm); line-height: 1.6; max-width: 320px; margin-top: 8px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; text-align: center; color: rgba(255,255,255,0.45); font-size: var(--text-xs); }
@media (max-width: 860px) { .site-footer__cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Catalog ---------- */
.catalog-head { margin-bottom: 22px; }
.catalog-head h1 { font-size: var(--text-4xl); margin-bottom: 8px; }
.catalog-head p { color: var(--text-muted); }
.results-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-row .count { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xl); color: var(--text-strong); }
.results-row .count-label { color: var(--text-muted); }
.empty { padding: 60px; text-align: center; color: var(--text-muted); background: var(--surface-card); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); }

/* ---------- Advanced catalog filter ---------- */
.filter-band { background: var(--surface-section); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 24px 0; }
.filter-band .cf { margin-bottom: 0; }
.cf { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 18px; }
.cf-basic { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.adv-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--color-primary); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); padding: 8px 4px; }
.adv-toggle:hover { color: var(--color-primary-hover); }
.adv-caret { transition: transform var(--dur-fast) var(--ease-out); }
.cf--adv-open .adv-caret { transform: rotate(180deg); }
.cf-advanced { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.cf--adv-open .cf-advanced { display: block; }
.cf-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-group > label { display: block; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.cf-group .cond[hidden], .cond[hidden] { display: none; }
.cf-range { display: flex; align-items: center; gap: 8px; }
.cf-range input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--text-base); color: var(--text-strong); background: var(--surface-card); outline: none; transition: border-color var(--dur-fast) var(--ease-out); }
.cf-range input:hover, .cf-range input:focus { border-color: var(--color-primary); }
.cf-range span { color: var(--text-faint); }
.cf-checks { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.cf-check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--text-body); cursor: pointer; }
.cf-check input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.optset { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); cursor: pointer; font-size: var(--text-sm); color: var(--text-strong); user-select: none; transition: all var(--dur-fast) var(--ease-out); }
.opt input { display: none; }
.opt svg { color: var(--teal-600); }
.opt:hover { border-color: var(--color-primary); }
.opt:has(input:checked) { background: var(--teal-50); border-color: var(--color-primary); color: var(--teal-700); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip-active { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: var(--radius-pill); background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.chip-active:hover { background: var(--teal-100); text-decoration: none; }
.chip-active svg { opacity: 0.7; }
.chip-reset { font-size: var(--text-sm); color: var(--text-muted); text-decoration: underline; padding: 6px 8px; }

/* drawer bits hidden on desktop */
.cf__drawer-head, .cf__drawer-actions, .filter-open-btn, .cf-overlay { display: none; }
.icon-x { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; }

@media (max-width: 1024px) {
  .cf-basic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile: filter becomes an off-canvas drawer */
@media (max-width: 820px) {
  .filter-open-btn { display: inline-flex; margin-bottom: 16px; }
  .cf {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(92vw, 420px); margin: 0;
    border-radius: 0; z-index: 80; overflow-y: auto; transform: translateX(-100%);
    transition: transform 0.25s var(--ease-out); box-shadow: var(--shadow-xl);
  }
  body.filters-open .cf { transform: translateX(0); }
  body.filters-open { overflow: hidden; }
  .cf-overlay { display: block; position: fixed; inset: 0; background: rgba(17,18,20,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 79; }
  body.filters-open .cf-overlay { opacity: 1; pointer-events: auto; }
  .cf__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .cf__drawer-head strong { font-family: var(--font-display); font-size: var(--text-xl); }
  .cf__drawer-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; position: sticky; bottom: 0; background: var(--surface-card); padding: 12px 0 4px; }
  .cf-basic { grid-template-columns: 1fr 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-bar { justify-content: flex-start; }
  .cf-bar > .btn { display: none; }   /* use „Aplică" in the drawer footer */
}

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span.cell {
  min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--surface-card);
  color: var(--text-strong); font-family: var(--font-body); font-weight: var(--weight-semibold); font-size: var(--text-sm);
  text-decoration: none; transition: all var(--dur-fast) var(--ease-out);
}
.pagination a:hover { border-color: var(--color-primary); text-decoration: none; }
.pagination .is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .is-disabled { color: var(--text-faint); pointer-events: none; }
.pagination .dots { border: none; background: none; color: var(--text-faint); }

/* ---------- Detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .aside { position: static; } }
.crumb { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; color: var(--text-muted); font-family: var(--font-body); font-size: var(--text-sm); padding: 8px 0; margin-bottom: 8px; text-decoration: none; }
.gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow-card); }
.gallery__main { position: relative; aspect-ratio: 16/10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.thumbs { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: none; }
.thumbs button.is-active { border-color: var(--color-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { margin-top: 28px; }
.detail-title h1 { font-size: var(--text-3xl); margin-bottom: 10px; }
.detail-title .loc { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--text-lg); }
.detail-h2 { font-size: var(--text-xl); margin: 32px 0 16px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; }
.spec { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.spec .ico { color: var(--teal-600); }
.spec .lbl { font-size: var(--text-xs); color: var(--text-muted); }
.spec .val { font-family: var(--font-body); font-weight: 700; color: var(--text-strong); }
.detail-desc { font-size: var(--text-lg); line-height: 1.7; color: var(--text-body); }
.detail-map iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius-lg); display: block; }
.detail-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.dtag { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border-subtle); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--text-strong); }
.dtag svg { color: var(--teal-600); }
.dtag--amenity { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-700); }
.dtag--amenity svg { color: var(--teal-600); }
.aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.aside-card .offer { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 4px; }
.aside-card .price { font-family: var(--font-display); font-weight: 800; font-size: var(--text-5xl); color: var(--color-primary); letter-spacing: -0.02em; line-height: 1; }
.aside-card .code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-faint); margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; }
.contact-row .ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row .k { font-size: var(--text-sm); color: var(--text-muted); }
.contact-row .v { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xl); color: var(--text-strong); }
.contact-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; }
.contact-card h2 { font-size: var(--text-2xl); margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Agent page ---------- */
.agent-band { background: var(--charcoal); color: #fff; padding: 40px 0 48px; }
.agent-band__row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.agent-band__photo { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,0.15); flex: none; }
.agent-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-band h1 { color: #fff; font-size: var(--text-5xl); margin: 0 0 14px; }
.agent-band__stat { text-align: center; padding: 0 12px; }
.agent-band__stat .n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-5xl); color: var(--teal-300); }
.agent-band__stat .l { color: rgba(255,255,255,0.65); font-size: var(--text-sm); }

/* ===================== Responsive ===================== */

/* Tablets / small laptops */
@media (max-width: 1024px) {
  .hero { min-height: 480px; }
  .hero__inner { padding: 48px 24px; }
  .detail-grid { gap: 24px; }
}

/* Large phones / small tablets */
@media (max-width: 820px) {
  .section { padding: var(--section-y-sm) 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: var(--text-3xl); }
  .detail-title h1 { font-size: var(--text-2xl); }
  .aside { position: static; }            /* stop sticky once the column stacks */
}

/* Header collapses to two rows: [logo · lang] then full-width nav */
@media (max-width: 680px) {
  .site-header__bar { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .site-logo img { height: 46px; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
  .site-nav a { padding: 8px 14px; }
}

/* Phones */
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 420px; }
  .hero__inner { padding: 36px 16px; }
  .hero__title { margin-bottom: 22px; }
  .search-bar--hero { padding: 14px; }
  .grid--agents { gap: 16px; }
  .grid--agents .agent-card { width: 100%; max-width: 380px; }
  .agent-band h1 { font-size: var(--text-4xl); }
  .agent-band__row { gap: 18px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .btn--lg { height: 48px; padding: 0 20px; font-size: var(--text-base); }
}

/* ---------- Hero ca în mockup: text stânga, imagine luminoasă, filtru un rând jos ---------- */
.hero--left { min-height: 0; height: clamp(560px, 54vw, 720px); display: flex; align-items: center; }
.hero__veil--left { background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 36%, rgba(255,255,255,0) 62%); }
.hero-left__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 90px; }
.hero-left__title { color: var(--charcoal); font-weight: var(--weight-extra); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; max-width: 560px; margin: 0; }
.hero-left__title .accent { color: var(--color-primary); }
.hero-left__tag { color: var(--text-body); font-size: var(--text-lg); margin: 12px 0 20px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 24px; }
.hero-chips a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.hero-chips a svg { color: var(--color-primary); }
.hero-chips a:hover { color: var(--color-primary); text-decoration: none; }

/* Filtrul: un singur rând, suprapus peste marginea imaginii */
.hero-search-band { position: relative; z-index: 5; margin-top: -170px; padding-bottom: 8px; }
.hero-search-band .search-bar--hero {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 48px rgba(7,38,38,0.16);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}
.hero-search-band .search-bar--hero .search-bar__row { display: contents; }
.hero-search-band .search-bar--hero .f-construct { display: none; }
.hero-search-band .search-bar--hero .search-bar__actions { margin-top: 0; }
.hero-search-band .search-bar--hero .search-bar__actions .btn { height: 46px; padding: 0 22px; font-size: var(--text-base); }

@media (max-width: 1024px) {
  .hero-search-band .search-bar--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-search-band .search-bar--hero .search-bar__actions { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 560px) {
  .hero--left { height: auto; min-height: 420px; }
  .hero-left__inner { padding-top: 36px; padding-bottom: 150px; }
  .hero__veil--left { background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.05) 100%); }
  .hero-search-band { margin-top: -90px; }
  .hero-search-band .search-bar--hero { grid-template-columns: 1fr; }
  .hero-search-band .search-bar--hero .search-bar__actions .btn { width: 100%; }
}

/* ---------- Select: tot câmpul e clicabil, inclusiv săgeata ---------- */
.field__control select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0 38px 0 14px;
  flex: none;
}
.field__control:has(.ico) select { padding-left: 42px; }
.field__control .ico,
.field__control .chev { position: relative; z-index: 1; pointer-events: none; }
.field__control .chev { margin-left: auto; }

/* ---------- Galerie: săgeți de navigare pe imaginea mare ---------- */
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); color: var(--text-strong);
  box-shadow: var(--shadow-md); z-index: 2;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav:active { transform: translateY(-50%) scale(0.94); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
@media (max-width: 560px) {
  .gallery__nav { width: 38px; height: 38px; }
}
/* ---------- Caracteristici în coloana din dreapta ---------- */
.aside-specs { display: flex; flex-direction: column; }
.aside-spec {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}
.aside-spec:last-child { border-bottom: none; }
.aside-spec .ico { color: var(--teal-600); flex: none; display: flex; }
.aside-spec .lbl { color: var(--text-muted); }
.aside-spec .val { margin-left: auto; font-family: var(--font-body); font-weight: 700; color: var(--text-strong); text-align: right; }

/* ---------- Lightbox: poza mărită pe tot ecranul ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,14,16,0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff;
}
.lightbox__close:hover { background: rgba(255,255,255,0.26); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.26); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 560px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
/* ---------- Echipa: carduri mai mari (poza + text) ---------- */
.agent-card { padding: 36px 28px; }
.agent-card__photo {
  width: 150px; height: 150px;
}
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__name { font-size: var(--text-2xl); margin: 16px 0 4px; }
.agent-card__role { font-size: var(--text-base); }
.agent-card__contacts { margin-top: 18px; }
.agent-card__contacts a { font-size: var(--text-base); padding: 12px 16px; }
@media (max-width: 560px) {
  .agent-card__photo { width: 120px; height: 120px; }
  .agent-card__name { font-size: var(--text-xl); }
}
