/* Ανάθεση ακινήτου (el/en) — /assign, /en/assign */

.assign-page [hidden] { display: none !important; }

/* ---------------- Hero ---------------- */
.as-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.as-hero .breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.as-hero .breadcrumb li + li::before { content: "/"; opacity: .5; }
.as-hero .breadcrumb a { display: inline-flex; align-items: center; padding-block: 12px; margin-block: -12px; }
.as-hero h1 { margin-bottom: 12px; }
.page-hero .as-hero-lead { font-size: var(--fs-md); color: #D7DEE5; max-width: 56ch; }
.as-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; padding: 0; }
.as-trust li { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.as-trust .i { color: #F2B79B; }

/* ---------------- Layout: stepper + φόρμα ---------------- */
.as-layout { display: grid; gap: 20px; max-width: 1200px; padding-block: 0 clamp(56px, 6vw, 96px); }
@media (min-width: 1024px) {
  .as-layout { grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: clamp(32px, 4vw, 56px); }
}

/* Πάνελ προόδου (desktop: sticky στήλη) */
.as-aside { align-self: start; }
.as-panel { position: relative; padding: 22px 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.as-now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.as-meter { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 72px; height: 72px; }
.as-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.as-ring circle { fill: none; stroke-width: 6; }
.as-ring-track { stroke: var(--bg-deep); }
.as-ring-fill { stroke: var(--terra); stroke-linecap: round; stroke-dasharray: 175.93; stroke-dashoffset: 175.93; transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
.as-pct { position: relative; font-size: var(--fs-sm); font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.as-current { display: grid; gap: 2px; min-width: 0; margin: 0; }
.as-current small { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-ink); }
.as-current strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; color: var(--navy-900); }
.as-bar { display: none; }

.as-steps { list-style: none; display: grid; gap: 2px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.as-step { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); transition: background var(--dur-fast), color var(--dur-fast); }
.as-step:hover { background: var(--bg); color: var(--navy-900); }
.as-step-n { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); font-size: 12px; font-weight: 800; color: var(--muted); transition: background var(--dur), border-color var(--dur), color var(--dur); }
.as-step-n .i { display: none; width: 15px; height: 15px; stroke-width: 2.5; }
.as-step[aria-current="step"] { background: var(--terra-soft); color: var(--navy-900); }
.as-step[aria-current="step"] .as-step-n { border-color: var(--terra); color: var(--terra-ink); }
.as-step.is-done .as-step-n { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.as-step.is-done .as-step-n span { display: none; }
.as-step.is-done .as-step-n .i { display: block; }

.as-saved { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.as-saved .i { width: 16px; height: 16px; margin-top: 1px; color: var(--success); }
.as-saved.is-fresh .i { animation: as-pop 600ms var(--ease-out); }
@keyframes as-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.2); } 100% { transform: none; } }
.as-help { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.as-help a { color: var(--terra-ink); font-weight: 700; white-space: nowrap; }

@media (min-width: 1024px) {
  .as-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* Κινητό/tablet: συμπαγής sticky μπάρα κάτω από το μενού */
@media (max-width: 1023px) {
  html { scroll-padding-top: calc(var(--nav-h) + 84px); }
  .as-aside { position: sticky; top: var(--nav-h); z-index: var(--z-sticky); margin-inline: calc(var(--gutter) * -1); }
  .as-panel { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); border-width: 0 0 1px; border-radius: 0; background: var(--card); box-shadow: 0 10px 24px -18px rgba(16, 38, 59, .45); }
  .as-now { flex: 1; gap: 12px; }
  .as-meter { width: 46px; height: 46px; }
  .as-pct { font-size: 11px; }
  .as-current small { font-size: 11px; }
  .as-current strong { overflow: hidden; font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; }
  .as-bar { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
  .as-bar span { display: block; width: 0; height: 100%; background: var(--terra); transition: width var(--dur-slow) var(--ease-out); }
  .as-steps, .as-help { display: none; }
  .as-saved { flex-shrink: 0; margin: 0; padding: 0; border: 0; }
  .as-saved:not(.is-saved) { display: none; }
  .as-saved .i { width: 20px; height: 20px; margin: 0; }
  .as-saved span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------- Φόρμα & κάρτες ενοτήτων ---------------- */
.as-form { display: grid; gap: 20px; min-width: 0; }
.as-required-note { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.as-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.as-sec:focus { outline: none; }
.as-sec-head { display: flex; align-items: flex-start; gap: 18px; padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 36px) 0; }
.as-sec-num { min-width: 1.4em; font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--terra-ink); }
.as-sec-step { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.as-sec-head h2 { margin: 0; font-size: var(--fs-xl); }
.as-sec-sub { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.as-sec-body { display: grid; gap: 26px; padding: 24px clamp(18px, 3vw, 36px) clamp(24px, 3vw, 36px); }
@media (max-width: 639px) { .as-sec-num { display: none; } }

.as-fs { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.as-fs legend { padding: 0; margin-bottom: 12px; }
.as-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .as-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field-error .i { flex-shrink: 0; }
.as-hint { display: flex; align-items: flex-start; gap: 8px; }
.as-hint .i { width: 16px; height: 16px; margin-top: 2px; color: var(--navy-300); }

/* Συναλλαγή: μεγάλο segmented control */
.seg-lg { display: flex; width: 100%; max-width: 480px; }
.seg-lg label { flex: 1; min-height: 52px; font-size: var(--fs-base); }
.seg-lg label:has(input:checked) { background: var(--navy-900); color: #fff; }
.seg-lg label:has(input:checked) .i { color: #F2B79B; }
.as-fs.is-invalid .seg { border-color: var(--danger); }

/* Είδος ακινήτου: tiles */
.as-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .as-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.as-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 124px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast); }
.as-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.as-tile-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-ink); transition: background var(--dur), color var(--dur); }
.as-tile-name { padding-right: 22px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; color: var(--navy-900); }
.as-tile-check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: transparent; pointer-events: none; }
.as-tile-check .i { width: 14px; height: 14px; stroke-width: 2.6; }
.as-tile:hover { border-color: var(--navy-300); }
.as-tile:has(input:checked) { border-color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--navy-900); background: #FDFCFA; }
.as-tile:has(input:checked) .as-tile-icon { background: var(--navy-900); color: #fff; }
.as-tile:has(input:checked) .as-tile-check { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.as-tile:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 3px; }
.as-fs.is-invalid .as-tile { border-color: #E2B3AF; }

/* Χαρακτηριστικά: toggle pills */
.as-group { display: grid; gap: 12px; }
.as-group-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); }
.as-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--card); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--navy-900); cursor: pointer; user-select: none; transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.as-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.as-chip .i { width: 16px; height: 16px; color: var(--navy-300); }
.as-chip .as-on { display: none; }
.as-chip:hover { border-color: var(--navy-900); }
.as-chip:has(input:checked) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.as-chip:has(input:checked) .as-on { display: block; color: #F2B79B; }
.as-chip:has(input:checked) .as-off { display: none; }
.as-chip:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Χάρτης */
.as-map-search { display: flex; gap: 8px; }
.as-map-search .input { flex: 1; min-width: 0; }
@media (max-width: 479px) { .as-map-search { flex-wrap: wrap; } .as-map-search .btn { flex: 1 1 100%; } }
.as-map-msg { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--navy-700); }
.as-map-msg:empty { display: none; }
.as-map { height: clamp(280px, 38vw, 380px); margin-top: 4px; }
#locationMap { position: absolute; inset: 0; z-index: 1; }
.map-frame.as-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; }
.as-map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Φωτογραφίες */
.as-drop { position: relative; display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 4vw, 44px) 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg); text-align: center; transition: border-color var(--dur-fast), background var(--dur-fast); }
.as-drop.is-drag { border-color: var(--terra); background: var(--terra-soft); }
.as-drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--terra-ink); box-shadow: var(--shadow-sm); }
.as-drop-title { margin: 0; font-weight: 700; color: var(--navy-900); }
.as-drop .field-hint { max-width: 54ch; }
.as-drop .btn { cursor: pointer; }
.as-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.as-drop:has(.as-file:focus-visible) .btn { outline: 2px solid var(--ring); outline-offset: 3px; }
.drop-touch { display: none; }
@media (hover: none), (pointer: coarse) { .drop-fine { display: none; } .drop-touch { display: inline; } }
.as-photo-count { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-900); }
.as-photos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.as-photo { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.as-photo.is-big { border-color: #E3C58A; }
.as-photo-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-deep); }
.as-photo-media img { width: 100%; height: 100%; object-fit: cover; }
.as-photo-media img.is-broken { visibility: hidden; }
.as-photo-cover { position: absolute; left: 8px; bottom: 8px; height: 24px; padding: 0 10px; font-size: 10.5px; }
.as-photo-remove { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(11, 27, 43, .72); color: #fff; transition: background var(--dur-fast); }
.as-photo-remove:hover { background: var(--danger); }
.as-photo-remove .i { width: 18px; height: 18px; }
.as-photo-bar { display: flex; align-items: center; gap: 2px; padding: 2px; }
.as-photo-bar button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: none; color: var(--navy-900); }
.as-photo-bar button:hover:not(:disabled) { background: var(--bg); }
.as-photo-bar button:disabled { color: var(--line-strong); cursor: default; }
.as-photo-name { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.as-photo-warn { display: flex; gap: 6px; margin: 0; padding: 0 10px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--warning); }
.as-photo-warn .i { flex-shrink: 0; margin-top: 1px; }

/* ---------------- Έλεγχος στοιχείων ---------------- */
.as-review { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
.rv-group { padding: 16px 18px; }
.rv-group + .rv-group { border-top: 1px solid var(--line); }
.rv-group:nth-child(even) { background: #FCFAF7; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rv-head h3 { margin: 0; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 800; color: var(--navy-900); }
.rv-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-block: -10px; font-size: var(--fs-xs); font-weight: 700; color: var(--terra-ink); text-decoration: none; }
.rv-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-list { display: grid; gap: 0 28px; margin: 0; }
@media (min-width: 640px) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rv-row dt { flex-shrink: 0; max-width: 55%; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.rv-row dd { margin: 0; min-width: 0; font-size: var(--fs-sm); font-weight: 700; text-align: right; overflow-wrap: anywhere; color: var(--navy-900); }
.rv-row.is-wide { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 4px; }
.rv-row.is-wide dt { max-width: none; }
.rv-row.is-wide dd { text-align: left; }
.rv-list > .rv-row:last-child { border-bottom: 0; }
.rv-empty { font-weight: 500; color: var(--muted); }
.rv-missing { color: var(--danger); }
.rv-desc { display: block; font-weight: 500; white-space: pre-line; color: var(--text); }
.rv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; }
.rv-chips li { padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); font-size: 12px; font-weight: 700; }
.rv-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-thumbs img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--bg-deep); }

/* ---------------- Συναίνεση & αποστολή ---------------- */
.as-consent-box { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-sm); line-height: 1.65; cursor: pointer; }
.as-consent-box input { flex-shrink: 0; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--terra-ink); cursor: pointer; }
.as-consent-box a { color: var(--terra-ink); font-weight: 700; }
.as-consent.is-invalid .as-consent-box { border-color: var(--danger); background: var(--danger-bg); }
.as-consent .field-error { margin-top: 8px; }
.as-submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.as-submit-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.as-submit-note .i { color: var(--success); }
.as-submit.is-loading[disabled] { opacity: 1; cursor: progress; }
.as-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: as-spin .8s linear infinite; }
.as-submit.is-loading .as-spinner { display: block; }
.as-submit.is-loading .i { display: none; }
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (max-width: 639px) {
  .as-submit-row { flex-direction: column-reverse; align-items: stretch; }
  .as-submit { width: 100%; white-space: normal; text-align: center; }
}

/* ---------------- Πρόχειρο & σύνοψη σφαλμάτων ---------------- */
.as-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--terra-tint); border-radius: var(--r-md); background: var(--terra-soft); }
.as-draft-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--card); color: var(--terra-ink); }
.as-draft p { flex: 1 1 220px; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.as-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.as-draft .btn { min-height: 44px; }

.as-summary { padding: 18px 20px; border: 1px solid #EBC3C0; border-left: 4px solid var(--danger); border-radius: var(--r-md); background: var(--danger-bg); }
.as-summary:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.as-summary h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--font-body); font-size: var(--fs-base); font-weight: 800; color: var(--danger); }
.as-summary p { margin: 0 0 8px; font-size: var(--fs-sm); }
.as-summary ul { display: grid; margin: 0; padding-left: 20px; }
.as-summary a { display: block; padding: 10px 0; font-size: var(--fs-sm); font-weight: 700; color: var(--danger); text-underline-offset: 3px; }

/* ---------------- Modal αποτελέσματος ---------------- */
.modal-body p { margin: 0; color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
