:root {
  --ink: #1f2a3c;
  --ink-2: #4a5568;
  --muted: #6b7280;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --alt: #f3ede5;
  --line: #e7dfd4;
  --accent: #a3283a;
  --accent-2: #86202f;
  --accent-soft: #f7e6e8;
  --gold: #c49a5a;
  --wa: #1f9d55;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 60, .06), 0 8px 24px rgba(31, 42, 60, .08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(163, 40, 58, .25); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-danger { background: #fff; color: #b42318; border-color: #f3c1bd; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 244, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font: 600 1.15rem/1.1 var(--serif); }
.logo-text small { display: block; font: 500 .72rem var(--sans); color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); background: radial-gradient(1000px 500px at 85% 20%, #f4e3dc 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 28px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero-facts strong { display: block; font: 600 1.6rem var(--serif); }
.hero-facts span { font-size: .85rem; color: var(--muted); }
.hero-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.arch { border-radius: 220px 220px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); border: 8px solid #fff; background: var(--alt); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.float-card { position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center; background: #fff; padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: var(--shadow); }
.float-card strong { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head.center { justify-content: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 .9rem var(--sans); padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px; text-align: center; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 42, 60, .06), 0 18px 40px rgba(31, 42, 60, .12); }
.card-link { text-decoration: none; display: block; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .75rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.tag-status { left: auto; right: 14px; background: var(--accent); color: #fff; }
.photo-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; background: rgba(20, 26, 38, .7); color: #fff; font-size: .75rem; font-weight: 500; padding: .35em .75em; border-radius: 999px; }
.card.is-sold .card-media img { filter: grayscale(.7) brightness(.9); }
.card-body { padding: 20px 22px 22px; }
.card-price { font: 600 1.45rem var(--serif); color: var(--accent); margin-bottom: 4px; }
.card-price small { font: 500 .85rem var(--sans); color: var(--muted); }
.card-title { font: 600 1.05rem/1.35 var(--sans); margin-bottom: 6px; }
.card-loc { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.card-meta { list-style: none; padding: 14px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.card-meta li { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { color: var(--gold); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.service > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.service p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); position: relative; }
.about-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(31, 42, 60, .25)); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-text > p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checks svg { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* company */
.company { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.company dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.company dl > div.wide { grid-column: span 3; }
.company dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); margin-bottom: 4px; }
.company dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: stretch; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; }
.contact-item > span { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item strong { font-weight: 600; }
a.contact-item:hover { outline: 2px solid var(--accent-soft); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); background: var(--alt); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* footer */
.site-footer { background: #151d2b; color: rgba(255, 255, 255, .8); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo-light .logo-mark { background: var(--accent); }
.logo-light .logo-text { color: #fff; }
.logo-light small { color: rgba(255, 255, 255, .6); }
.footer-legal { font-size: .85rem; margin-top: 16px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.mobile-bar { display: none; }

/* listing page */
.listing { padding: 28px 0 80px; }
.back { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; margin-bottom: 20px; }
.back:hover { color: var(--accent); }
.listing-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.listing-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.status-inline { color: #fff; background: var(--accent); padding: .2em .6em; border-radius: 6px; }
.gallery { display: grid; gap: 10px; margin-bottom: 36px; }
.gallery-main { position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb { flex: none; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--alt); opacity: .7; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--accent); }
.listing-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.listing-main h2 { font-size: 1.4rem; margin-top: 36px; }
.listing-main h2:first-of-type { margin-top: 28px; }
.prose { color: var(--ink-2); font-size: 1.02rem; }
.spec-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.spec-pills li { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: .6em 1em; border-radius: 12px; }
.spec-pills svg { color: var(--gold); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.features li { display: flex; gap: 10px; align-items: center; }
.features svg { color: var(--accent); }
.specs { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.listing-side { position: sticky; top: 92px; }
.price-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 12px; }
.price { font: 600 2rem var(--serif); color: var(--accent); }
.price small { font: 500 .9rem var(--sans); color: var(--muted); }
.ppm { margin: -8px 0 4px; color: var(--muted); font-size: .9rem; }
.agent-mini { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 4px; }
.agent-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.agent-mini small { display: block; color: var(--muted); font-size: .82rem; }
.side-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 18, .95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; color: rgba(255, 255, 255, .8); font-size: .9rem; }

/* admin */
.admin { background: #f5f3f0; }
.admin-bar { background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 12px; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions form { margin: 0; }
.admin-main { padding: 32px 0 80px; max-width: 980px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.panel h1 { font-size: 1.8rem; }
.login { max-width: 420px; margin: 40px auto; display: grid; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin: 0 0 16px; }
.alert-error { background: #fdecea; color: #8a1c14; }
.alert-ok { background: #e7f6ec; color: #17603a; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.admin-head p { margin: 0; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.admin-thumb { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--alt); display: grid; place-items: center; font-size: .75rem; color: var(--muted); text-decoration: none; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-info { display: grid; gap: 2px; min-width: 0; }
.admin-info a { text-decoration: none; }
.admin-info span { font-size: .85rem; }
.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-row-actions form, .status-form { margin: 0; }
.status-form select { padding: .45em .6em; border-radius: 8px; border: 1px solid var(--line); font: 500 .85rem var(--sans); }
.status-activ { background: #e7f6ec; }
.status-rezervat { background: #fff4db; }
.status-vandut { background: #f7e6e8; }
.status-ascuns { background: #eceff3; }

.admin-form { display: grid; gap: 24px; }
.admin-form h1 { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0; display: grid; gap: 16px; }
legend { font-weight: 600; padding: 0 8px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
input:not([type=checkbox]):not([type=file]), select, textarea { font: 400 1rem var(--sans); color: var(--ink); padding: .7em .9em; border: 1px solid #d9d2c7; border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dropzone { border: 2px dashed #d9c9b8; border-radius: 14px; padding: 28px; text-align: center; cursor: pointer; background: var(--bg); color: var(--ink); position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--muted); font-weight: 400; }
.preview, .img-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.preview:empty { display: none; }
.preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.img-manager li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: grab; }
.img-manager li.dragging { opacity: .4; }
.img-manager img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-manager .img-badge { display: none; position: absolute; top: 6px; left: 6px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.img-manager li:first-child .img-badge { display: block; }
.img-manager li.is-deleted img { opacity: .3; }
.img-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 4px; }
.img-tools button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 30px; height: 28px; cursor: pointer; font-size: 1.1rem; }
.img-del { display: flex; flex-direction: row; gap: 4px; align-items: center; font-size: .78rem; color: #b42318; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; position: sticky; bottom: 0; background: #fff; padding: 16px 0 4px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; gap: 28px; }
  .listing-side { position: static; }
  .company dl { grid-template-columns: repeat(2, 1fr); }
  .company dl > div.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  body:not(.admin) { padding-bottom: 76px; }
  .header-inner { height: 64px; }
  .header-call span { display: none; }
  .header-call { padding: .7em; }
  .logo-text small { display: none; }
  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(78%, 320px); }
  .float-card { left: 50%; transform: translateX(-50%); bottom: -20px; white-space: nowrap; }
  .hero-text { margin-top: 12px; }
  .about-photo { max-width: 360px; }
  .services { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .company dl { grid-template-columns: 1fr; }
  .company dl > div.wide { grid-column: auto; }
  .gallery-main { aspect-ratio: 4 / 3; margin-inline: -16px; border-radius: 0; }
  .listing-head { flex-direction: column; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mobile-bar .btn { flex: 1; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .admin-row { grid-template-columns: 72px 1fr; }
  .admin-thumb { width: 72px; height: 56px; }
  .status-form, .admin-row-actions { grid-column: 1 / -1; }
  .lightbox button.lb-prev, .lightbox button.lb-next { top: auto; bottom: 14px; transform: none; }
}

/* faq */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-card { margin-top: 32px; background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.faq-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 154, 90, .35), transparent 70%); }
.faq-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid rgba(255, 255, 255, .8); margin-bottom: 16px; }
.faq-card-title { font: 600 1.35rem var(--serif); margin: 0 0 6px; }
.faq-card-text { color: rgba(255, 255, 255, .72); font-size: .95rem; margin: 0 0 20px; }
.faq-card-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }

.faq-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 8px clamp(18px, 3vw, 32px) 12px; }
.faq-tabs { display: flex; gap: 6px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.faq-tab { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--sans); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: .65em 1.15em; cursor: pointer; transition: background .2s, color .2s; }
.faq-tab:hover { background: var(--alt); }
.faq-tab.is-active { background: var(--ink); color: #fff; }
.faq-tab svg { width: 1em; height: 1em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 1.05rem/1.45 var(--sans); color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .25s, border-color .25s, transform .3s; }
.faq-icon::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translate(-50%, -50%) rotate(45deg); transition: border-color .25s; }
.faq details[open] .faq-icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq details[open] .faq-icon::before { border-color: #fff; }
.faq-a { padding: 0 54px 24px 0; }
.faq-a p { margin: 0; color: var(--ink-2); line-height: 1.75; }
.faq details[open] .faq-a { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}
@media (max-width: 520px) {
  .faq-tabs { overflow-x: auto; }
  .faq-tab { white-space: nowrap; padding: .6em .95em; }
  .faq summary { font-size: 1rem; padding: 18px 0; }
  .faq-a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details[open] .faq-a { animation: none; }
  .faq-icon, .faq-icon::before { transition: none; }
}

/* admin profile + footer login link */
.admin-link { color: rgba(255, 255, 255, .4); text-decoration: none; }
.admin-link:hover { color: #fff; }
.admin-actions { flex-wrap: wrap; justify-content: flex-end; }
.profile-photo { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.profile-photo + .profile-photo { border-top: 1px solid var(--line); padding-top: 16px; }
.profile-photo p { margin: 4px 0 12px; font-size: .9rem; }
.profile-current { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 12px; background: var(--alt); }
.dropzone-sm { padding: 14px; }
@media (max-width: 760px) {
  .profile-photo { grid-template-columns: 96px 1fr; gap: 14px; }
  .profile-current { width: 96px; }
  .admin-bar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
}

/* process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 1.35rem var(--serif); box-shadow: 0 0 0 8px var(--bg), 0 8px 20px rgba(163, 40, 58, .25); }
.step p { color: var(--ink-2); font-size: .95rem; max-width: 30ch; margin: 0 auto; }
.steps-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
}

/* company profile (inspired by the "Firmă de Încredere" profile layout) */
.company-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.company-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); border-top: 4px solid var(--gold); }
.company-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.company-head h2 { font-size: 1.5rem; margin: 0 0 2px; }
.company-badge { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #e7f6ec; color: #17603a; display: grid; place-items: center; }
.company-badge svg { width: 24px; height: 24px; }
.company-verified { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 500; color: #17603a; }
.company-table { margin: 0; }
.company-table > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.company-table > div:last-child { border-bottom: 0; }
.company-table dt { color: var(--muted); }
.company-table dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.company-table a { color: var(--accent); text-decoration: none; }
.company-text > p { color: var(--ink-2); }
@media (max-width: 900px) { .company-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .company-table > div { grid-template-columns: 1fr; gap: 2px; } }

/* responsive safety: let grid/flex children shrink below their content width on small phones */
.hero-inner > *, .about > *, .contact > *, .listing-grid > *, .faq-wrap > *, .company-wrap > *, .admin-row > * { min-width: 0; }
fieldset { min-width: 0; }
@media (max-width: 400px) {
  .faq-card { padding: 22px 18px; }
  .faq-card-actions .btn { flex: 1 1 100%; }
  .row3 { grid-template-columns: 1fr; }
  .panel { padding: 18px 14px; }
  fieldset { padding: 14px 12px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .img-manager { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { gap: 18px; }
  .hero-facts strong { font-size: 1.35rem; }
}
.contact-item > div { min-width: 0; }
.contact-item strong { overflow-wrap: anywhere; }
.admin-form > *, .admin-main > * { min-width: 0; }
@media (max-width: 400px) {
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; }
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .faq-tabs { overflow: visible; gap: 4px; }
  .faq-tab { flex: 1 1 0; justify-content: center; white-space: normal; text-align: center; padding: .6em .5em; font-size: .86rem; }
  .faq-tab svg { display: none; }
}

/* ---- compact images ---- */
/* listing gallery: one large photo + up to 4 small ones, no black bars */
.gallery-grid { display: grid; gap: 8px; height: 440px; border-radius: var(--radius); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-tile { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--alt); overflow: hidden; min-height: 0; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.gallery-tile:hover img { transform: scale(1.03); filter: brightness(.95); }
.gallery-grid .gallery-main { grid-row: 1 / 3; aspect-ratio: auto; border-radius: 0; background: var(--alt); }
.gallery-grid .gallery-main img { object-fit: cover; }
.gallery-n1 .gallery-grid { grid-template-columns: 1fr; height: 420px; max-width: 760px; }
.gallery-n2 .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery-n3 .gallery-grid { grid-template-columns: 2fr 1fr; }
.gallery-n4 .gallery-grid { grid-template-columns: 2fr 1fr 1fr; }
.gallery-n4 .gallery-side:last-child { grid-column: 2 / 4; }
.gallery .thumbs { display: none; }
.photo-count { cursor: pointer; }
@media (max-width: 760px) {
  .gallery-grid { display: block; height: auto; margin-inline: -16px; border-radius: 0; }
  .gallery-grid .gallery-main { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 320px; }
  .gallery-side { display: none; }
  .gallery .thumbs { display: flex; }
  .thumb { width: 72px; height: 54px; }
}

/* portraits: smaller */
.hero-photo { width: min(100%, 340px); }
.about { grid-template-columns: 340px 1fr; }
.about-photo { max-width: 340px; }
.card-media { aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .hero-photo { width: min(62%, 230px); }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; margin-inline: auto; }
  .card-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) { .gallery-grid .gallery-main { margin-inline: 0; } }
@media (max-width: 760px) { .about-photo { width: 100%; } }

/* ---- even more compact images ---- */
.hero-photo { width: min(100%, 270px); }
.about { grid-template-columns: 260px 1fr; align-items: start; }
.about-photo { max-width: 260px; }
.gallery-grid { height: 340px; }
.gallery-n1 .gallery-grid { height: 340px; max-width: 600px; }
.card-media { aspect-ratio: 16 / 10; }
@media (max-width: 760px) {
  .hero-photo { width: min(46%, 170px); }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; bottom: -14px; }
  .float-icon { width: 30px; height: 30px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 180px; }
  .gallery-grid .gallery-main { aspect-ratio: 16 / 10; max-height: 240px; }
  .card-media { aspect-ratio: 2 / 1; }
}
@media (max-width: 760px) { .hero-photo { width: auto; } .hero-photo .arch { width: 170px; margin-inline: auto; } .float-card { position: relative; left: auto; bottom: auto; transform: none; margin: -16px auto 0; width: max-content; max-width: 100%; } }

/* ---- homepage: a single, very small portrait ---- */
.hero-inner { grid-template-columns: 1fr; max-width: 820px; }
.hero-agent { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.hero-agent strong { display: block; font-size: .98rem; line-height: 1.2; }
.hero-agent small { display: block; color: var(--muted); font-size: .8rem; }
.about { grid-template-columns: 1fr; max-width: 820px; }
.exp-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .92rem; padding: .5em 1em; border-radius: 999px; }
@media (max-width: 760px) {
  .hero-agent { padding-right: 14px; }
  .hero-agent img { width: 48px; height: 48px; }
  .hero-agent small { font-size: .75rem; }
}

/* 8 service cards: compact on phones */
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service { padding: 16px 14px; }
  .service > svg { width: 36px; height: 36px; padding: 8px; margin-bottom: 10px; }
  .service h3 { font-size: 1.02rem; }
  .service p { font-size: .85rem; line-height: 1.5; }
}
@media (max-width: 359px) { .services { grid-template-columns: 1fr; } }

/* map loaded on demand */
.map-consent { display: grid; place-items: center; }
.map-placeholder { text-align: center; padding: 28px; max-width: 360px; display: grid; gap: 10px; justify-items: center; }
.map-placeholder > svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.map-placeholder p { margin: 0; }
.map-placeholder small { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.map-placeholder small a { color: var(--accent); }

/* privacy page */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 28px; }
.legal p { color: var(--ink-2); }
.legal a { color: var(--accent); }
