/* imobiliareseverin
   Paleta: Dunărea (albastru-verde adânc), calcarul (alb rece) și galbenul panourilor „De vânzare”. */

:root {
  --dunare: #0F3D4C;
  --dunare-deep: #0A2C38;
  --dunare-soft: #1F5B6B;
  --calcar: #F5F6F3;
  --ceata: #DDE5E4;
  --ink: #13222B;
  --muted: #53656D;
  --semn: #F4C430;
  --semn-deep: #D9A814;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--calcar);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--semn); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 700; font-stretch: 105%;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
}
.btn-sign { background: var(--semn); color: var(--ink); border-color: var(--semn); }
.btn-sign:hover { background: var(--semn-deep); border-color: var(--semn-deep); }
.btn-ink { background: var(--dunare); color: var(--white); }
.btn-ink:hover { background: var(--dunare-deep); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Antet ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dunare);
  color: var(--white);
}
.has-hero .site-header {
  position: fixed; left: 0; right: 0;
  background: transparent;
}
.has-hero .site-header.is-scrolled { background: var(--dunare); }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-stretch: 118%; font-size: 1.2rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-img { display: block; height: 48px; width: auto; }
.logo-footer { display: block; width: 150px; height: auto; }
.logo-mark {
  width: 18px; height: 14px; background: var(--semn);
  box-shadow: inset 0 -4px 0 var(--semn-deep);
}

.nav { display: flex; gap: clamp(12px, 3vw, 32px); }
.nav a { text-decoration: none; font-weight: 600; opacity: .9; padding: 8px 0; }
.nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--semn); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Hero: căutarea ca propoziție ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--calcar);
  background:
    linear-gradient(90deg, rgba(10, 44, 56, .88) 0%, rgba(10, 44, 56, .62) 45%, rgba(10, 44, 56, .30) 100%),
    linear-gradient(0deg, rgba(10, 44, 56, .75) 0%, rgba(10, 44, 56, 0) 45%),
    url("../images/hero.jpg") center 40% / cover no-repeat,
    var(--dunare);
  padding-block: calc(64px + clamp(40px, 7vw, 88px)) clamp(44px, 6vw, 72px);
}
/* Linia Dunării la baza hero-ului */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: var(--calcar);
  -webkit-mask: radial-gradient(circle at 12px -4px, transparent 12px, #000 12.5px) 0 0 / 24px 14px repeat-x;
          mask: radial-gradient(circle at 12px -4px, transparent 12px, #000 12.5px) 0 0 / 24px 14px repeat-x;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  max-width: 16em;
  text-wrap: balance;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(10, 44, 56, .45);
}
.hero-note { color: var(--ceata); margin-top: 12px; font-size: 1.15rem; max-width: 52ch; }

/* ---------- Căutare (panou de sticlă) ---------- */

.search {
  position: relative;
  max-width: 860px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.tabs {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  z-index: 1;
}
.tab { position: relative; cursor: pointer; }
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab span {
  display: block; padding: 7px 22px 8px;
  font-weight: 600; font-size: .98rem;
  color: var(--white);
  border-radius: 999px;
}
.tab:hover span { background: rgba(255, 255, 255, .14); }
.tab input:checked + span { background: var(--calcar); color: var(--ink); }
.tab input:focus-visible + span { outline: 3px solid var(--semn); outline-offset: 2px; }

.search-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 34px 20px 20px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(6, 26, 34, .35);
}

.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field-label { font-size: .92rem; font-weight: 600; color: var(--white); }
.field select {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 48px; padding: 0 38px 0 14px; margin: 0;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  background: rgba(245, 246, 243, .94) no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2313222B' stroke-width='1.6'/%3E%3C/svg%3E");
  cursor: pointer;
}
.field-place select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313222B' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6.5v13.5l6-2.5 6 2.5 6-2.5V4l-6 2.5z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E");
  background-size: 18px;
}
.field select:hover { background-color: var(--white); }
.field select:focus-visible { outline: 3px solid var(--semn); outline-offset: 1px; background-color: var(--white); }
.search-btn { height: 48px; min-height: 0; padding-inline: 26px; border-radius: 8px; white-space: nowrap; }

.rating {
  margin-top: 16px; text-align: center;
  font-size: .92rem; color: var(--ceata);
}
.stars { color: var(--semn); letter-spacing: .08em; margin-right: 4px; }

/* ---------- Rezultate ---------- */

.results { padding-block: clamp(40px, 6vw, 72px); }

.results-bar {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 32px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 2px solid var(--ink);
}
.results-count { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; }

.results-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 28px; }

.rooms { border: 0; margin: 0; padding: 0; min-width: 0; }
.rooms legend, .sort span { font-size: .875rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; padding: 0; }
.sort { display: flex; flex-direction: column; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid #C4CFD2; border-radius: var(--radius); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.sort select {
  font: inherit; font-weight: 600; font-size: .95rem;
  min-height: 40px; padding: 0 36px 0 12px;
  background: var(--white) no-repeat right 12px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2313222B' stroke-width='1.6'/%3E%3C/svg%3E");
  border: 1.5px solid #C4CFD2; border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; color: var(--ink); cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}

/* ---------- Card ---------- */

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.card-img, .detail-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ceata);
}
.card-img svg, .card-img img, .detail-img svg, .detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Panoul galben, ca cele puse pe balcon */
.sign {
  position: absolute; left: 14px; top: 14px;
  background: var(--semn); color: var(--ink);
  font-weight: 800; font-stretch: 108%; font-size: .9rem;
  padding: 5px 10px 6px;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.card-body { padding-top: 14px; display: grid; gap: 4px; }
.card-price { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.15; }
.card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.card:hover .card-title { text-decoration: underline; text-decoration-color: var(--semn-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-loc { color: var(--muted); font-size: .95rem; }

.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li {
  font-size: .875rem; font-weight: 600;
  padding: 3px 9px; border-radius: 2px;
  background: var(--ceata); color: var(--dunare);
}

/* ---------- Stare goală ---------- */

.empty {
  grid-column: 1 / -1;
  padding: 40px 0; max-width: 56ch; display: grid; gap: 12px; justify-items: start;
}
.empty-title { font-size: 1.4rem; font-weight: 800; font-stretch: 110%; }
.empty-page { padding-block: 96px; }

/* ---------- Proprietari ---------- */

.owners { background: var(--dunare-deep); color: var(--calcar); padding-block: clamp(48px, 7vw, 88px); }
.owners-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; }
.owners-inner p { color: var(--ceata); max-width: 52ch; margin-top: 12px; }
.owners-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; max-width: 20ch; }
.owners-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Subsol ---------- */

.site-footer { background: var(--ink); color: var(--ceata); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-grid p + p { margin-top: 4px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.logo-light { color: var(--white); }
.footer-note { margin-top: 10px; }
.footer-h { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8FA3AA; }

/* ---------- Pagina anunțului ---------- */

.back {
  display: inline-block; margin-block: 28px 20px;
  font-weight: 600; text-decoration: none; color: var(--dunare);
}
.back::before { content: "‹ "; }
.back:hover { text-decoration: underline; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.detail-img { aspect-ratio: 16 / 10; }

.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(245, 246, 243, .92); color: var(--ink);
  font: inherit; font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(6, 26, 34, .25);
}
.gal-nav:hover { background: var(--white); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(19, 34, 43, .78); color: var(--white);
  font-size: .85rem; font-weight: 700; padding: 3px 9px; border-radius: 2px;
}

.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent;
  border-radius: 3px; overflow: hidden; cursor: pointer; background: var(--ceata); opacity: .7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.detail-img .sign { font-size: 1rem; }

.detail-title {
  margin-top: 28px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; font-stretch: 110%;
  letter-spacing: -0.02em; line-height: 1.12; max-width: 30ch; text-wrap: balance;
}
.detail-loc { margin-top: 10px; color: var(--muted); }

.specs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0; margin: 32px 0 0;
  border-top: 2px solid var(--ink);
}
.specs div { padding: 14px 16px 14px 0; border-bottom: 1px solid #C4CFD2; }
.specs dt { font-size: .875rem; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }

.detail-h { font-size: 1.35rem; font-weight: 800; font-stretch: 110%; margin: 40px 0 12px; letter-spacing: -0.01em; }
.detail-text { max-width: 68ch; }

.amenities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amenities li { padding: 6px 12px; background: var(--white); border: 1.5px solid #C4CFD2; border-radius: var(--radius); font-weight: 600; font-size: .95rem; }

.detail-side { position: sticky; top: 88px; }
.contact-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
}
.detail-price { font-size: 2rem; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; line-height: 1.1; }
.detail-ppm { color: var(--muted); margin-top: 4px; }

.agent { margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid #C4CFD2; }
.agent-name { font-weight: 700; }
.agent-role { color: var(--muted); font-size: .95rem; }

.visit { margin-top: 24px; padding-top: 20px; border-top: 1px solid #C4CFD2; display: grid; gap: 12px; }
.visit-h { font-size: 1.1rem; font-weight: 800; font-stretch: 108%; }
.visit label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.visit input, .visit textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid #C4CFD2; border-radius: var(--radius); background: var(--calcar);
  resize: vertical;
}
.visit input:focus, .visit textarea:focus { outline: none; border-color: var(--dunare); background: var(--white); box-shadow: 0 0 0 3px rgba(244,196,48,.6); }
.visit-note { font-size: .85rem; color: var(--muted); }

.similar { padding-block: 32px 80px; }
.similar .detail-h { margin-bottom: 24px; }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-btn { width: 100%; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .detail-side { position: static; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 56px; gap: 12px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo-img { height: 34px; }
  .nav { gap: 14px; font-size: .92rem; }
  .hero { padding-top: calc(56px + 32px); }
  .search-bar { grid-template-columns: 1fr; }
  .results-bar { align-items: start; }
}

@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .logo-img { height: 30px; }
  .nav { gap: 12px; font-size: .86rem; }
}
