/* ΤΡΙΛΟΦΟΣ — 3D μακέτα · InFox Real Estate
   Χρώματα brand: πορτοκαλί #FF681D (διακοσμητικά/3D), βαθύ πορτοκαλί για κουμπιά (AA αντίθεση με λευκό), γκρι #63656A */
:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --card: rgba(250, 248, 245, .86);
  --ink: #202227;
  --gray: #63656a;
  --dim: #6c6e74;
  --line: rgba(32, 34, 39, .12);
  --accent: #ff681d;
  --accent-strong: #cc4a0a;
  --accent-ink: #b9440b;
  --radius: 18px;
  --cond: "Roboto Condensed", "Arial Narrow", sans-serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.kicker {
  font: 700 .72rem/1.2 var(--cond); letter-spacing: .2em; color: var(--accent-ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.kicker .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-ink); letter-spacing: .04em; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .92rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent-strong); color: #fff; }
.btn--accent:hover { background: #b03f08; }
.btn--ghost { border-color: rgba(32, 34, 39, .25); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { padding: 9px 16px; font-size: .84rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(68px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(244, 241, 236, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__logo img { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { font-size: .86rem; font-weight: 400; text-decoration: none; color: var(--gray); }
.nav nav a:not(.btn):hover { color: var(--accent-ink); }
@media (max-width: 820px) { .nav nav a:not(.btn) { display: none; } .nav__logo img { height: 34px; } }

/* =====================================================================
   3D ΑΦΗΓΗΣΗ
   ===================================================================== */
.story { position: relative; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: linear-gradient(180deg, #c9dbe6 0%, #ebe4d8 55%, #e4ddcf 100%);
}
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; cursor: grab;
}
.is-3d-ready .stage canvas { opacity: 1; }
.stage.is-dragging canvas { cursor: grabbing; }
/* υποστηρικτικό gradient πίσω από το κείμενο του hero (desktop) */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: linear-gradient(90deg, rgba(244, 241, 236, .9) 0%, rgba(244, 241, 236, .55) 32%, rgba(244, 241, 236, 0) 55%);
}
body[data-step="hero"] .stage::after { opacity: 1; }

/* fallback: χωρίς WebGL / Save-Data → φωτογραφία ανά ενότητα */
.stage__poster { position: absolute; inset: 0; display: none; }
.stage__poster img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.no-3d .stage__poster { display: block; }
.no-3d .stage canvas, .no-3d .drag-hint, .no-3d .loader, .no-3d .hotspots { display: none; }
.no-3d .stage::after { opacity: 1; background: linear-gradient(90deg, rgba(244, 241, 236, .8), rgba(244, 241, 236, .1) 60%); }

.loader {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); font-size: .8rem; color: var(--gray);
}
.loader span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .9s linear infinite; }
.is-3d-loading .loader { display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

.drag-hint {
  position: absolute; right: var(--gutter); bottom: 28px; font-size: .78rem; color: var(--gray);
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .6); opacity: 0; transition: opacity .5s;
}
.is-3d-ready body[data-step="hero"] .drag-hint { opacity: 1; }

.dots { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; z-index: 3; }
.dots button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(32, 34, 39, .25); transition: transform .3s, background .3s; }
.dots button[aria-current]::before { background: var(--accent); transform: scale(1.5); }
@media (max-width: 820px) { .dots { display: none; } }

/* ---------- Ετικέτες πάνω στη μακέτα ---------- */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hs { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; will-change: transform; }
.hs.is-on { opacity: 1; }
.hs.is-on.is-dim { opacity: .55; }
.hs i {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.hs i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.2s ease-out infinite; }
.hs span {
  position: absolute; left: 18px; top: 0; transform: translateY(-50%); white-space: nowrap;
  background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 7px 12px; box-shadow: 0 8px 24px -12px rgba(20, 22, 30, .45);
  font-size: .8rem; line-height: 1.3; color: var(--ink);
}
.hs span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 12px; height: 1.5px; background: var(--accent); }
.hs.is-left span { left: auto; right: 18px; }
.hs.is-left span::before { right: auto; left: 100%; }
.hs b { display: block; font: 700 .86rem/1.25 var(--cond); letter-spacing: .02em; }
.hs small { display: block; color: var(--dim); font-size: .74rem; }
.hs.is-active span { background: var(--accent-strong); color: #fff; }
.hs.is-active small { color: rgba(255, 255, 255, .85); }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Ενότητες πάνω από το canvas ---------- */
.steps { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100lvh; pointer-events: none; }
.step { min-height: 115vh; min-height: 115svh; display: flex; align-items: center; padding: 96px var(--gutter); position: relative; }
.step--hero { min-height: 100vh; min-height: 100svh; }
.step--last { min-height: 130svh; }
.card {
  pointer-events: auto; max-width: 440px; padding: 28px 30px; border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 60px -30px rgba(25, 27, 35, .45);
}
.card h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.card > p:not(.kicker) { margin-top: 14px; color: #3c3e44; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 104, 29, .1); color: var(--accent-ink); font-weight: 500; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.card--hero { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 520px; }
.card--hero h1 { margin: 0; }
.h1__name { display: block; font-size: clamp(3.4rem, 8.5vw, 7.2rem); line-height: .92; letter-spacing: -.01em; color: var(--ink); }
.h1__sub { display: block; font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 400; color: var(--gray); margin-top: 12px; letter-spacing: .01em; }
.lead { margin-top: 22px; font-size: 1.05rem; color: #3c3e44; max-width: 460px; }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; }
.stats b { display: block; font: 700 1.7rem/1 var(--cond); color: var(--ink); }
.stats span { display: block; font-size: .74rem; color: var(--dim); margin-top: 6px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.price { font: 700 2rem/1 var(--cond); color: var(--ink); }
.price span { display: block; font: 400 .72rem/1 var(--sans); letter-spacing: .14em; color: var(--dim); margin-bottom: 6px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); pointer-events: auto;
  display: grid; justify-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; color: var(--gray); text-decoration: none;
}
.scroll-cue::after { content: ""; width: 1.5px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

@media (max-width: 899px) {
  .step { align-items: flex-end; padding: 88px 16px 24px; min-height: 100svh; }
  .step--last { min-height: 115svh; }
  .card { max-width: none; width: 100%; padding: 22px 20px; }
  body[data-step="hero"] .stage::after { background: linear-gradient(0deg, rgba(244, 241, 236, .95) 0%, rgba(244, 241, 236, .7) 42%, rgba(244, 241, 236, 0) 62%); }
  .step--hero { padding-bottom: 72px; }
  .stats { grid-template-columns: repeat(4, auto); gap: 6px 16px; }
  .stats b { font-size: 1.3rem; }
  .stats span { font-size: .68rem; }
  .lead { font-size: .98rem; margin-top: 14px; }
  .price-row { margin-top: 20px; }
  .price { font-size: 1.6rem; }
  .drag-hint { display: none; }
  .scroll-cue { bottom: 14px; }
  .scroll-cue span { display: none; }
}
@media (max-width: 600px) {
  .card--hero .lead { display: none; }            /* στο κινητό η μακέτα χρειάζεται τον χώρο· τα στοιχεία είναι στα stats */
  .h1__name { font-size: 3rem; }
  .h1__sub { font-size: 1.05rem; margin-top: 8px; }
  .card--hero .kicker { font-size: .64rem; letter-spacing: .14em; }
  .hs.is-dim { opacity: 0 !important; }          /* μόνο η ενεργή ετικέτα επιπέδου */
}
@media (max-width: 340px) { .stats { grid-template-columns: repeat(2, auto); } }

/* =====================================================================
   ΚΑΝΟΝΙΚΕΣ ΕΝΟΤΗΤΕΣ (HTML — SEO)
   ===================================================================== */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; z-index: 4; background: var(--paper); }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__head > p:not(.kicker) { margin-top: 14px; color: var(--dim); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button {
  font: 500 .88rem/1 var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--gray);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery[hidden] { display: none; }
.gitem { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--paper-2); aspect-ratio: 4 / 3; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gitem:hover img { transform: scale(1.04); }
.gitem:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gitem:last-child:nth-child(8) { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.facts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.section__head .facts__price { margin-top: 28px; font: 700 2.6rem/1 var(--cond); color: var(--ink); }
.facts__price span { display: block; font: 400 .74rem/1 var(--sans); letter-spacing: .14em; color: var(--dim); margin-bottom: 8px; }
.sheet { margin: 0; background: #fff; border-radius: var(--radius); padding: 8px 26px; box-shadow: 0 20px 50px -35px rgba(25, 27, 35, .4); }
.sheet div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet div:last-child { border-bottom: 0; }
.sheet dt { color: var(--dim); font-size: .9rem; }
.sheet dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 8px; } }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: f; }
.features li { counter-increment: f; background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line); }
.features li::before { content: counter(f, decimal-leading-zero); display: block; font: 700 .8rem/1 var(--cond); color: var(--accent-ink); letter-spacing: .1em; margin-bottom: 18px; }
.features h3 { font-size: 1.25rem; }
.features p { margin-top: 8px; color: var(--dim); font-size: .94rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.distances { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.distances li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.distances b { font: 700 1.3rem/1 var(--cond); min-width: 120px; }
.distances span { color: var(--dim); }
.projects { display: grid; gap: 16px; }
.projects article { background: #fff; border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--accent); }
.projects h3 { font-size: 1.2rem; }
.projects p:not(.kicker) { margin-top: 8px; color: var(--dim); font-size: .94rem; }

.invest { background: var(--ink); color: #f1efe9; }
.invest .kicker { color: #ff9a63; }
.invest .section__head > p:not(.kicker) { color: #b7b9be; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 0 0 14px 34px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #dcdde0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.visit { text-align: center; }
.visit__inner { max-width: 760px; }
.visit .kicker { justify-content: center; }
.visit h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.visit__inner > p:not(.kicker) { margin-top: 16px; color: var(--dim); }
.visit__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.visit .visit__addr { margin-top: 26px; font-size: .86rem; }

.footer { background: var(--paper-2); padding: 40px 0 48px; border-top: 1px solid var(--line); position: relative; z-index: 4; }
.footer__inner { display: grid; gap: 12px; font-size: .8rem; color: var(--dim); }
.footer__inner img { height: 36px; width: auto; margin-bottom: 6px; }
.footer__note { font-style: italic; }

/* ---------- Ραντεβού: κλήση / WhatsApp / Viber ---------- */
.contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; text-align: left; }
.contact__btn {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 14px;
  background: #fff; border: 1.5px solid rgba(32, 34, 39, .14); color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact__btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(10, 12, 18, .35); }
.contact__btn:focus-visible { outline: 3px solid rgba(255, 104, 29, .45); outline-offset: 2px; }
.contact__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.contact__icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact__icon--call { background: var(--accent-strong); }
.contact__icon--wa { background: #25d366; }
.contact__icon--viber { background: #7360f2; }
.contact__text { display: grid; line-height: 1.25; }
.contact__text b { font: 700 1rem var(--cond); letter-spacing: .02em; }
.contact__text small { font-size: .82rem; color: var(--gray); }
.contact__more { font-size: .9rem; color: var(--dim); }
.contact__more a { color: var(--accent-ink); font-weight: 500; }
.nowrap { white-space: nowrap; }
.visit .contact__more { margin-top: 18px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html:has(dialog[open]) { overflow: hidden; }
.modal {
  border: 0; padding: 0; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -40px rgba(10, 12, 18, .6);
  overflow: hidden auto;
}
.modal::backdrop { background: rgba(20, 22, 27, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(32, 34, 39, .07); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: rgba(32, 34, 39, .14); }
.booking { padding: 32px 32px 28px; display: grid; gap: 20px; }
.booking[hidden] { display: none; }
.booking h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); text-wrap: balance; }
.booking__head p:not(.kicker) { color: var(--dim); margin-top: 8px; }
.booking .contact { grid-template-columns: 1fr; }
@media (max-width: 560px) {
  .modal { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .booking { padding: 28px 16px calc(24px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(16, 17, 20, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 64px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 8px; }
.lightbox figcaption { color: #d8d9dc; font-size: .9rem; margin-top: 12px; text-align: center; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: var(--accent-strong); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
