/* Commissioner (τοπικά, χωρίς σύνδεση στη Google) */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/commissioner-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/commissioner-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/commissioner-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --surface: #FFFFFF;
  --surface2: #F4F1EA;
  --outside: #E9E5DB;
  --text2: #3B3830;
  --accent: #1F5C4A;
  --primary: #1F5C4A;
  --primary-ink: #FFFFFF;
  --header-line: #E6E0D3;
  --tint1: #D7E4DC; --tint2: #E8DFCF; --tint3: #DCE3EC; --tint4: #EFE0DA;
  --c-blue: #3B6EA8; --c-amber: #B07A12; --c-rose: #A8506A; --c-teal: #1F7A6D;
  --ground: #F4F1EA;
  --ink: #18201F;
  --muted: #5E594F;
  --muted2: #6B665C;
  --line: #EEE9DE;
  --border: #D8D2C4;
  --green: #1F5C4A;
  --green-dark: #123A2F;
  --green-soft: #E4EEE8;
  --amber: #8A5A12;
  --amber-soft: #F8EBCB;
  --amber-ink: #5E4205;
  --red: #9A3B24;
  --red-soft: #F6E4DE;
  --red-ink: #7A2A1D;
  --shadow: 0 1px 2px rgba(24,32,31,0.06), 0 6px 20px rgba(24,32,31,0.05);
  --serif: 'Noto Serif', Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1C2321; --surface2: #242C29; --outside: #0E1211; --ground: #151A18;
  --ink: #ECE8DF; --muted: #B3AC9F; --muted2: #A7A093; --text2: #D6D1C6;
  --line: #2E3734; --border: #3D4844; --header-line: #2A3330;
  --green: #5FB596; --accent: #7CCBAE; --primary: #2E7B62; --primary-ink: #FFFFFF;
  --green-dark: #C4EAD9; --green-soft: #1F3A31;
  --amber: #E5B867; --amber-soft: #3A2F18; --amber-ink: #F3DDAE;
  --red: #EE9A85; --red-soft: #3D2420; --red-ink: #F5C2B5;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 6px 20px rgba(0,0,0,0.25);
  --tint1: #22362F; --tint2: #3A3227; --tint3: #263041; --tint4: #3B2A27;
  --c-blue: #6FA3DB; --c-amber: #E0AE4F; --c-rose: #E08AA3; --c-teal: #5CC3B1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--outside); }
body { color: var(--ink); font-family: Commissioner, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #7FB3A0; outline-offset: 2px; }

.app { max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; background: var(--ground); overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.06); }

.header { padding: calc(14px + env(safe-area-inset-top)) 16px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 var(--header-line); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo.big { width: 52px; height: 52px; border-radius: 16px; }
.brand-name { flex: 1; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.chip.paid { background: var(--primary); color: var(--primary-ink); border: 0; }
.avatar-btn { width: 40px; height: 40px; border-radius: 20px; border: 0; color: #fff; font-size: 13px; font-weight: 700; }

.seg { display: flex; gap: 4px; background: var(--ground); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(24,32,31,0.15); }

.content > * { flex-shrink: 0; }
.content { flex: 1; min-height: 0; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 14px; -webkit-overflow-scrolling: touch; }

.h1 { margin: 8px 0 0; font-family: var(--serif); font-size: 32px; line-height: 1.15; font-weight: 700; }
.h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.sub { font-size: 13px; color: var(--muted2); margin-top: -6px; }
.lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted2); text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted2); line-height: 1.5; }
.t13 { font-size: 13px; }
.t14 { font-size: 14px; line-height: 1.45; }
.b { font-weight: 700; }
.center { text-align: center; }

.card { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card.flat { box-shadow: 0 1px 2px rgba(24,32,31,0.06); padding: 12px 16px; }
.card.nopad { padding: 0; overflow: hidden; gap: 0; }
.card.hero { background: var(--primary); color: #fff; border-radius: 24px; padding: 20px; flex-direction: row; align-items: center; gap: 14px; }
.card.hero .sub2 { font-size: 13px; color: #D5E5DC; }
.card.plan-paid { border: 2px solid var(--accent); box-shadow: 0 8px 28px rgba(31,92,74,0.14); border-radius: 22px; }
.dashed { padding: 16px; border-radius: 20px; border: 1px dashed var(--border); font-size: 14px; color: var(--muted); line-height: 1.45; }

.row { display: flex; gap: 8px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: 14px; background: var(--ground); }
.grow { flex: 1; min-width: 0; }

.btn { min-height: 46px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border: 0; }
.btn.outline { border: 1px solid var(--accent); color: var(--accent); }
.btn.danger { border: 1px solid var(--red); color: var(--red); }
.btn.danger-fill { background: var(--red); color: #fff; border: 0; }
.btn.big { min-height: 52px; font-size: 16px; font-weight: 700; border-radius: 16px; }
.btn.sm { min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; border: 0; }
.btn.back { align-self: flex-start; font-size: 14px; }
.flex1 { flex: 1; }
.link { min-height: 32px; padding: 0; border: 0; background: none; color: var(--muted2); font-size: 12px; text-decoration: underline; }
.link.green { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.link.strong { min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 600; align-self: flex-start; }

.note { padding: 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.note.ok { background: var(--green-soft); color: var(--green-dark); }
.note.warn { background: var(--amber-soft); color: var(--amber-ink); }
.note.err { background: var(--red-soft); color: var(--red-ink); }
.note.lock { background: var(--ground); color: var(--muted); display: flex; gap: 8px; align-items: center; }

.pill { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.none { background: var(--line); color: var(--muted); }
.pill.pending { background: var(--amber-soft); color: var(--amber-ink); }
.pill.approved { background: var(--green-soft); color: var(--green-dark); }
.pill.rejected { background: var(--red-soft); color: var(--red-ink); }

.photo { height: 140px; position: relative; display: flex; align-items: center; justify-content: center; }
.photo.sm { height: 120px; }
.photo.lg { height: 150px; }
.tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); z-index: 2; font-size: 12px; font-weight: 700; }
.tag.right { left: auto; right: 12px; top: auto; bottom: 12px; background: var(--primary); color: #fff; font-weight: 600; }
.listing { text-align: left; background: var(--surface); border: 0; border-radius: 20px; padding: 0; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); width: 100%; }
.listing .body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.title17 { font-size: 17px; font-weight: 700; }
.green-t { color: var(--accent); font-weight: 600; }
.star { color: var(--amber); font-weight: 700; }

.avatar { width: 44px; height: 44px; border-radius: 22px; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.avatar.xl { width: 60px; height: 60px; border-radius: 30px; background: #fff; color: #1F5C4A; font-size: 20px; }

.review { font-size: 13px; line-height: 1.45; padding-top: 10px; border-top: 1px solid var(--line); }
.review .text { color: var(--text2); }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.timeline-item .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--green); margin-top: 5px; flex-shrink: 0; }
.timeline-item .date { color: var(--muted2); font-size: 13px; white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span:first-child { color: var(--muted); }

.role-card { text-align: left; padding: 14px 16px; border-radius: 18px; color: var(--ink); background: var(--surface); border: 2px solid var(--surface); width: 100%; }
.role-card.on { background: var(--green-soft); border-color: var(--accent); }
.role-card .t { display: block; font-size: 16px; font-weight: 600; }
.role-card .d { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }
.req { color: var(--red); }

.feature { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.feature svg { flex-shrink: 0; margin-top: 1px; }
.current { text-align: center; padding: 12px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: 14px; font-weight: 700; }
.point { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--text2); }
.point::before { content: '·'; color: var(--accent); font-weight: 700; }

.stars { display: flex; gap: 6px; }
.stars button { flex: 1; min-height: 46px; border: 1px solid var(--amber); border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 15px; font-weight: 700; }

.tabs { display: flex; gap: 4px; background: var(--surface); padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--header-line); }
.tabs button { flex: 1; min-height: 48px; border: 0; border-radius: 14px; font-size: 12px; font-weight: 600; background: transparent; color: var(--accent); }
.tabs button.on { background: var(--primary); color: #fff; font-weight: 700; }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; padding: 4px 0 8px; }
.footer-links a { font-size: 12px; color: var(--muted2); }
.card a { color: var(--accent); font-weight: 600; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.chip-opt.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; color: var(--ink); background: var(--surface); width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.match { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.match.yes { background: var(--green-soft); color: var(--green-dark); }
.match.no { background: var(--line); color: var(--muted); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F5C4A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* ---------- Tablet & desktop ---------- */
.listing-grid, .form-grid { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) {
  html, body { background: var(--ground); }
  .app { max-width: none; box-shadow: none; }
  .app.has-nav { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .header { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; padding: calc(16px + env(safe-area-inset-top)) 32px 16px; }
  .header .brand { flex: 1; order: 0; }
  .header .seg { order: 0; width: 400px; flex-shrink: 0; }
  .brand-name { font-size: 24px; }
  .tabs { grid-column: 1; grid-row: 2; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 24px 16px; box-shadow: 1px 0 0 var(--header-line); }
  .tabs button { flex: 0 0 auto; min-height: 50px; text-align: left; padding: 0 18px; font-size: 15px; }
  .content { grid-column: 2; grid-row: 2; padding: 32px max(32px, calc((100% - 880px) / 2)) 48px; gap: 18px; }
  .app:not(.has-nav) .content { padding-inline: max(32px, calc((100% - 680px) / 2)); }
  .h1 { font-size: 44px; }
  .h2 { font-size: 34px; }
  .lead { font-size: 17px; }
  .listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .photo { height: 200px; }
  .photo.sm { height: 180px; }
  .photo.lg { height: 300px; }
  .listing { height: 100%; }
  .card { padding: 20px; }
  .card.hero { padding: 28px; }
}
@media (min-width: 1200px) {
  .app.has-nav { grid-template-columns: 260px minmax(0, 1fr); }
  .content { padding-inline: max(48px, calc((100% - 1040px) / 2)); }
}

/* ---------- Νέα στοιχεία ---------- */
.photo { color: var(--accent); }
.tag.ghost { background: rgba(0,0,0,0.55); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.feature svg { color: var(--accent); }
.small-seg { max-width: 260px; }
.small-seg button { min-height: 38px; }
.tint1 { background: var(--tint1); } .tint2 { background: var(--tint2); } .tint3 { background: var(--tint3); } .tint4 { background: var(--tint4); }

/* Carousel */
.carousel-wrap { position: relative; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; height: 200px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent); }
.slide-cap { font-weight: 700; font-size: 15px; color: var(--ink); }
.slide-ph { font-size: 11px; color: var(--muted2); letter-spacing: 0.04em; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.dot-btn { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.dot-btn::after { content: ''; width: 7px; height: 7px; border-radius: 4px; background: rgba(0,0,0,0.25); transition: width .2s; }
.dot-btn.on::after { width: 18px; background: var(--accent); }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: var(--shadow); z-index: 2; display: none; }
.car-nav.prev { left: 10px; } .car-nav.next { right: 10px; }
@media (hover: hover) { .carousel-wrap:hover .car-nav { display: block; } }

/* Ποσοστό ταιριάσματος */
.ring-pos { position: absolute; right: 12px; top: 12px; z-index: 2; }
.pct-ring { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--pct), var(--line) 0); box-shadow: var(--shadow); }
.pct-ring > span { width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--ink); }

/* Δακτύλιος εμπιστοσύνης */
.trust-ring { flex-shrink: 0; border-radius: 50%; padding: 4px; background: conic-gradient(var(--accent) var(--pct), var(--line) 0); display: flex; align-items: center; justify-content: center; }
.trust-ring .avatar { box-shadow: 0 0 0 2px var(--surface); }
.hero-ring { --line: rgba(255,255,255,0.25); --accent: #FFFFFF; width: 70px; height: 70px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tb { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.tb.ok { background: var(--green-soft); color: var(--green-dark); }
.tb.no { background: var(--line); color: var(--muted); }

/* Χρονολόγιο */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--line); }
.tl-icon { width: 36px; height: 36px; border-radius: 18px; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tl-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ba-tile { height: 72px; border-radius: 12px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.ba-tile span { position: absolute; left: 8px; top: 6px; font-size: 11px; font-weight: 700; color: var(--ink); }

/* Χάρτης */
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.map { height: 60vh; min-height: 320px; background: var(--tint1); }
.map-err { padding: 24px; color: var(--muted); font-size: 14px; }
.pin-wrap { background: none; border: 0; }
.pin { position: relative; display: inline-block; padding: 7px 10px; border-radius: 12px; font: 700 13px Commissioner, system-ui, sans-serif; color: #fff; background: #1F5C4A; box-shadow: 0 3px 10px rgba(0,0,0,0.3); white-space: nowrap; cursor: pointer; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #1F5C4A; }
.pin.meh { background: #6B665C; } .pin.meh::after { border-top-color: #6B665C; }
html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
html[data-theme="dark"] .leaflet-control-attribution { background: rgba(28,35,33,0.8); color: #B3AC9F; }

/* Ξεκλείδωμα */
.unlock-toast { position: fixed; left: 50%; top: calc(20px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 9999; display: flex; gap: 14px; align-items: center; width: min(440px, calc(100% - 32px)); padding: 14px 18px; border-radius: 20px; background: #123A2F; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,0.3); animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2) both; }
.unlock-toast.out { animation: toast-out .4s ease both; }
.unlock-icon { width: 54px; height: 54px; border-radius: 27px; background: #2E7B62; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: glow 1.2s ease .5s both; }
.unlock-icon .shackle { transform-origin: 16px 11px; animation: shackle .7s cubic-bezier(.3,1.6,.5,1) .35s both; }
.unlock-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.unlock-text b { font-size: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -24px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes shackle { 0% { transform: translateY(0) rotate(0); } 60% { transform: translateY(-4px) rotate(0); } 100% { transform: translateY(-4px) rotate(28deg); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(124,203,174,.7); } 100% { box-shadow: 0 0 0 18px rgba(124,203,174,0); } }
@media (prefers-reduced-motion: reduce) { .unlock-toast, .unlock-toast.out, .unlock-icon, .unlock-icon .shackle { animation-duration: .01s; } .unlock-icon .shackle { transform: translateY(-4px) rotate(28deg); } }

@media (min-width: 768px) {
  .slide { height: 320px; }
  .map { height: calc(100dvh - 300px); }
}
html[data-theme="dark"] .btn.danger-fill { background: #B4482E; }
.map.leaflet-container { overflow: clip; }
.brand-home { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.brand-home .brand-name { flex: 0 1 auto; }

/* ---------- Προσβασιμότητα ---------- */
.app { zoom: var(--zoom, 1); height: calc(100dvh / var(--zoom, 1)); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10000; padding: 12px 16px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.content:focus, h1:focus, h2:focus { outline: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 56px; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font-size: 15px; }
.switch-row:first-of-type { border-top: 0; }
.sw-text { display: flex; flex-direction: column; gap: 2px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--border); position: relative; flex-shrink: 0; transition: background .2s; }
.switch span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on span { transform: translateX(20px); }
.size-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.size-opt { min-height: 76px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 2px; }
.size-opt.on { border: 2px solid var(--accent); background: var(--green-soft); }
.size-opt .small { font-size: 11px; text-align: center; line-height: 1.2; }
.preview { padding: 12px; border-radius: 12px; background: var(--surface2); font-size: 15px; line-height: 1.5; }
.tts-btn { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 900; width: 56px; height: 56px; border-radius: 28px; border: 0; background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.tts-btn.on { background: var(--red); }
@media (min-width: 768px) { .tts-btn { bottom: 24px; right: 24px; } }

/* Γραμματοσειρές */
html[data-font="simple"] { --serif: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html[data-font="simple"] body, html[data-font="simple"] button, html[data-font="simple"] input, html[data-font="simple"] select { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html[data-font="readable"] { --serif: Verdana, Tahoma, 'DejaVu Sans', sans-serif; }
html[data-font="readable"] body, html[data-font="readable"] button, html[data-font="readable"] input, html[data-font="readable"] select { font-family: Verdana, Tahoma, 'DejaVu Sans', sans-serif; }

/* Απόσταση κειμένου (WCAG 1.4.12) */
html[data-spacing] .app :is(p, span, div, button, a, label, li, h1, h2) { letter-spacing: 0.05em; word-spacing: 0.12em; }
html[data-spacing] .app :is(p, .t14, .t13, .small, .lead, .review, .point, .note, .tl-body, .check) { line-height: 1.75; }

/* Υψηλή αντίθεση */
html[data-contrast] { --muted: #2A2722; --muted2: #2A2722; --text2: #111; --border: #5E594F; --line: #A69E8E; --header-line: #8C8577; --accent: #0F4536; --primary: #0F4536; --amber: #6B4405; }
html[data-contrast][data-theme="dark"] { --muted: #EEEAE2; --muted2: #EEEAE2; --text2: #FFFFFF; --ink: #FFFFFF; --border: #A3AEA9; --line: #6A7772; --header-line: #6A7772; --accent: #A6E6CE; --primary: #237058; --amber: #F7D48E; }
html[data-contrast] .card, html[data-contrast] .listing { border: 1px solid var(--border); }
html[data-contrast] .tb.no { color: var(--ink); }

/* Μείωση κινήσεων */
html[data-motion] *, html[data-motion] *::before, html[data-motion] *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion] .unlock-icon .shackle { transform: translateY(-4px) rotate(28deg); }

/* Υπογράμμιση συνδέσμων */
html[data-underline] .app a, html[data-underline] .link, html[data-underline] .link.green, html[data-underline] .link.strong { text-decoration: underline !important; text-underline-offset: 3px; }

/* Μεγαλύτερα κουμπιά */
html[data-big] .btn, html[data-big] .chip-opt, html[data-big] .seg button, html[data-big] .tabs button { min-height: 56px; font-size: 16px; }
html[data-big] .link { min-height: 44px; font-size: 14px; }
html[data-big] .check input { width: 28px; height: 28px; }

/* Έντονη εστίαση */
html[data-focus] :focus-visible, html[data-focus] .leaflet-marker-icon:focus { outline: 4px solid #E5A100 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(0,0,0,.6) !important; }

/* Ανθεκτική διάταξη σε μεγάλο κείμενο */
.brand { flex-wrap: wrap; row-gap: 8px; }
.brand-home { flex: 1 0 auto; min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg, .tabs { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.seg button, .tabs button { flex: 1 0 auto; padding-inline: 10px; white-space: nowrap; }
html[data-tts] .content { padding-bottom: 96px; }
@media (max-width: 419px) { .header .brand-name { display: none; } }

/* Μεσίτης */
.prop-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface2); }
.photo-mini { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.photo-mini.lg { width: 52px; height: 52px; }
.match-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.mp-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.mp-mid { position: relative; display: flex; align-items: center; justify-content: center; }
.mp-mid::before, .mp-mid::after { content: ''; position: absolute; top: 50%; width: 14px; height: 2px; background: var(--line); }
.mp-mid::before { right: 100%; } .mp-mid::after { left: 100%; }

/* Πλάγιο μενού σε tablet: τα κουμπιά κρατούν το φυσικό τους ύψος */
@media (min-width: 768px) {
  .tabs button { flex: 0 0 auto; }
}

/* Το carousel κυλάει μόνο οριζόντια· οι κάθετες κινήσεις περνούν στη σελίδα (iPad/Safari) */
.carousel { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.seg { overflow-y: hidden; }
@media (max-width: 767px) { .tabs { overflow-y: hidden; } }

/* Αρχική, σύνδεση, εγγραφή */
.landing { padding: 16px 4px 4px; display: flex; flex-direction: column; gap: 10px; }
.landing-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.lr { background: var(--surface); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.lr .small { line-height: 1.35; }
.lr-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.demo-acc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-height: 64px; }
.demo-acc:hover { border-color: var(--accent); }
.testbar { display: flex; align-items: center; gap: 8px; }
.testbar .seg { flex: 1; min-width: 0; }
.test-tag { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; background: var(--amber-soft); color: var(--amber-ink); }
.testbar .seg button { font-size: 12px; }
@media (min-width: 768px) {
  .header .testbar { order: 0; width: auto; flex-shrink: 0; }
  .header .testbar .seg { width: 460px; }
  .app:not(.has-nav) .landing-roles { gap: 12px; }
}
@media (max-width: 399px) { .test-tag { display: none; } }

/* =====================================================================
   ΜΕΣΟΓΕΙΑΚΟ ΘΕΜΑ: ασβέστης, τερακότα, Αιγαίο, ελιά
   ===================================================================== */
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/gfs-didot-greek-400-normal.woff2) format('woff2'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/gfs-didot-greek-ext-400-normal.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'GFS Didot'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/gfs-didot-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --serif: 'GFS Didot', Georgia, serif;
  --ground: #FBF7EF; --outside: #EFE7D8; --surface: #FFFFFF; --surface2: #F3E6D3;
  --ink: #2B2420; --muted: #5A4E44; --muted2: #6B5F53; --text2: #3E342D;
  --line: #EFE6D6; --border: #D9CDB8; --header-line: #EFE6D6;
  --primary: #B5552B; --primary-ink: #FFFFFF; --accent: #A24A23;
  --aegean: #1F4E79; --aegean-ink: #FFFFFF; --olive: #6B7A3A; --sun: #E9A24A;
  --green: #1F4E79; --green-soft: #E9ECDC; --green-dark: #44501F;
  --amber: #8A5A12; --amber-soft: #F8EBCB; --amber-ink: #5E4205;
  --red: #A33A3A; --red-soft: #F6E1DE; --red-ink: #7A2626;
  --tint1: #DCE6EF; --tint2: #F3E6D3; --tint3: #E9ECDC; --tint4: #F6E0D3;
  --c-blue: #1F4E79; --c-amber: #C98A2B; --c-rose: #B5552B; --c-teal: #6B7A3A;
  --shadow: 0 1px 2px rgba(60,40,20,0.05), 0 8px 24px rgba(60,40,20,0.07);
}
html[data-theme="dark"] {
  --ground: #14191F; --outside: #0D1116; --surface: #1D242C; --surface2: #27303A;
  --ink: #F1EADF; --muted: #C2B8AA; --muted2: #B5AB9D; --text2: #E2DACE;
  --line: #2C353F; --border: #3E4955; --header-line: #2A333D;
  --primary: #C2622F; --primary-ink: #FFFFFF; --accent: #EE9A6C;
  --aegean: #3D74A8; --aegean-ink: #FFFFFF; --olive: #A9B86F; --sun: #E9A24A;
  --green: #7FB0DA; --green-soft: #2A3320; --green-dark: #D6E0B4;
  --amber: #E8BD6B; --amber-soft: #3A2E17; --amber-ink: #F3DDAE;
  --red: #F09A8E; --red-soft: #3D2222; --red-ink: #F6C3BB;
  --tint1: #1F3346; --tint2: #3A2E22; --tint3: #2A3123; --tint4: #3B2A22;
  --c-blue: #7FB0DA; --c-amber: #E0AE4F; --c-rose: #EE9A6C; --c-teal: #B4C27C;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.25);
}
html[data-contrast] { --muted: #2E2620; --muted2: #2E2620; --text2: #161210; --border: #6E6152; --line: #B3A48F; --accent: #7E3516; --primary: #9C4420; }

/* Τυπογραφία */
.h1, .h2, .brand-name, .card.hero .grow > div:first-child { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.h1 { font-size: 36px; line-height: 1.08; }
.h2 { font-size: 30px; line-height: 1.1; }
.label { color: var(--accent); }

/* Σχήματα */
.btn { border-radius: 999px; }
.btn.primary { background: var(--primary); }
.btn.aegean { background: var(--aegean); color: var(--aegean-ink); border: 0; }
.btn.outline { border-color: var(--ink); color: var(--ink); border-width: 1.5px; }
.btn.danger { border-color: var(--red); }
.card { border-radius: 24px; }
.card.flat { border: 1px solid var(--line); box-shadow: none; }
.chip-opt, .seg, .seg button, .small-seg button { border-radius: 999px; }
.chip-opt.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.seg button.on { color: var(--ink); }
.logo { background: var(--primary); border-radius: 18px 18px 7px 7px; }
.logo.big { border-radius: 26px 26px 9px 9px; }
.chip { color: var(--accent); border-color: var(--accent); }
.chip.paid { background: var(--primary); }
.note.ok { background: var(--green-soft); color: var(--green-dark); }
.tb.ok { background: var(--green-soft); color: var(--green-dark); }
.match.yes { background: var(--surface); color: var(--aegean); box-shadow: var(--shadow); }
html[data-theme="dark"] .match.yes { color: #9CC6EA; }
.listing { border-radius: 26px; }
.trust-ring { background: conic-gradient(var(--olive) var(--pct), var(--line) 0); }
.pct-ring { background: conic-gradient(var(--aegean) var(--pct), var(--line) 0); }
.pct-ring > span { color: var(--aegean); }
html[data-theme="dark"] .pct-ring > span { color: #9CC6EA; }
.card.hero { background: var(--aegean); border-radius: 26px 26px 50% 50% / 26px 26px 34px 34px; padding-bottom: 30px; }
.hero-ring { --accent: var(--sun); --line: rgba(255,255,255,0.25); }
.avatar.xl { color: var(--aegean); font-family: var(--serif); font-weight: 400; font-size: 24px; background: var(--ground); }
.role-card.on { background: var(--surface2); border-color: var(--primary); }
.stars button { border-radius: 999px; }
.review .text { font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.dashed { border-color: var(--border); }

/* Εικονογράφηση στις κάρτες */
.photo { overflow: hidden; }
.photo svg.facade { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide svg.facade { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { position: relative; }
.slide .room-badge { position: absolute; left: 12px; bottom: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); color: #2B2420; font-size: 13px; font-weight: 700; z-index: 1; }
.slide .room-badge svg { width: 16px; height: 16px; }
.slide .slide-ph { position: absolute; right: 12px; bottom: 38px; z-index: 1; color: #5A4E44; background: rgba(255,255,255,0.75); padding: 2px 6px; border-radius: 6px; }

/* Κάρτα σπιτιού */
.listing { position: relative; display: flex; flex-direction: column; text-align: left; }
.listing .cover { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.listing .heart, .detail-heart { position: absolute; right: 12px; top: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 21px; border: 0; background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.listing .ring-pos { right: auto; left: 12px; top: auto; bottom: 12px; }
.listing .tag { z-index: 2; }
.price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts svg { color: var(--aegean); }
html[data-theme="dark"] .facts svg { color: #9CC6EA; }
.owner-line { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text2); }

/* Αρχική και σύνδεση */
.landing-hero { margin: -16px -16px 0; height: 270px; position: relative; overflow: hidden; background: #F3E6D3; }
html[data-theme="dark"] .landing-hero { background: #1B2633; }
.landing-hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing-hero .hero-top { position: absolute; left: 20px; right: 20px; top: calc(16px + env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: center; z-index: 1; }
.landing { padding-top: 0; }
.login-hero { margin: -16px -16px 0; height: 150px; position: relative; overflow: hidden; background: #1F4E79; }
.login-hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lr { border: 1px solid var(--line); box-shadow: none; }
.lr-icon { background: var(--surface2); color: var(--primary); border-radius: 14px 14px 6px 6px; }
.demo-acc { border-radius: 22px; }

/* Μενού με εικονίδια */
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent !important; color: var(--muted2); font-size: 11px; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button.on { color: var(--primary); font-weight: 700; }
html[data-theme="dark"] .tabs button.on { color: var(--accent); }
@media (min-width: 768px) {
  .tabs button { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; border-radius: 16px; }
  .tabs button.on { background: var(--surface2) !important; }
  .h1 { font-size: 46px; }
  .h2 { font-size: 38px; }
  .landing-hero { height: 360px; margin: -32px max(-32px, calc((100% - 680px) / -2)) 0; }
}

/* Ξεκλείδωμα: Αιγαίο και ήλιος */
.unlock-toast { background: #1F4E79; }
.unlock-icon { background: #E9A24A; animation-name: glow-sun; }
@keyframes glow-sun { 0% { box-shadow: 0 0 0 0 rgba(233,162,74,.7); } 100% { box-shadow: 0 0 0 18px rgba(233,162,74,0); } }

/* Πινέζες χάρτη */
.pin { background: #B5552B; } .pin::after { border-top-color: #B5552B; }
.pin.mid { background: #1F4E79; } .pin.mid::after { border-top-color: #1F4E79; }
.pin.meh, .pin.low { background: #FFFFFF; color: #5A4E44; } .pin.meh::after, .pin.low::after { border-top-color: #FFFFFF; }

/* Χρονολόγιο με διακεκομμένη γραμμή */
.tl-item:not(:last-child)::before { width: 0; background: none; border-left: 2px dashed var(--border); }
.ba-tile { border-radius: 14px; }

/* Ζεύγη μεσίτη */
.mp-mid::before, .mp-mid::after { background: var(--border); }

/* 4 ρόλοι: φοιτητής */
@media (min-width: 768px) { .landing-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.testbar .seg button { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
/* 6 καρτέλες σε κινητό (φοιτητής) */
@media (max-width: 767px) {
  .tabs button:first-child:nth-last-child(6), .tabs button:first-child:nth-last-child(6) ~ button { flex: 1 1 0; min-width: 0; padding-inline: 2px; font-size: 10px; }
}
/* Διαχωριστικό ενοτήτων στα σπίτια */
.section-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; color: var(--aegean); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--header-line); }
html[data-theme="dark"] .section-divider { color: var(--accent); }
/* Διακοπή πρόσβασης */
.unlock-toast.locked { background: #8E3B22; }
.unlock-toast.locked .unlock-icon svg { width: 30px; height: 30px; }
.access-item .note { margin-top: 10px; }
.access-item .row { margin-top: 8px; }
/* Επαγγελματίες του σπιτιού */
.pros { gap: 12px; }
.pro-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.pro-item .tl-icon { flex-shrink: 0; }
.pro-item a.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pro-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface2); }
/* Πραγματικοί λογαριασμοί */
.btn.busy { opacity: .6; pointer-events: none; }
.real-note { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.real-note .link { flex-shrink: 0; }
.pill.cancelled, .pill.ended { background: var(--surface2); color: var(--muted); }
.refresh { white-space: nowrap; }
textarea { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); color: var(--text); }
