/* ==========================================================================
   Pagina unui anunț (anunt.php) și ferestrele ei
   ========================================================================== */
.anunt { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.anunt-sus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.anunt-sus > span { display: flex; gap: 8px; }
.anunt-fav.is-on { color: var(--dau-accent); border-color: var(--dau-accent); }
.anunt-fav.is-on svg { fill: currentColor; }

/* ---------- Galerie ---------- */
.anunt-galerie { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 10px; }
.anunt-galerie__foto { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--dau-photo); cursor: zoom-in; }
.anunt-galerie__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--dau-ease); }
.anunt-galerie__foto:hover img { transform: scale(1.03); }
.anunt-galerie__foto:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: 32px 10px 10px 32px; }
.anunt-galerie__foto:nth-child(3) { border-top-right-radius: 32px; }
.anunt-galerie__foto:nth-child(5) { border-bottom-right-radius: 32px; }
.anunt-galerie--1 .anunt-galerie__foto:nth-child(1) { grid-column: span 4; border-radius: 32px; }
.anunt-galerie--2 .anunt-galerie__foto:nth-child(2) { grid-column: span 2; grid-row: span 2; border-radius: 10px 32px 32px 10px; }
.anunt-galerie--3 .anunt-galerie__foto:nth-child(n+2) { grid-column: span 2; }
.anunt-galerie--3 .anunt-galerie__foto:nth-child(2) { border-top-right-radius: 32px; }
.anunt-galerie--3 .anunt-galerie__foto:nth-child(3) { border-radius: 10px 10px 32px 10px; }
.anunt-galerie--4 .anunt-galerie__foto:nth-child(2) { grid-column: span 2; border-top-right-radius: 32px; }
.anunt-galerie--4 .anunt-galerie__foto:nth-child(3) { border-radius: 10px; }
.anunt-galerie--4 .anunt-galerie__foto:nth-child(4) { border-bottom-right-radius: 32px; }
.anunt-galerie--0 { grid-auto-rows: 300px; }
.anunt-galerie__gol { grid-column: 1 / -1; border-radius: 32px; background: var(--dau-photo); color: var(--dau-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.anunt-galerie__butoane { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.anunt-galerie__butoane .dau-btn { pointer-events: auto; box-shadow: var(--dau-shadow); }

/* ---------- Corp: conținut + coloana de contact ---------- */
.anunt-corp { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 20px; align-items: flex-start; }
.anunt-continut { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.anunt-lateral { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }

.anunt-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.anunt-etichete { display: flex; flex-wrap: wrap; gap: 6px; }
.anunt-titlu { font-size: clamp(2rem, 4.4vw, 3.8rem); overflow-wrap: anywhere; }
.anunt-loc { margin: 0; font-size: 17px; display: flex; align-items: flex-start; gap: 8px; }
.anunt-loc svg { flex-shrink: 0; margin-top: 3px; }
.anunt-pret { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 4px; }
.anunt-pret strong { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; }
.anunt-pret small { font: 500 18px var(--dau-font); letter-spacing: 0; color: var(--dau-muted); margin-left: 4px; }
.anunt-pret span { font-size: 16px; }

.anunt-cifre { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.anunt-cifre .dau-card { padding: 16px 18px; border-radius: 20px; }
.anunt-cifre .dau-eyebrow { font-size: 11px; }
.anunt-cifre .dau-display { font-size: 26px; margin-top: 6px; }

.anunt-h2 { font-size: clamp(1.6rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.anunt-descriere { font-size: 16px; line-height: 1.7; color: var(--dau-muted); max-width: 760px; overflow-wrap: anywhere; }
.anunt-tabel { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.anunt-tabel > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--dau-line); }
.anunt-tabel dd { margin: 0; font-weight: 600; text-align: right; }
.anunt-dotari { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.anunt-dotari .dau-chip { font-size: 14px; padding: 9px 14px; }
.anunt-dotari svg { color: var(--dau-brand); }

.anunt-harta { position: relative; height: 320px; border-radius: 28px; overflow: hidden; background: var(--dau-photo); border: 1px solid var(--dau-line); isolation: isolate; }
.anunt-harta__fundal { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); border: 0; filter: blur(5px) saturate(.9); pointer-events: none; z-index: -2; }
.anunt-harta__voal { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 46%, transparent 0 22%, color-mix(in srgb, var(--dau-bg) 18%, transparent) 60%), color-mix(in srgb, var(--dau-bg) 8%, transparent); }
:root[data-theme="dark"] .anunt-harta__voal { background: radial-gradient(circle at 50% 46%, rgba(6, 11, 20, .15) 0 22%, rgba(6, 11, 20, .55) 70%), rgba(6, 11, 20, .25); }
.anunt-harta__centru { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.anunt-harta__zona { position: absolute; left: 50%; top: 46%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%;
  background: color-mix(in srgb, var(--dau-accent) 16%, transparent); border: 2px solid color-mix(in srgb, var(--dau-accent) 45%, transparent); animation: anunt-zona 2.6s ease-out infinite; }
@keyframes anunt-zona { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.12); opacity: .55; } }
.anunt-harta__pin { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--dau-accent); color: var(--dau-on-accent); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--dau-accent) 80%, transparent); }
.anunt-harta__pin svg { transform: rotate(45deg); }
.anunt-harta__eticheta { position: relative; padding: 8px 16px; border-radius: 999px; background: var(--dau-surface); color: var(--dau-text); font: 700 16px var(--dau-font-display); box-shadow: var(--dau-shadow); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anunt-harta__buton { position: relative; gap: 8px; }
.anunt-harta__nota { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; }
.anunt-harta__nota svg { color: #1F9D55; flex: 0 0 auto; }
@media (max-width: 640px) { .anunt-harta { height: 280px; border-radius: 22px; } .anunt-harta__eticheta { white-space: normal; border-radius: 16px; line-height: 1.3; font-size: 15px; } .anunt-harta__zona { width: 150px; height: 150px; margin: -75px 0 0 -75px; } }
@media (prefers-reduced-motion: reduce) { .anunt-harta__zona { animation: none; } }

/* ---------- Cardul de contact ---------- */
.anunt-contact { border-radius: 32px; padding: 24px; box-shadow: var(--dau-shadow); display: flex; flex-direction: column; gap: 12px; }
.anunt-contact__cine { display: flex; align-items: center; gap: 14px; margin-bottom: 2px; }
.anunt-contact__cine > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.anunt-contact__nume { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
a.anunt-contact__nume { text-decoration: underline; text-underline-offset: 4px; }
.anunt-contact__cine .dau-muted { font-size: 14px; }
.anunt-contact .dau-btn { white-space: normal; text-align: center; }
.anunt-contact [data-telefon] { white-space: nowrap; padding: 0 14px; }
.anunt-contact [data-telefon] span { white-space: nowrap; }
.anunt-contact [data-telefon] small, .anunt-contact [data-telefon].is-aratat small { font: 500 13px var(--dau-font); opacity: .85; padding-left: 10px; margin-left: 2px; border-left: 1px solid currentColor; }
[data-telefon].is-aratat small { display: none; }
.anunt-contact__doua { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.anunt-contact__doua .dau-btn { min-height: 52px; padding: 0 10px; font-size: 14px; }
.anunt-contact__nota { margin: 0; font-size: 14px; }
.anunt-meta { margin: 0; font-size: 13px; }
.anunt-similare { margin-top: 56px; }

/* bara de contact de jos, pe telefon */
.anunt-bara { display: none; }

/* ---------- Formularele din ferestre ---------- */
.anunt-form { display: flex; flex-direction: column; gap: 16px; }
.anunt-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.anunt-form legend { padding: 0; font-weight: 700; margin-bottom: 8px; }
.anunt-form__nota { margin: 0; display: flex; gap: 10px; font-size: 14px; }
.anunt-form__nota svg { flex-shrink: 0; margin-top: 1px; }
.anunt-form__butoane { display: flex; gap: 8px; }
.anunt-form__butoane .dau-btn { flex: 1 1 0; min-height: 52px; }
.anunt-form__butoane .dau-btn--accent { flex: 2 1 0; }
.anunt-rezumat { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--dau-surface-2); }
.anunt-rezumat img, .anunt-rezumat > span:first-child { width: 64px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--dau-photo); display: flex; align-items: center; justify-content: center; color: var(--dau-muted); }
.anunt-rezumat > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.anunt-rezumat strong { font-weight: 600; line-height: 1.3; }
.anunt-rezumat .dau-muted { font-size: 14px; }

.anunt-optiuni { display: flex; flex-wrap: wrap; gap: 6px; }
.anunt-optiuni label { position: relative; cursor: pointer; }
.anunt-optiuni input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.anunt-optiuni span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dau-line); font-weight: 600; transition: background .2s, border-color .2s; }
.anunt-optiuni label:hover span { border-color: var(--dau-text); }
.anunt-optiuni input:checked + span { background: var(--dau-inverse); color: var(--dau-on-inverse); border-color: var(--dau-inverse); }
.anunt-optiuni input:focus-visible + span { outline: 2px solid var(--dau-brand); outline-offset: 2px; }
.anunt-optiuni--doua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.anunt-optiuni--doua span { min-height: 54px; }
.anunt-optiuni--zile { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.anunt-optiuni--zile label { flex: 0 0 72px; scroll-snap-align: start; }
.anunt-optiuni--zile span { flex-direction: column; min-height: 64px; padding: 0; border-radius: 18px; font-size: 14px; }
.anunt-optiuni--zile small { font-size: 12px; font-weight: 500; opacity: .75; }

.anunt-oferta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.anunt-oferta > div { padding: 16px; border-radius: 20px; background: var(--dau-surface-2); min-width: 0; }
.anunt-oferta .dau-eyebrow { font-size: 10px; }
.anunt-oferta .dau-display { font-size: clamp(20px, 5vw, 28px); margin-top: 8px; }
.anunt-oferta [data-oferta-diferenta].is-rau { color: var(--dau-accent); }
.anunt-oferta__camp { height: 60px; font-size: 22px; font-weight: 600; }

.anunt-distribuie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.anunt-distribuie .dau-btn { min-height: 52px; }
.anunt-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--dau-surface-2); }
.anunt-link span { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anunt-link .dau-btn { min-height: 44px; }

.anunt-video { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.anunt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tur virtual ---------- */
.anunt-tur { position: relative; height: min(56vh, 480px); min-height: 280px; border-radius: 24px; overflow: hidden; background: var(--dau-photo); cursor: grab; touch-action: none; user-select: none; }
.anunt-tur.is-tras { cursor: grabbing; }
.anunt-tur canvas { width: 100%; height: 100%; display: block; }
.anunt-tur__puncte { position: absolute; inset: 0; pointer-events: none; }
.anunt-tur__punct { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--dau-glass); color: var(--dau-text); font: 600 13px var(--dau-font); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--dau-shadow); white-space: nowrap; }
.anunt-tur__punct::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dau-accent); animation: anunt-puls 2s infinite; }
.anunt-tur__mesaj { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--dau-muted); pointer-events: none; }
.anunt-tur__mesaj[hidden] { display: none; }
.anunt-tur__camere { display: flex; flex-wrap: wrap; gap: 6px; }
.anunt-tur__camere:empty { display: none; }
.anunt-tur__camere .dau-btn { min-height: 44px; }
.anunt-tur__camere .dau-btn[aria-pressed="true"] { background: var(--dau-inverse); color: var(--dau-on-inverse); border-color: var(--dau-inverse); }

/* ---------- Galeria pe tot ecranul ---------- */
.anunt-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(6, 11, 20, .96); color: #fff; overflow: hidden; }
.anunt-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; animation: dau-modal-in .25s var(--dau-ease); }
.anunt-lb::backdrop { background: rgba(6, 11, 20, .9); }
.anunt-lb__sus { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.anunt-lb .dau-btn { background: rgba(255, 255, 255, .12); color: #fff; }
.anunt-lb .dau-btn:hover { background: rgba(255, 255, 255, .24); }
.anunt-lb .dau-btn:focus-visible { outline-color: #fff; }
.anunt-lb .dau-chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; font-size: 13px; padding: 6px 12px; }
.anunt-lb__sageata { margin: 0 12px; }
.anunt-lb__sageata[hidden] { display: none; }
.anunt-lb__scena { margin: 0; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 4px 0; }
.anunt-lb__scena img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.anunt-lb__benzi { grid-column: 1 / -1; display: flex; gap: 6px; padding: 12px 16px 16px; overflow-x: auto; justify-content: safe center; }
.anunt-lb__benzi button { flex: 0 0 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; opacity: .55; }
.anunt-lb__benzi button[aria-current="true"] { opacity: 1; border-color: #fff; }
.anunt-lb__benzi img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
  .anunt-lateral { position: static; flex-basis: 100%; }
  .anunt-continut { gap: 32px; }
  .anunt-galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .anunt-galerie::-webkit-scrollbar { display: none; }
  .anunt-galerie .anunt-galerie__foto, .anunt-galerie .anunt-galerie__foto:nth-child(n) { flex: 0 0 88%; height: 270px; border-radius: 24px; scroll-snap-align: center; }
  .anunt-galerie--1 .anunt-galerie__foto:nth-child(n) { flex-basis: 100%; }
  .anunt-galerie__gol { flex: 1 0 100%; height: 220px; }
  .anunt-galerie__butoane { display: none; }
  .anunt-butoane-mobil { display: flex; }
  .anunt-bara {
    position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--dau-glass); border-top: 1px solid var(--dau-line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .anunt-bara > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .anunt-bara strong { font: 800 19px var(--dau-font-display); white-space: nowrap; }
  .anunt-bara small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .anunt-bara .dau-btn { padding: 0 16px; }
  .anunt-lb__sageata { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; z-index: 2; }
  .anunt-lb__sageata--st { left: 8px; }
  .anunt-lb__sageata--dr { right: 8px; }
  .anunt-lb__scena { grid-column: 1 / -1; }
  .anunt-tur { height: 52vh; }
}
@media (min-width: 901px) { .anunt-butoane-mobil { display: none; } }
.anunt-butoane-mobil { flex-wrap: wrap; gap: 8px; }
.anunt-butoane-mobil .dau-btn { flex: 1 1 auto; min-height: 46px; }

@keyframes anunt-puls { 0% { box-shadow: 0 0 0 0 var(--dau-accent); } 100% { box-shadow: 0 0 0 22px transparent; } }
