/* Athens F&K Apartments — site styles. Brand tokens are documented in CLAUDE.md. */
:root {
  --navy: #172554;
  --blue: #1E3A8A;
  --blue-light: #BFDBFE;
  --blue-pale: #DBEAFE;
  --mint: #DCFCE7;
  --mint-ink: #14532D;
  --ice: #EFF6FF;
  --ink: #1A1B23;
  --ink-soft: #374151;
  --star: #FACC15;
  --gradient: linear-gradient(to right, var(--blue-light), var(--mint), var(--blue-light));
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ice);
  background: var(--navy);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600;
  cursor: pointer;
}
.btn--mint { background: var(--mint); color: var(--mint-ink); }
.btn--navy { background: var(--navy); color: #fff; letter-spacing: 0.04em; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 28px 24px 40px; text-align: center;
  background:
    linear-gradient(rgba(23, 37, 84, 0.15), rgba(23, 37, 84, 0.25) 55%, var(--navy)),
    url("../img/acropolis.webp") center / cover no-repeat,
    var(--blue);
}
.hero__top { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }
.hero__spacer { width: 96px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.logo__name { color: #fff; font-weight: 700; font-size: 22px; line-height: 1; }
.logo__sub { color: var(--blue-pale); font-weight: 600; font-size: 11px; letter-spacing: 0.32em; }

.lang { display: flex; gap: 8px; width: 96px; justify-content: flex-end; }
.lang a {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: #fff; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
}
.lang a[aria-current="true"] { color: var(--navy); background: rgba(255, 255, 255, 0.6); font-weight: 700; }

.hero__title { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero__lead { font-size: clamp(26px, 4vw, 44px); font-weight: 300; color: #fff; }
.hero__big { font-size: clamp(84px, 14vw, 148px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.hero__sub { font-size: 20px; color: #fff; padding-top: 14px; }
.hero__sub span { color: var(--blue-light); }
.hero__down { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* ---------- Intro ---------- */
.intro { padding: 64px 24px 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.intro h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--blue-light); max-width: 900px; line-height: 1.2; }
.intro p { max-width: 720px; color: var(--blue-pale); }
.points { display: flex; flex-wrap: wrap; justify-content: center; padding: 16px 0 0; margin: 0; list-style: none; }
.points li { padding: 4px 36px; }
.points li + li { border-left: 2px solid var(--mint); }
.stars { color: var(--star); }

/* ---------- Apartments strip ---------- */
.apartments { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.apartment {
  position: relative; height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; text-decoration: none; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(17, 24, 39, 0.85)), #D9C3A5;
}
.apartment__placeholder { position: absolute; top: 24px; left: 24px; font-size: 13px; color: #5B4A36; }
.apartment strong { font-size: 26px; letter-spacing: -0.01em; }
.apartment span { font-size: 15px; color: var(--ice); }

/* ---------- Location ---------- */
.location { padding: 96px 0; }
.location .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.location__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.location__text h2 { font-size: clamp(32px, 4vw, 44px); color: var(--blue-light); }
.location__text p { color: var(--blue-pale); }
.location__text .btn { align-self: flex-start; }
.location__map { flex: 1.8 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
/* On phones the map keeps a readable size and scrolls sideways instead of shrinking.
   direction: rtl makes it open scrolled to the right, where the three apartments are. */
.location__map-scroll { overflow-x: auto; direction: rtl; }
.location__map svg { direction: ltr; width: 100%; min-width: 480px; height: auto; display: block; }
.location__map small { font-size: 13px; color: var(--blue-light); }

/* ---------- Photo band ---------- */
.band {
  min-height: 460px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px;
  background:
    linear-gradient(rgba(23, 37, 84, 0.55), rgba(23, 37, 84, 0.55)),
    url("../img/acropolis.webp") center 70% / cover no-repeat,
    var(--blue);
}
.band h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 300; color: #fff; max-width: 900px; line-height: 1.2; }
.band strong { font-weight: 800; }

/* ---------- Audiences ---------- */
.audiences { background: var(--ice); color: var(--ink); padding: 96px 0 160px; }
.audiences .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.audiences__mark { flex: 1 1 320px; display: flex; justify-content: center; }
.audiences__mark svg { width: min(300px, 70%); height: auto; }
.audiences__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.audiences__text h2 { font-size: clamp(30px, 3.4vw, 40px); color: var(--blue); }
.audiences__text > p { font-size: 20px; color: var(--ink-soft); }
.audiences ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.audiences li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-soft); }
.audiences li::before { content: "›"; color: var(--blue); font-weight: 700; }
.audiences li strong { color: var(--blue); }

/* ---------- Sticky enquiry bar ---------- */
.enquiry {
  position: sticky; bottom: 0; z-index: 10;
  margin: -120px auto 0; max-width: 960px;
  background: var(--blue-light); color: var(--navy);
  border-radius: 18px 18px 0 0; padding: 22px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.enquiry h2 { font-size: 24px; text-align: center; letter-spacing: -0.01em; }
.enquiry__fields { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: flex-end; }
.enquiry label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.enquiry input[type="text"], .enquiry input[type="tel"], .enquiry input[type="email"] {
  height: 44px; width: 170px; padding: 0 12px; border: 1px solid #93C5FD; border-radius: 8px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.enquiry__consent { flex-direction: row !important; align-items: center; justify-content: center; gap: 8px !important; font-size: 13px !important; font-weight: 400 !important; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--blue-light); padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 14px; }
.footer a { color: var(--blue-pale); }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero__spacer { display: none; }
  .hero__top { flex-direction: column; gap: 16px; }
  .points li { padding: 6px 16px; }
  .points li + li { border-left: 0; }
  .apartment { height: 380px; }
  .enquiry { position: static; margin: 0; border-radius: 0; }
  .enquiry input[type="text"], .enquiry input[type="tel"], .enquiry input[type="email"] { width: 100%; }
  .enquiry label { width: 100%; }
  .audiences { padding-bottom: 64px; }
}

/* ---------- Apartment pages ---------- */
.page-header { background: var(--navy); padding: 20px 24px; }
.page-header__inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-header .logo { flex-direction: row; gap: 12px; align-items: center; }
.page-header .logo img { width: 30px; height: auto; }
.page-header .logo__name { font-size: 18px; }
.page-header .logo__sub { font-size: 9px; }
.page-header .lang { width: auto; }

.crumbs { font-size: 14px; color: var(--blue-light); padding: 20px 0 0; }
.crumbs a { color: var(--blue-pale); }

.apt-hero {
  position: relative; min-height: 360px; margin-top: 16px; display: flex; align-items: flex-end;
  background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(17, 24, 39, 0.85)), #D9C3A5;
}
.apt-hero__photo-note { position: absolute; top: 20px; left: 24px; font-size: 13px; color: #5B4A36; }
.apt-hero .container { padding-bottom: 32px; }
.apt-hero h1 { font-size: clamp(34px, 5vw, 56px); color: #fff; font-weight: 800; }
.apt-hero p { margin-top: 10px; font-size: 18px; color: var(--ice); }

.apt-section { padding: 64px 0; }
.apt-section--ice { background: var(--ice); color: var(--ink); }
.apt-section h2 { font-size: clamp(26px, 3vw, 34px); color: var(--blue); margin-bottom: 20px; }
.apt-section--dark h2 { color: var(--blue-light); }
.apt-section--dark p { color: var(--blue-pale); }
.apt-section p + p { margin-top: 12px; }
.apt-section--ice p { color: var(--ink-soft); }

.apt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.apt-facts div { background: #fff; border-radius: 12px; padding: 18px 20px; }
.apt-facts dt { font-size: 13px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.apt-facts dd { margin: 6px 0 0; font-size: 17px; color: var(--ink); }

.apt-distances { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.apt-distances li {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid #BFDBFE; color: var(--ink-soft);
}
.apt-distances li:first-child { border-top: 1px solid #BFDBFE; }
.apt-distances strong { color: var(--blue); white-space: nowrap; }

.apt-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.apt-photos div {
  height: 240px; display: flex; align-items: flex-end; padding: 16px;
  background: #D9C3A5; color: #5B4A36; font-size: 13px;
}

.apt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.apt-cta .btn--navy { min-height: 48px; }

.apt-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.apt-list li { display: flex; gap: 10px; color: var(--blue-pale); }
.apt-list li::before { content: "›"; color: var(--mint); font-weight: 700; }

.apt-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.apt-related a {
  display: block; padding: 20px; border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink);
}
.apt-related strong { display: block; color: var(--blue); font-size: 18px; }
.apt-related span { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 640px) {
  .page-header .logo__sub { display: none; }
  .apt-hero { min-height: 300px; }
  .apt-photos div { height: 180px; }
}

/* ---------- Contact page ---------- */
.page-title { padding: 48px 0 40px; }
.page-title h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: #fff; }
.page-title p { margin-top: 12px; max-width: 640px; color: var(--blue-pale); font-size: 19px; }

.contact { background: var(--ice); color: var(--ink); padding: 64px 0 96px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; }
.contact h2 { font-size: clamp(24px, 3vw, 32px); color: var(--blue); margin-bottom: 20px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"],
.form input[type="date"], .form input[type="number"], .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #64748B; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible,
.form button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--ink-soft) !important; }
.form__consent input { margin-top: 4px; width: 18px; height: 18px; }
.form__hint { font-size: 14px; color: var(--ink-soft); }
.form .btn--navy { min-height: 50px; justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 600; }
.notice[hidden] { display: none; }
.notice--ok { background: var(--mint); color: var(--mint-ink); }
.notice--err { background: #FEE2E2; color: #7F1D1D; }

.contact__aside { display: flex; flex-direction: column; gap: 28px; }
.contact__aside dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__aside dt { font-size: 13px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.contact__aside dd { margin: 4px 0 0; color: var(--ink); }
.contact__aside a { color: var(--blue); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .contact { padding: 40px 0 64px; }
}

/* ---------- Text pages (terms, privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--blue); }
/* Buttons inside text pages keep their own colours (the rule above is more specific than .btn--*). */
.prose a.btn--navy { color: #fff; }
.prose a.btn--mint { color: var(--mint-ink); }
.prose a.btn--outline { color: var(--blue); }
.prose a.btn--ghost { color: #fff; }

/* ---------- FAQ and numbered lists ---------- */
.prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }
.prose strong { color: var(--blue); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; min-height: 44px; padding: 14px 0; font-weight: 600; color: var(--blue); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq details[open] summary { border-bottom: 1px solid var(--blue-light); margin-bottom: 14px; }
.faq details p { padding-bottom: 16px; }

/* ---------- Guide links ---------- */
.audiences li a { color: var(--blue); }
.apt-list a { color: var(--mint); }
.prose .apt-distances { padding-left: 0; gap: 0; }

/* ---------- Ghost button (secondary actions on dark sections) ---------- */
.btn--ghost { background: transparent; color: #fff; border: 2px solid var(--blue-light); }

/* ---------- Apartment map (Google Maps, loaded on click: see map.js) ---------- */
.apt-map { margin-top: 32px; height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--blue-light); background: #fff; }
.apt-map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--ice), #fff 70%); }
.apt-map__icon { color: var(--blue); }
.apt-map__placeholder strong { color: var(--blue); font-size: 18px; }
.apt-map__placeholder p { max-width: 420px; font-size: 14px; color: var(--ink-soft); }
.apt-map__placeholder a { color: var(--blue); }
.apt-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
@media (max-width: 600px) { .apt-map { height: 320px; } }

/* ---------- Photos ---------- */
.apartment { overflow: hidden; }
.apartment__img, .apt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apartment::before, .apt-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(17, 24, 39, 0.85)); }
.apartment > :not(img), .apt-hero > .container { position: relative; z-index: 2; }
.apartment__img { transition: transform 0.4s ease; }
.apartment:hover .apartment__img { transform: scale(1.03); }
.apt-hero { overflow: hidden; }
.apt-hero__img { object-position: 50% 55%; }
.apt-photos button { display: block; width: 100%; height: 240px; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 10px; background: #D9C3A5; }
.apt-photos button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.apt-photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.apt-photos button:hover img, .apt-photos button:focus-visible img { transform: scale(1.04); }
@media (max-width: 640px) {
  .apt-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .apt-photos button { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .apartment__img, .apt-photos img { transition: none; } }

/* Discourage saving photos (see gallery.js): no long-press menu, no selection, no dragging. */
.apt-photos img, .apt-lightbox img, .apt-hero__img, .apartment__img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* ---------- Lightbox ---------- */
.no-scroll { overflow: hidden; }
.apt-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 15, 35, 0.94); color: #fff; }
.apt-lightbox::backdrop { background: rgba(10, 15, 35, 0.94); }
.apt-lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px 24px; }
.apt-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.apt-lightbox__figure figcaption { font-size: 14px; color: var(--blue-pale); text-align: center; }
.apt-lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.apt-lightbox__btn:hover, .apt-lightbox__btn:focus-visible { background: rgba(255, 255, 255, 0.25); }
.apt-lightbox__btn:focus-visible { outline: 2px solid var(--mint); }
.apt-lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.apt-lightbox__close { top: 12px; right: 12px; }
.apt-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.apt-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .apt-lightbox__figure { padding: 56px 8px 80px; }
  .apt-lightbox__figure img { max-height: calc(100vh - 170px); }
  .apt-lightbox__prev, .apt-lightbox__next { top: auto; bottom: 16px; transform: none; }
}
