:root {
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #dde3e8;
  --bg: #f6f7f8;
  --card: #ffffff;
  --accent: #0f5f73;
  --accent-ink: #ffffff;
  --warn: #8a4b08;
  --topbar-h: 56px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-family: var(--font);
  color: var(--ink);
}
* { box-sizing: border-box; }
/* Manrope παντού: και σε φόρμες, κουμπιά και στα αναδυόμενα του χάρτη (που έχουν δική τους γραμματοσειρά). */
button, input, select, textarea, .maplibregl-popup-content, .maplibregl-ctrl { font-family: var(--font); }
body { margin: 0; background: var(--bg); line-height: 1.5; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0.2em 0 0.3em; }
h2 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.muted { color: var(--muted); }

/* --- Πλαίσιο ------------------------------------------------------------ */
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--accent); }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--accent); }
.page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
.messages { max-width: 1080px; margin: 12px auto 0; padding: 0 16px; }
.msg { background: #e6f4ea; border: 1px solid #b7dfc3; padding: 10px 14px; border-radius: 8px; margin: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* --- Πλήρης χάρτης ------------------------------------------------------ */
body.fullmap { overflow: hidden; }
.mapwrap { display: flex; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
.sidebar { width: 340px; flex: none; overflow-y: auto; padding: 16px; background: var(--card); border-right: 1px solid var(--line); }
.sidebar h1 { font-size: 1.35rem; }
.lead { color: var(--muted); margin-top: 0; }
.map { flex: 1; min-width: 0; }
.field { display: block; font-size: 0.85rem; color: var(--muted); margin: 10px 0; }
.field select { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; color: var(--ink);
                border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.inview-title { font-size: 0.95rem; margin: 0; }
.btn-block { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; margin: 4px 0 6px; }
.small { font-size: 0.82rem; }
.filter { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.filter legend { font-weight: 700; font-size: 0.85rem; padding: 0; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: 0.82rem; border: 1px solid var(--line); background: #fff; color: var(--ink);
                border-radius: 999px; padding: 5px 10px; cursor: pointer; display: inline-flex; gap: 5px; align-items: baseline; }
.chips button b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips button:hover { border-color: var(--accent); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button.on b { color: #d8eef3; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; margin: 8px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.field select option[hidden] { display: none; }
.listhead { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.listhead input { width: 100%; margin-top: 8px; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff;
          box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.25); }
.inview { list-style: none; padding: 0; margin: 0; }
.inview li { border-top: 1px solid var(--line); }
.inview a { display: block; padding: 8px 2px; text-decoration: none; color: var(--ink); }
.inview a:hover { background: var(--bg); }
.inview strong { display: block; font-weight: 600; font-size: 0.92rem; }
.inview span { font-size: 0.82rem; color: var(--muted); }
.sidebar-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.sidebar-foot a { color: var(--muted); }

@media (max-width: 760px) {
  body.fullmap { overflow: auto; }
  .mapwrap { flex-direction: column-reverse; height: auto; }
  .map { height: 65vh; flex: none; }
  .sidebar { width: auto; border-right: 0; }
  .topbar nav { gap: 12px; }
  .brand { white-space: nowrap; }
  .brand span, .topbar nav a { font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* --- Αναδυόμενα του χάρτη ------------------------------------------------- */
.pop { font: 0.88rem/1.4 var(--font); }
.pop-title { font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin-bottom: 2px; }
.pop-addr { margin-bottom: 4px; }
.pop-meta { color: var(--muted); }
.pop-more { display: inline-block; margin-top: 6px; font-weight: 600; }

/* --- Σελίδα έργου -------------------------------------------------------- */
.proj-head .addr { font-size: 1.1rem; margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; font-size: 0.92rem; }
.badge { background: var(--accent); color: var(--accent-ink); padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.badge-preapproval { background: #b45309; }
.badge-demolition { background: #b91c1c; }
.notice { background: #fff4e5; border: 1px solid #f3d3a6; color: var(--warn); padding: 10px 14px; border-radius: 8px; }

.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 16px; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }

.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.figures > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.figures dt { font-size: 0.8rem; color: var(--muted); }
.figures dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.figures dd span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.figures small { color: var(--muted); font-size: 0.75rem; }

.desc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; }
.plain { padding-left: 1.1em; }
.acts, .projects { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; }
.acts th, .acts td, .projects th, .projects td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acts th, .projects th { font-size: 0.8rem; color: var(--muted); font-weight: 600; background: var(--bg); }
.projects td:nth-child(n+2):nth-child(-n+5) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.explain { margin-top: 20px; background: #eef5f7; border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 4px; font-size: 0.92rem; }

.minimap { height: 300px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.areamap { height: 380px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin: 16px 0; }
.cta { margin-top: 16px; background: var(--card); border: 1px dashed var(--accent); border-radius: 10px; padding: 14px; font-size: 0.92rem; }
.cta p { margin: 6px 0; }
.cta.wide { margin-top: 28px; }

.enrich { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; background: var(--card);
          border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 16px 0; }
.enrich img { width: 100%; height: 100%; object-fit: cover; display: block; }
.enrich > div { padding: 16px 18px 16px 0; }
.enrich h2 { margin-top: 4px; }
.enrich-by { font-size: 0.8rem; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.enrich-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .enrich { grid-template-columns: 1fr; } .enrich > div { padding: 0 16px 16px; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
       padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.removal { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.removal summary { cursor: pointer; font-weight: 600; }
.removal label { display: block; margin: 10px 0; font-size: 0.9rem; }
.removal select, .removal input, .removal textarea { display: block; width: 100%; max-width: 520px; margin-top: 4px; padding: 8px;
       font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.removal .errorlist { color: #b91c1c; margin: 0; padding-left: 1em; font-size: 0.85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Λίστες ----------------------------------------------------------------- */
.munilist { list-style: none; padding: 0; columns: 3 240px; column-gap: 24px; }
.munilist li { break-inside: avoid; padding: 4px 0; }
.munilist .n { display: inline-block; min-width: 2em; text-align: center; background: var(--accent); color: #fff;
               border-radius: 999px; font-size: 0.78rem; font-weight: 600; padding: 0 6px; }
.munilist .muted { font-size: 0.82rem; }
.prose { max-width: 720px; }
@media (max-width: 760px) {
  .projects thead { display: none; }
  .projects tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .projects td { display: inline-block; border: 0; padding: 2px 8px; }
  .projects td:first-child { display: block; }
}
