/* css/fonts.css */
/* Self-hosted Google Fonts (SIL Open Font License 1.1): Manrope, for headings (as in the logo) and text.
   Subsets: latin, latin-ext, greek, cyrillic. Manrope has no Hebrew, so Hebrew is drawn by Noto Sans Hebrew,
   next in both font stacks (tokens.css); Chinese uses the system's Simplified Chinese font. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-normal-greek.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: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-normal-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-normal-latin.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;
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* css/tokens.css */
/* ==========================================================================
   HELLAS BROKERS design tokens
   Primitives come from the business card (navy, metallic gold, silver) and the
   drafting-paper surface of an architect's drawing. Components use only the
   semantic aliases below, so a section changes theme with data-theme="dark".
   Every text/background pair is contrast-tested in tests/unit/contrast_test.php.
   ========================================================================== */
:root {
  /* Navy */
  --navy-950: #070F24;
  --navy-900: #0B1A3A;
  --navy-800: #12244D;
  --navy-700: #1B3366;
  --navy-600: #26467F;
  --navy-500: #6F7FA3;
  --navy-200: #C5CEE0;
  --navy-100: #E3E8F2;
  /* Gold */
  --gold-700: #765615;
  --gold-600: #95701F;
  --gold-500: #B8892F;
  --gold-400: #D2A955;
  --gold-300: #E9C979;
  --gold-200: #F3DC9A;
  --gold-100: #FBF1D6;
  --gold-metal: linear-gradient(135deg, #8A6A1F 0%, #E9C979 38%, #B8892F 62%, #F3DC9A 100%);
  /* Silver and paper */
  --silver-500: #7C879A;
  --silver-300: #C9CFD8;
  --silver-100: #EEF1F4;
  --paper: #F2F4F7;
  --paper-2: #E6EAF0;
  --white: #FFFFFF;
  --ink: #10172A;
  --slate: #4F5B70;
  --mist: #AEB8CC;
  --frost: #E9EDF5;
  /* Status */
  --success: #1E7A4F;
  --danger: #B3261E;
  --warning: #8A5A00;

  /* Type */
  /* Headings use the logo's typeface (Manrope, also the text font): one family, set heavier for titles. */
  --font-display: "Manrope", "Noto Sans Hebrew", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --weight-display: 700;
  --font-sans: "Manrope", "Noto Sans Hebrew", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--2: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.94rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.12rem + 0.3vw, 1.36rem);
  --step-2: clamp(1.42rem, 1.3rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.48rem + 1.1vw, 2.4rem);
  --step-4: clamp(2.05rem, 1.7rem + 1.8vw, 3.2rem);
  --step-5: clamp(2.45rem, 1.9rem + 2.8vw, 4.25rem);
  --step-6: clamp(2.9rem, 2rem + 4.5vw, 5.6rem);
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.65;
  --measure: 66ch;

  /* Space (4 px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 7rem;
  --space-12: 10rem;
  --section-pad: clamp(4rem, 3rem + 5vw, 8rem);
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Shape — architectural: every corner is square, so there are no radius tokens (tests/unit/corners_test.php) */
  --hairline: 1px solid var(--border);
  --shadow-1: 0 1px 2px rgba(7, 15, 36, 0.08);
  --shadow-2: 0 18px 40px -18px rgba(7, 15, 36, 0.35);
  --shadow-3: 0 40px 90px -30px rgba(7, 15, 36, 0.55);

  /* Layers */
  --z-header: 50;
  --z-popover: 60;
  --z-menu: 70;
  --z-dialog: 80;
  --z-toast: 90;

  /* Motion (shared with GSAP via getComputedStyle) */
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 76px;
  --target: 44px;
}

/* Semantic aliases — light drafting paper (default) */
:root,
[data-theme="light"],
[data-theme="paper-2"] {
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --text: var(--ink);
  --text-muted: var(--slate);
  --heading: var(--navy-900);
  --accent: var(--gold-600);
  --accent-ink: var(--gold-700);
  --accent-contrast: var(--navy-900);
  --border: rgba(16, 23, 42, 0.12);
  --border-strong: var(--silver-500);
  --focus: var(--navy-700);
  --link: var(--navy-700);
  --rule: var(--navy-200);
  --blueprint-line: rgba(27, 51, 102, 0.12);
  --overlay: rgba(7, 15, 36, 0.62);
  color-scheme: light;
}

[data-theme="paper-2"] {
  --bg: var(--paper-2);
}

/* Navy blueprint */
[data-theme="dark"] {
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: var(--navy-950);
  --text: var(--frost);
  --text-muted: var(--mist);
  --heading: var(--white);
  --accent: var(--gold-300);
  --accent-ink: var(--gold-300);
  --accent-contrast: var(--navy-900);
  --border: rgba(233, 237, 245, 0.14);
  --border-strong: var(--navy-500);
  --focus: var(--gold-300);
  --link: var(--gold-300);
  --rule: rgba(111, 127, 163, 0.45);
  --blueprint-line: rgba(111, 127, 163, 0.22);
  --overlay: rgba(7, 15, 36, 0.78);
  color-scheme: dark;
}

[data-theme] {
  background-color: var(--bg);
  color: var(--text);
}

/* css/base.css */
/* Reset + element defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  font-kerning: normal;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
}

/* Slim scrollbars for scrolling panels (filters, dropdown lists). WebKit/Blink use the pseudo-elements;
   Firefox, which has none, the standard properties. */
.u-slim-scroll::-webkit-scrollbar,
.c-dropdown__list::-webkit-scrollbar {
  width: 6px;
}

.u-slim-scroll::-webkit-scrollbar-track,
.c-dropdown__list::-webkit-scrollbar-track {
  background: transparent;
}

.u-slim-scroll::-webkit-scrollbar-thumb,
.c-dropdown__list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
}

.u-slim-scroll::-webkit-scrollbar-thumb:hover,
.c-dropdown__list::-webkit-scrollbar-thumb:hover {
  background: var(--heading);
}

@supports not selector(::-webkit-scrollbar) {
  .u-slim-scroll,
  .c-dropdown__list {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
  }
}

/* Two fonts only: code takes the text font rather than the browser's monospace. */
code,
kbd,
samp,
pre {
  font-family: inherit;
}

/* Corners are square everywhere (the owner's decision, 2026-10-17). Browsers round Safari's search fields
   and native checkboxes themselves, so those are drawn here; Windows High Contrast keeps the native box. */
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  border: 2px solid var(--border-strong);
  background: var(--surface) no-repeat center / 85%;
  vertical-align: middle;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  border-color: var(--navy-700);
  background-color: var(--navy-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.1L13 4.6' fill='none' stroke='%23FFFFFF' stroke-width='2.2'/%3E%3C/svg%3E");
}

input[type="checkbox"]:indeterminate {
  border-color: var(--navy-700);
  background-color: var(--navy-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='%23FFFFFF' stroke-width='2.2'/%3E%3C/svg%3E");
}

[data-theme="dark"] input[type="checkbox"]:checked,
[data-theme="dark"] input[type="checkbox"]:indeterminate {
  border-color: var(--gold-300);
  background-color: var(--gold-300);
}

[data-theme="dark"] input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.1L13 4.6' fill='none' stroke='%230B1A3A' stroke-width='2.2'/%3E%3C/svg%3E");
}

input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (forced-colors: active) {
  input[type="checkbox"] {
    appearance: auto;
  }
}

p,
li,
figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  text-wrap: balance;
  overflow-wrap: break-word;
  /* Words move to the next line whole; a word wider than a phone gets a set break point from title_html(). */
  hyphens: manual;
}

/* Browsers break at a set point whenever its first part fits, even where the whole word would fit on the next
   line, so from 768 px (where no German or Russian title word needs one any more) the points are ignored; a word
   wider than the whole column may still break. */
@media (min-width: 768px) {
  h1,
  h2,
  h3,
  h4 {
    hyphens: none;
    overflow-wrap: break-word;
  }
}

h1,
h2,
.t-display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.005em;
}

h4 {
  font-size: var(--step-0);
  font-weight: 700;
  line-height: var(--leading-snug);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--gold-200);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

:target {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

[hidden] {
  display: none !important;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: var(--hairline);
}

/* Long-form text (descriptions, legal pages, area guides) */
.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  font-size: var(--step-3);
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* css/layout.css */
/* Layout primitives */
.l-container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.l-container--wide {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
}

.l-container--narrow {
  width: min(100% - 2 * var(--gutter), 52rem);
}

.l-section {
  padding-block: var(--section-pad);
  position: relative;
}

.l-section--tight {
  padding-block: calc(var(--section-pad) * 0.6);
}

.l-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

.l-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.l-grid {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 18rem)), 1fr));
}

.l-grid--2 { --grid-min: 22rem; }
.l-grid--3 { --grid-min: 18rem; }
.l-grid--4 { --grid-min: 14rem; }

/* Asymmetric two-column split used for text + image */
.l-split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .l-split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-10);
  }

  .l-split--reverse > :first-child {
    order: 2;
  }

  .l-split--even {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card grids never exceed three columns, so 6 featured cards fill two clean rows */
.c-card-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

@media (min-width: 1000px) {
  .c-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* css/utilities.css */
.u-visually-hidden:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-skip-link {
  position: fixed;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: calc(var(--z-toast) + 1);
  padding: var(--space-3) var(--space-5);
  background: var(--gold-300);
  color: var(--navy-950);
  font-weight: 700;
  transform: translateY(-200%);
}

.u-skip-link:focus {
  transform: none;
}

.u-muted {
  color: var(--text-muted);
}

.u-measure {
  max-width: var(--measure);
}

.u-lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}

.u-nowrap {
  white-space: nowrap;
}

.u-tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

.u-center {
  text-align: center;
}

.u-mt-0 { margin-top: 0; }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-8 { margin-top: var(--space-8); }

/* css/components/blueprint.css */
/* Blueprint drafting motif */
.bg-blueprint {
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--blueprint-line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--blueprint-line) 45%, transparent) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
}

.c-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
  overflow: visible;
}

.c-blueprint path,
.c-blueprint line,
.c-blueprint rect,
.c-blueprint circle,
.c-blueprint polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.c-blueprint .is-faint {
  stroke-opacity: 0.35;
}

.c-blueprint .is-dashed {
  stroke-dasharray: 4 6;
}

.c-blueprint text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* css/components/button.css */
/* Buttons. Primary = metallic gold (the brand's one loud colour); everything else is quiet. */
.c-button {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--target);
  padding: 0.6em 1.35em;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), background-position var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

/* Phones: a long label (Greek, German, Russian) wraps inside its button instead of widening the page. */
@media (max-width: 599.98px) {
  .c-button {
    white-space: normal;
  }
}

.c-button svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.c-button:hover {
  --btn-border: var(--heading);
}

.c-button--primary {
  --btn-fg: var(--navy-900);
  --btn-border: transparent;
  background: var(--gold-metal);
  background-size: 220% 220%;
  background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.c-button--primary:hover {
  --btn-border: transparent;
  background-position: 100% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 28px -12px rgba(184, 137, 47, 0.75);
}

.c-button--dark {
  --btn-bg: var(--navy-900);
  --btn-fg: var(--white);
  --btn-border: var(--navy-900);
}

.c-button--dark:hover {
  --btn-bg: var(--navy-700);
  --btn-border: var(--navy-700);
}

.c-button--ghost {
  --btn-border: transparent;
  padding-inline: 0.6em;
}

.c-button--ghost:hover {
  --btn-border: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.c-button--sm {
  min-height: 36px;
  padding: 0.4em 0.9em;
  font-size: var(--step--2);
}

.c-button--lg {
  min-height: 52px;
  padding-inline: 1.8em;
  font-size: var(--step-0);
}

.c-button--icon {
  width: var(--target);
  padding: 0;
}

.c-button--block {
  width: 100%;
}

.c-button[disabled],
.c-button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.c-button[aria-busy="true"] {
  cursor: progress;
  position: relative;
  color: transparent;
}

.c-button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid var(--btn-fg);
  border-inline-end-color: transparent;
  animation: c-spin 700ms linear infinite;
}

@keyframes c-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Text link with a drafted underline that extends on hover */
.c-link {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur) var(--ease-out), color var(--dur-fast);
}

.c-link:hover {
  color: var(--accent-ink);
  background-size: 100% 2px;
}

/* css/components/chat.css */
/* The website chat (partials/chat.php, js/chat/): a button in the bottom inline-end corner of every public page (bottom right, bottom left
   in Hebrew, by the logical properties alone) and its panel, above the button on wide screens and the whole screen below 768 px. The panel
   sits outside every themed section, so it reads the light tokens. Corners are square, like everything else. */
.c-chat-button {
  position: fixed;
  inset-block-end: calc(var(--space-4) + var(--chat-lift, 0px) + env(safe-area-inset-bottom));
  inset-inline-end: var(--gutter);
  z-index: var(--z-popover);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 18px 22px;
  border: 0;
  /* Gold, with its words (client, 2026-11-22): it has to stand out on the navy sections as well as on the paper. */
  background: var(--gold-metal);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--navy-900);
  font: inherit;
  font-size: var(--step-0, 1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 30px -12px rgba(184, 137, 47, 0.8), var(--shadow-2);
  cursor: pointer;
  transition: background-position 0.45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.c-chat-button:hover,
.c-chat-button[aria-expanded="true"] {
  background-position: 100% 50%;
}

/* A white ring inside a navy one: visible on the light paper and on the navy sections the button floats over. */
.c-chat-button:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white), var(--shadow-2);
}

.c-chat-button .c-icon {
  width: 26px;
  height: 26px;
}

/* The pulse (client, 2026-11-22): a gold ring grows out of the button and fades every 3 s, until the chat is opened. */
.c-chat-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-400);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .c-chat-button[aria-expanded="false"]::after {
    animation: c-chat-pulse 3s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  }
}

@keyframes c-chat-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  60%, 100% { transform: scale(1.18, 1.4); opacity: 0; }
}

/* The site menu (header.js) opens in the header's layer (z-header), under the button's z-popover, so the button covered the menu's last
   links (2026-11-22). While it is open (body.has-menu-open, which the listings' filters drawer sets too), the button and the panel step
   aside: hidden, not removed, so an open conversation keeps its place and scroll. */
body.has-menu-open .c-chat-button,
body.has-menu-open .c-chat-panel {
  visibility: hidden;
}

/* A listing's page has its own bar at the bottom on phones and tablets: the button, and the panel above it, stand above the bar. */
@media (max-width: 1099.98px) {
  body:has(.property__bar) {
    --chat-lift: 4.5rem;
  }
}

/* ---- the panel */
.c-chat-panel {
  position: fixed;
  inset-block-end: calc(var(--space-4) + var(--chat-lift, 0px) + 56px + var(--space-3) + env(safe-area-inset-bottom));
  inset-inline-end: var(--gutter);
  z-index: var(--z-popover);
  display: flex;
  flex-direction: column;
  width: min(100vw - 2 * var(--gutter), 25rem);
  height: min(40rem, 100vh - var(--header-h) - 56px - 3 * var(--space-4) - var(--chat-lift, 0px));
  height: min(40rem, 100dvh - var(--header-h) - 56px - 3 * var(--space-4) - var(--chat-lift, 0px));
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-3);
}

@media (max-width: 767.98px) {
  .c-chat-panel {
    inset: 0;
    z-index: var(--z-dialog);
    width: auto;
    height: auto;
    border: 0;
    padding-block-end: env(safe-area-inset-bottom);
  }

  html.is-chat-full,
  html.is-chat-full body {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .c-chat-panel:not([hidden]) {
    animation: c-chat-in var(--dur) var(--ease-out);
  }
}

@keyframes c-chat-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.c-chat-panel__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
  padding-inline: var(--space-4) var(--space-2);
  border-block-start: 3px solid transparent;
  border-image: var(--gold-metal) 1;
  background: var(--navy-900);
  color: var(--white);
}

.c-chat-panel__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-display);
  line-height: var(--leading-snug);
  color: var(--white);
}

.c-chat-panel__close {
  --btn-fg: var(--white);
  --btn-border: transparent;
  flex: none;
}

.c-chat-panel__close:hover {
  --btn-border: var(--gold-300);
}

.c-chat-panel__close:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: -3px;
}

.c-chat-panel__body {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: var(--space-4);
  min-height: 0;
  padding: var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.c-chat-notice {
  padding: var(--space-3);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--step--2);
  line-height: 1.5;
}

.c-chat-notice a,
.c-chat-contact a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---- the conversation */
.c-chat-log {
  display: grid;
  gap: var(--space-3);
}

.c-chat-msg {
  display: grid;
  gap: var(--space-1);
  max-width: 90%;
  min-width: 0;
}

.c-chat-msg--bot {
  justify-self: start;
}

.c-chat-msg--visitor {
  justify-self: end;
}

.c-chat-msg__label {
  color: var(--accent-ink);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Text as it was typed: line breaks kept, nothing parsed, long words and addresses broken to fit. */
.c-chat-msg__text {
  padding: var(--space-2) var(--space-3);
  font-size: var(--step--1);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.c-chat-msg--bot .c-chat-msg__text {
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--gold-500);
  background: var(--surface);
  color: var(--text);
}

.c-chat-msg--visitor .c-chat-msg__text {
  background: var(--navy-900);
  color: var(--white);
}

.c-chat-typing {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 5px;
  min-height: 2.25rem;
  padding-inline: var(--space-3);
  border: 1px solid var(--border);
  background: var(--surface);
}

.c-chat-typing__dot {
  width: 7px;
  height: 7px;
  background: var(--gold-600);
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .c-chat-typing__dot {
    animation: c-chat-typing 1.1s ease-in-out infinite;
  }

  .c-chat-typing__dot--2 {
    animation-delay: 0.15s;
  }

  .c-chat-typing__dot--3 {
    animation-delay: 0.3s;
  }
}

@keyframes c-chat-typing {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* A message from the site itself: the limit, or the office's details when the assistant cannot answer. */
.c-chat-note {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--step--1);
  line-height: 1.5;
}

.c-chat-note p {
  margin-block-end: var(--space-1);
  white-space: pre-line;
}

.c-chat-note__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.c-chat-note__link:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---- listing cards, built by the server from the database */
.c-chat-cards {
  display: grid;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
  padding: 0;
  list-style: none;
}

.c-chat-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  min-height: var(--target);
  padding: var(--space-2);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

a.c-chat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

a.c-chat-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-chat-card__photo {
  width: 96px;
  height: 72px;
  object-fit: cover;
  background: var(--navy-800);
}

.c-chat-card__photo--none {
  display: grid;
  place-items: center;
  color: var(--gold-300);
}

.c-chat-card__photo--none .c-icon {
  width: 28px;
  height: 28px;
}

.c-chat-card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.c-chat-card__title {
  color: var(--heading);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

a.c-chat-card:hover .c-chat-card__title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.c-chat-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
}

.c-chat-card__badge {
  padding-inline: var(--space-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: var(--step--2);
  font-weight: 600;
}

.c-chat-card__meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--step--2);
}

/* ---- the contact card (field.css draws the fields, the checkbox and the error summary) */
.c-chat-contact {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-block-start: 3px solid var(--gold-500);
  background: var(--surface);
}

.c-chat-contact__title {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-display);
  line-height: var(--leading-snug);
}

.c-chat-contact__intro {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.c-chat-contact__summary-title {
  margin-block-end: var(--space-2);
  font-weight: 700;
}

.c-chat-contact__times {
  min-height: 4.5rem;
  resize: vertical;
}

/* ---- writing a message */
.c-chat-compose {
  display: grid;
  flex: none;
  gap: var(--space-2);
  padding: var(--space-3);
  border-block-start: 1px solid var(--border);
  background: var(--surface);
}

.c-chat-compose__input {
  width: 100%;
  min-height: var(--target);
  max-height: 8rem;
  padding: 0.55em 0.75em;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0); /* 16 px or more, so a phone does not zoom in */
  line-height: 1.45;
  resize: none;
}

.c-chat-compose__input:hover {
  border-color: var(--heading);
}

.c-chat-compose__input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--heading);
}

.c-chat-compose__input:disabled {
  background: var(--surface-2);
  cursor: not-allowed;
}

.c-chat-compose__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.c-chat-compose__counter {
  color: var(--text-muted);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
}

.c-chat-compose__counter.is-over {
  color: var(--danger);
  font-weight: 700;
}

.c-chat-compose__error {
  color: var(--danger);
  font-size: var(--step--2);
  font-weight: 600;
}

/* css/components/chip.css */
/* Chips (filter toggles), badges (status labels) and the energy-class tag */
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 36px;
  padding: 0.35em 0.9em;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}

.c-chip:has(input:checked),
.c-chip[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

[data-theme="dark"] .c-chip:has(input:checked),
[data-theme="dark"] .c-chip[aria-pressed="true"] {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--navy-900);
}

.c-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.c-chip:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.65em;
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.c-badge--gold {
  background: var(--gold-300);
  color: var(--navy-900);
}

.c-badge--light {
  background: var(--white);
  color: var(--navy-900);
}

.c-badge--success { background: var(--success); }
.c-badge--danger { background: var(--danger); }

/* Energy class tag — the arrow shape of the EU/Greek energy label */
.c-energy {
  --energy: #1E7A4F;
  --energy-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  height: 1.7em;
  padding-block: 0;
  padding-inline: 0.55em 0.95em;
  background: var(--energy);
  color: var(--energy-fg);
  clip-path: polygon(0 0, calc(100% - 0.6em) 0, 100% 50%, calc(100% - 0.6em) 100%, 0 100%);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.c-energy--a-plus { --energy: #00693C; }
.c-energy--a { --energy: #1E7A4F; }
.c-energy--b-plus { --energy: #2E7D32; }
.c-energy--b { --energy: #4E7A12; }
.c-energy--c { --energy: #C8D400; --energy-fg: #10172A; }
.c-energy--d { --energy: #FFD500; --energy-fg: #10172A; }
.c-energy--e { --energy: #F7A600; --energy-fg: #10172A; }
.c-energy--f { --energy: #B8420A; }
.c-energy--g { --energy: #B3261E; }
.c-energy--pending,
.c-energy--exempt { --energy: var(--silver-300); --energy-fg: #10172A; }

/* css/components/dialog.css */
/* Native <dialog> (sound intro, lightbox, confirmations) */
.c-dialog {
  margin: auto; /* the global margin reset removes the native centring of modal dialogs */
  width: min(100% - 2 * var(--gutter), 30rem);
  max-height: calc(100dvh - 2 * var(--space-6));
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
  overflow: auto;
}

.c-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(6px);
}

.c-dialog__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-6) var(--space-6);
  position: relative;
}

.c-dialog__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
}

.c-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.c-dialog__close {
  position: absolute;
  top: var(--space-2);
  inset-inline-end: var(--space-2);
}

@media (prefers-reduced-motion: no-preference) {
  .c-dialog[open] {
    animation: c-dialog-in var(--dur-slow) var(--ease-out);
  }

  .c-dialog[open]::backdrop {
    animation: c-fade-in var(--dur) ease-out;
  }
}

@keyframes c-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes c-fade-in {
  from {
    opacity: 0;
  }
}

/* css/components/dropdown.css */
/* Designed dropdown (js/modules/dropdown.js): the native select stays in place but invisible (so a validation
   message still points at the field), the combobox (.c-select.c-dropdown__box) shows the value, and the listbox
   opens in the top layer (popover), where no scrolling container can clip it. */
.c-dropdown {
  position: relative;
  min-width: 0;
}

.c-dropdown__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.c-dropdown__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.c-dropdown.is-open .c-dropdown__box {
  border-color: var(--heading);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 10l4.5-4.5L12.5 10' fill='none' stroke='%237C879A' stroke-width='1.6'/%3E%3C/svg%3E");
}

.c-dropdown__box[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.c-dropdown__value,
.c-dropdown__sizer {
  grid-area: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-dropdown__sizer {
  height: 0;
  visibility: hidden;
}

.c-dropdown__sizer > span {
  display: block;
}

.c-dropdown__list {
  position: fixed;
  inset: auto;
  max-width: min(28rem, calc(100vw - 16px));
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
}

.c-dropdown__list.is-animated:popover-open {
  animation: c-dropdown-in 140ms var(--ease-out);
}

.c-dropdown__list.is-animated.is-up:popover-open {
  animation-name: c-dropdown-in-up;
}

@keyframes c-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes c-dropdown-in-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.c-dropdown__option {
  position: relative;
  padding-block: 0.55em;
  padding-inline: 2.1em 1em;
  white-space: nowrap;
  cursor: pointer;
}

.c-dropdown__option.is-active {
  background: var(--surface-2);
  color: var(--heading);
  box-shadow: inset 3px 0 0 var(--accent);
}

[dir="rtl"] .c-dropdown__option.is-active {
  box-shadow: inset -3px 0 0 var(--accent);
}

.c-dropdown__option[aria-selected="true"] {
  color: var(--heading);
  font-weight: 700;
}

.c-dropdown__option[aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 0.8em;
  width: 0.8em;
  height: 0.8em;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.6 3.4L13.5 4.5' fill='none' stroke='%2395701F' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.c-dropdown__option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (forced-colors: active) {
  .c-dropdown__option.is-active {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* css/components/field.css */
/* Form fields */
.c-field {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.c-field__label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--heading);
}

.c-field__optional {
  font-weight: 500;
  color: var(--text-muted);
}

.c-field__hint {
  font-size: var(--step--2);
  color: var(--text-muted);
}

.c-field__error {
  display: flex;
  gap: 0.4em;
  align-items: flex-start;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--danger);
}

[data-theme="dark"] .c-field__error {
  color: #FFB4AB;
}

.c-input,
.c-select,
.c-textarea {
  width: 100%;
  min-height: var(--target);
  padding: 0.65em 0.85em;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.4;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.c-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.c-select {
  appearance: none;
  padding-inline-end: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%237C879A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 1em;
}

[dir="rtl"] .c-select {
  background-position: left 0.75em center;
}

.c-input:hover,
.c-select:hover,
.c-textarea:hover {
  border-color: var(--heading);
}

.c-input:focus-visible,
.c-select:focus-visible,
.c-textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--heading);
}

[aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px var(--danger);
}

/* Checkbox rows: a real checkbox, drawn square in base.css */
.c-check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  min-height: 32px;
  font-size: var(--step--1);
  line-height: 1.5;
  cursor: pointer;
}

.c-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
}

/* Range sliders (sound panel, mortgage) */
.c-range {
  width: 100%;
  height: var(--target);
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Error summary at the top of a form */
.c-error-summary {
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
  color: var(--text);
}

.c-error-summary:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-error-summary h2 {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.c-error-summary ul {
  padding-inline-start: 1.2em;
}

.c-error-summary a {
  color: var(--danger);
  font-weight: 600;
}

/* Honeypot: hidden from people, visible to naive bots */
.c-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.c-form-success {
  padding: var(--space-6);
  border: 1px solid var(--success);
  border-inline-start-width: 4px;
  background: var(--surface);
}

.c-form-success:focus {
  outline: 3px solid var(--focus);
}

/* Form layout lives here, not in a page stylesheet, so the admin bundle (login, account, inquiries) gets it
   too. Fields keep an even rhythm; the submit button sits further away, separating "fill in" from "act". */
.c-form,
.c-form__fields {
  display: grid;
  gap: var(--space-4);
}

.c-form > .c-button[type="submit"] {
  margin-top: var(--space-4);
}

/* On a right-to-left page, a left-to-right field (phone, e-mail, figures) still lines up with its label. */
[dir="rtl"] .c-input[dir="ltr"] {
  text-align: end;
}

/* css/components/footer.css */
.site-footer {
  padding-top: var(--space-10);
  background-color: var(--navy-950);
  font-size: var(--step--1);
}

.site-footer a {
  color: var(--frost);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-9);
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: auto;
    padding-inline-end: var(--space-8);
  }
}

.site-footer__logo {
  width: min(300px, 100%);
  margin-bottom: var(--space-5);
}

.site-footer__about {
  max-width: 42ch;
  color: var(--mist);
  margin-bottom: var(--space-5);
}

.site-footer__address {
  display: grid;
  gap: var(--space-1);
  color: var(--frost);
}

.site-footer__label,
.site-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.site-footer__col ul {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.site-footer__col a {
  display: inline-block;
  padding-block: 0.3em;
}

.site-footer__bottom {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-7);
  border-top: 1px solid var(--border);
  color: var(--mist);
}

@media (min-width: 900px) {
  .site-footer__bottom {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-footer__legal,
  .site-footer__copy {
    justify-self: end;
  }

  .site-footer__copy {
    grid-column: 2;
  }
}

.site-footer__legal-ids,
.site-footer__legal,
.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__legal a,
.site-footer__copy a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.site-footer__langs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.site-footer__langs a[aria-current="true"] {
  color: var(--gold-300);
  font-weight: 700;
}

.site-footer__social {
  display: flex;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: inline-grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--border);
}

/* css/components/header.css */
/* Site header — navy, sticky, collapses into a drawer below 1200 px */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  isolation: isolate;
  background-color: transparent;
  transition: box-shadow var(--dur) var(--ease-out);
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block of the fixed-position mobile drawer and collapse it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: color-mix(in srgb, var(--navy-900) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(7, 15, 36, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease-out);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 64px;
}

/* The logo is the one item that gives way: it takes its preferred size (flex-basis) and shrinks when the
   menu and tools need the row, so the header never overflows. */
.site-header__logo {
  display: block;
  flex: 0 1 clamp(220px, 22vw, 340px);
  min-width: 0;
  transition: flex-basis var(--dur) var(--ease-out);
}

.site-header__logo .c-logo {
  width: 100%;
}

.site-header.is-scrolled .site-header__logo {
  flex-basis: clamp(200px, 19vw, 300px);
}

.site-header__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-1);
  margin-inline-start: auto;
}

.site-header__tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: var(--target);
  height: var(--target);
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  color: var(--frost);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

.site-header__tool:hover {
  background: rgba(233, 237, 245, 0.08);
  color: var(--white);
}

.site-header__tool .c-icon {
  width: 22px;
  height: 22px;
}

.site-header__count {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold-300);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.site-header .site-header__icon-close,
.site-header.is-menu-open .site-header__icon-open {
  display: none;
}

.site-header.is-menu-open .site-header__icon-close {
  display: inline-block;
}

/* Primary navigation */
.site-nav__list {
  display: flex;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--space-3);
  color: var(--frost);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  inset-inline-start: var(--space-3);
  inset-inline-end: var(--space-3);
  bottom: 8px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav__link:hover {
  color: var(--white);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold-300);
}

.site-nav__contact {
  display: none;
}

/* 1280–1439 px (the full menu starts at 1280 px): the Greek nav plus the tools only fit if the menu links
   are tighter. It must come after the base .site-nav__link rule, which would otherwise win. */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .site-nav__link {
    padding-inline: var(--space-2);
  }

  .site-nav__link::after {
    inset-inline-start: var(--space-2);
    inset-inline-end: var(--space-2);
  }
}

@media (min-width: 1280px) {
  .site-nav {
    flex: none;
    margin-inline-start: var(--space-4);
  }

  .site-header__menu-btn {
    display: none;
  }
}

@media (max-width: 1279.98px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-menu);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-6) var(--gutter) var(--space-8);
    background: var(--navy-950);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }

  .site-header.is-scrolled .site-nav {
    inset-block-start: 64px;
  }

  .site-header.is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav__link {
    width: 100%;
    min-height: 60px;
    padding: 0;
    font-family: var(--font-display);
    font-size: var(--step-3);
    font-weight: var(--weight-display);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__contact {
    display: grid;
    gap: var(--space-3);
  }

  .site-nav__contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--target);
    color: var(--frost);
    text-decoration: none;
    font-weight: 600;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    gap: var(--space-2);
  }

  .site-header__tool {
    min-width: 40px;
    padding: 0 4px;
  }
}

body.has-menu-open {
  overflow: hidden;
}

/* css/components/icon.css */
.c-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}

/* Arrows (back, next, previous) point the reading way. */
[dir="rtl"] .c-icon--dir {
  transform: scaleX(-1);
}

.c-logo {
  display: block;
  height: auto;
}

/* css/components/language-menu.css */
/* Language menu in the header: a <details> whose button shows the current language's flag and code, and whose
   list names every language in that language. Logical properties throughout, so it mirrors on Hebrew pages. */
.c-langmenu {
  position: relative;
}

.site-header__tool.c-langmenu__button {
  display: inline-flex;
  gap: var(--space-2);
  padding-inline: var(--space-2);
  border: 1px solid transparent;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
}

.c-langmenu__button::-webkit-details-marker {
  display: none;
}

.c-langmenu[open] > .c-langmenu__button {
  border-color: rgba(233, 201, 121, 0.6);
  background: rgba(233, 237, 245, 0.06);
}

.c-langmenu__flag {
  display: block;
  flex: none;
  width: 22px;
  height: 15px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.c-langmenu__button .c-langmenu__chevron {
  width: 14px;
  height: 14px;
  color: var(--gold-300);
  transition: transform var(--dur) var(--ease-out);
}

.c-langmenu[open] .c-langmenu__chevron {
  transform: rotate(180deg);
}

.c-langmenu__list {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: var(--z-popover);
  width: 230px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid rgba(233, 201, 121, 0.45);
  background: var(--navy-950);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

.c-langmenu__list a {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  padding-block: 8px;
  padding-inline: 13px 16px;
  border-inline-start: 3px solid transparent;
  color: var(--frost);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.c-langmenu__list a:hover,
.c-langmenu__list a:focus-visible {
  background: rgba(233, 237, 245, 0.06);
  color: var(--white);
}

.c-langmenu__list a[aria-current="true"] {
  border-inline-start-color: var(--gold-300);
  background: rgba(233, 201, 121, 0.08);
  color: var(--white);
}

.c-langmenu__tag {
  color: var(--mist);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Phones: the button keeps only the flag, and the list spans the header (the sticky header is its containing block). */
@media (max-width: 599.98px) {
  .c-langmenu {
    position: static;
  }

  .c-langmenu__code {
    display: none;
  }

  .c-langmenu__list {
    inset-block-start: 100%;
    inset-inline: var(--space-3);
    width: auto;
  }
}

@media (forced-colors: active) {
  .c-langmenu__list a[aria-current="true"] {
    border-inline-start-color: Highlight;
  }
}

/* css/components/listing-form.css */
/* Owner listing form (partials/forms/listing.php, modules/listing-photos.js) */
.c-listing-form__pair {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .c-listing-form__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* "Which area?" shows once "Another area" is chosen (or when it has an error); without :has() it always shows. */
@supports selector(:has(*)) {
  .c-listing-form__other {
    display: none;
  }

  .c-listing-form:has(select[name="area"] option[value="other"]:checked) .c-listing-form__other,
  .c-listing-form__other:has([aria-invalid="true"]) {
    display: block;
  }
}

.c-listing-form__private {
  padding: var(--space-3) var(--space-4);
  border-inline-start: 3px solid var(--gold-500);
  background: var(--gold-100);
  color: var(--ink);
  font-size: var(--step--1);
}

.c-listing-form__more {
  border-block: 1px solid var(--border);
}

.c-listing-form__more > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding-block: var(--space-2);
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.c-listing-form__more > summary::-webkit-details-marker {
  display: none;
}

.c-listing-form__more > summary::after {
  content: "+";
  margin-inline-start: auto;
  font-size: var(--step-1);
  line-height: 1;
}

.c-listing-form__more[open] > summary::after {
  content: "\2212";
}

.c-listing-form__more > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-listing-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  align-items: end;
  gap: var(--space-4);
  padding-block: var(--space-3) var(--space-5);
}

/* The summary already says these are optional. */
.c-listing-form__grid .c-field__optional {
  display: none;
}

.c-listing-form__features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-1) var(--space-4);
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.c-listing-form__features legend {
  margin-bottom: var(--space-3);
  padding: 0;
}

.c-listing-form__ref strong {
  font-variant-numeric: tabular-nums;
}

/* Photos: a drop zone with the picker button, thumbnails in order (the first is the cover) and a status line. */
.c-listing-photos {
  position: relative;
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}

.c-listing-photos.is-over {
  border-color: var(--focus);
  background: var(--gold-100);
}

.c-listing-photos__drop {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* With JavaScript the native input is replaced by the button (its label); it stays focusable. */
.js .c-listing-photos__input {
  position: absolute;
  top: var(--space-4);
  inset-inline-start: var(--space-4);
  width: 1px;
  height: 1px;
  opacity: 0;
}

.no-js .c-listing-photos__pick,
.no-js .c-listing-photos__drop {
  display: none;
}

.c-listing-photos__input:focus-visible + .c-listing-photos__pick {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-listing-photos__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-listing-photos__list:empty,
.c-listing-photos__status:empty {
  display: none;
}

.c-listing-photos__item {
  position: relative;
  display: grid;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: grab;
}

.c-listing-photos__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.c-listing-photos__cover {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  padding: 2px var(--space-2);
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--step--2);
  font-weight: 700;
}

.c-listing-photos__tools {
  display: flex;
  border-top: 1px solid var(--border);
}

.c-listing-photos__tool {
  display: inline-grid;
  flex: 1;
  place-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--heading);
  cursor: pointer;
}

.c-listing-photos__tool + .c-listing-photos__tool {
  border-inline-start: 1px solid var(--border);
}

.c-listing-photos__tool:hover:not(:disabled) {
  background: var(--surface-2);
}

.c-listing-photos__tool:disabled {
  color: var(--border-strong);
  cursor: default;
}

.c-listing-photos__tool:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.c-listing-photos__tool .c-icon {
  width: 18px;
  height: 18px;
}

.c-listing-photos__status {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--heading);
}

/* css/components/map.css */
.c-map {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.c-map__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-4);
  min-height: 22rem;
  padding: var(--space-6);
  text-align: center;
}

.c-map__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-300);
}

.c-map__note {
  max-width: 40ch;
  font-size: var(--step--1);
  color: var(--mist);
}

.c-map__canvas {
  height: clamp(22rem, 55vh, 34rem);
}

.c-map__canvas .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.c-map-pin span {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid var(--white);
  background: var(--gold-500);
  box-shadow: var(--shadow-2);
  transform: rotate(-45deg);
}

/* Leaflet's stylesheet loads after ours, rounds its controls, popups and tooltips, and sets its own fonts
   (Helvetica, Tahoma, Lucida Console). */
.leaflet-container :is(.leaflet-bar, .leaflet-bar a, .leaflet-control-layers, .leaflet-popup-content-wrapper, .leaflet-tooltip) {
  border-radius: 0 !important;
}

.leaflet-container,
.leaflet-container :is(.leaflet-control-zoom-in, .leaflet-control-zoom-out, .leaflet-popup-close-button) {
  font-family: var(--font-sans) !important;
}

.c-map .leaflet-popup-content {
  font-family: var(--font-sans);
  font-size: var(--step--1);
}

.c-map .leaflet-popup-content a {
  color: var(--navy-700);
  font-weight: 700;
}

/* css/components/navigation-bits.css */
/* Breadcrumbs, pagination, accordion, tabs */
.c-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.c-breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: var(--space-2);
  color: var(--border-strong);
}

.c-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.c-breadcrumbs a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.c-breadcrumbs [aria-current="page"] {
  color: var(--heading);
  font-weight: 600;
}

.c-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-9);
}

.c-pagination a,
.c-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: var(--target);
  min-height: var(--target);
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.c-pagination a:hover {
  border-color: var(--heading);
}

.c-pagination [aria-current="page"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.c-accordion {
  border-top: 1px solid var(--rule);
}

.c-accordion details {
  border-bottom: 1px solid var(--rule);
}

.c-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--target);
  padding: var(--space-5) 0;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.c-accordion summary::-webkit-details-marker {
  display: none;
}

.c-accordion summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--dur) var(--ease-out);
}

.c-accordion details[open] summary::after {
  transform: rotate(45deg);
}

.c-accordion__body {
  padding: 0 0 var(--space-6);
  color: var(--text-muted);
  max-width: var(--measure);
}

.c-tabs [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  border-bottom: 1px solid var(--rule);
}

.c-tabs [role="tab"] {
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--text-muted);
  font-weight: 700;
}

.c-tabs [role="tab"][aria-selected="true"] {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

/* css/components/page-hero.css */
/* Navy blueprint hero used by content pages */
.page-hero {
  position: relative;
  padding-block: calc(var(--section-pad) * 0.9) calc(var(--section-pad) * 0.75);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  max-width: 56rem;
  margin-inline-start: max(var(--gutter), (100% - var(--container)) / 2);
}

.page-hero h1 {
  font-size: var(--step-6);
}

.page-hero .c-breadcrumbs {
  margin-bottom: var(--space-2);
}

.page-hero .c-breadcrumbs ol {
  color: var(--mist);
}

.page-hero--error h1 {
  font-size: var(--step-5);
}

/* css/components/popover.css */
/* Anchored panels (sound mixer, menus) */
.c-popover {
  position: absolute;
  top: calc(100% + var(--space-3));
  inset-inline-end: 0;
  z-index: var(--z-popover);
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  padding: var(--space-5);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}

.c-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  inset-inline-end: 16px;
  width: 11px;
  height: 11px;
  background: inherit;
  border-inline-start: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Mirrored, the caret's two borders are the top and the right, so it turns the other way to point up. */
[dir="rtl"] .c-popover::before {
  transform: rotate(-45deg);
}

/* css/components/property-card.css */
/* Listing card: photo, then a compact title block of facts */
.c-property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  /* No transform here: GSAP moves the card (reveal, Flip), and a CSS transform transition makes its measurements lag. */
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.c-property-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.c-property-card:has(.c-property-card__link:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.c-property-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-800);
}

.c-property-card__media img,
.c-property-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter var(--dur);
}

@media (prefers-reduced-motion: no-preference) {
  .c-property-card:hover .c-property-card__media img {
    transform: scale(1.045);
  }
}

.c-property-card.is-sold .c-property-card__media img,
.c-property-card.is-rented .c-property-card__media img {
  filter: grayscale(0.7);
}

.c-property-card__badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 72px);
}

.c-fav {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out);
}

.c-fav:hover {
  transform: scale(1.06);
}

.c-fav .c-fav__on,
.c-fav[aria-pressed="true"] .c-fav__off {
  display: none;
}

.c-fav[aria-pressed="true"] .c-fav__on {
  display: inline-block;
  color: var(--danger);
}

/* A column whose last two rows (facts, then reference and energy class) sit at the foot of the card, so
   they line up across a row whatever the length of the title. */
.c-property-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.c-property-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--accent-ink);
}

.c-property-card__meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-inline-end: var(--space-3);
  vertical-align: -0.1em;
  background: var(--rule);
}

.c-property-card__title {
  hyphens: manual;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-display);
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.c-property-card__link {
  color: var(--heading);
  text-decoration: none;
}

.c-property-card__link:focus-visible {
  outline: none;
}

/* The whole card is the link target; the favourite button sits above it. */
.c-property-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.c-property-card__price {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--heading);
  font-variant-numeric: tabular-nums lining-nums;
}

.c-property-card__price small {
  margin-inline-start: 0.4em;
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--text-muted);
}

.c-property-card__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) 0;
  margin: auto 0 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.c-property-card__facts > div {
  padding-inline-end: var(--space-4);
}

.c-property-card__facts > div + div {
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--rule);
}

.c-property-card__facts dd {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}

.c-property-card__facts .c-icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--text-muted);
}

.c-property-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.c-property-card__energy,
.c-property-card__energy dd {
  margin: 0;
}

.c-property-card__energy .c-energy {
  font-size: 0.78rem;
  height: 1.6em;
}

.c-property-card__ref {
  font-size: var(--step--2);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Area cards (home rail, areas index) */
.c-area-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 2px;
  aspect-ratio: 4 / 5;
  padding: var(--space-5);
  overflow: hidden;
  background: var(--navy-800);
  color: var(--white);
  text-decoration: none;
}

.c-area-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.c-area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 15, 36, 0.9) 0%, rgba(7, 15, 36, 0.25) 55%, rgba(7, 15, 36, 0) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .c-area-card:hover img {
    transform: scale(1.05);
  }
}

.c-area-card__region {
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--gold-300);
}

.c-area-card__name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  line-height: 1.05;
}

.c-area-card__count {
  margin-top: var(--space-1);
  font-size: var(--step--1);
  color: var(--frost);
}

.c-checklist {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.c-checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.c-checklist .c-icon {
  margin-top: 0.2em;
  color: var(--accent);
}

/* css/components/search.css */
/* Property search panel */
.c-search {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}

@media (min-width: 640px) {
  .c-search {
    grid-template-columns: 1fr 1fr;
  }

  .c-search__tx,
  .c-search__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .c-search {
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) minmax(0, 0.85fr) auto;
    align-items: end;
    padding-block: var(--space-4);
    padding-inline: var(--space-5) var(--space-4);
  }

  /* No areas entered yet: the area list is left out. */
  .c-search--no-area {
    grid-template-columns: auto repeat(2, minmax(0, 1fr)) minmax(0, 0.85fr) auto;
  }

  .c-search__tx,
  .c-search__submit {
    grid-column: auto;
  }
}

.c-search__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.c-search__field label {
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--text-muted);
}

.c-search__tx {
  display: inline-flex;
  gap: 3px;
  align-self: end;
  min-inline-size: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border-strong);
  justify-self: start;
}

.c-segment {
  position: relative;
  cursor: pointer;
}

.c-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.c-segment span {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 1.1em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--heading);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

.c-segment input:checked + span {
  background: var(--navy-900);
  color: var(--white);
}

.c-segment input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-search__submit {
  min-width: 10rem;
}

/* 1100–1399 px: one row is tight, so the fields use slightly smaller text and padding (every option and the
   placeholder must show in full, Greek included), and below 1280 px the button shows only its icon. */
@media (min-width: 1100px) and (max-width: 1399.98px) {
  .c-search {
    gap: var(--space-3);
    padding-inline-start: var(--space-4);
  }

  .c-search .c-select,
  .c-search .c-input {
    padding-inline-start: 0.7em;
    font-size: 1rem;
  }

  .c-search .c-select {
    padding-inline-end: 1.9em;
    background-position: right 0.55em center;
  }

  [dir="rtl"] .c-search .c-select {
    background-position: left 0.55em center;
  }

  .c-search .c-segment span {
    padding: 0 0.8em;
  }

  .c-search__submit {
    min-width: 0;
    padding-inline: 1.1em;
  }
}

@media (min-width: 1100px) and (max-width: 1279.98px) {
  .c-search__submit {
    padding-inline: 0.95em;
  }

  .c-search__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* css/components/section.css */
/* Section headers: a drafting "dimension line" annotation replaces the generic caps eyebrow. */
.c-section-header {
  display: grid;
  gap: var(--space-4);
  max-width: 46rem;
  margin-bottom: var(--space-8);
}

.c-section-header--split {
  max-width: none;
}

@media (min-width: 900px) {
  .c-section-header--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    column-gap: var(--space-10);
  }

  .c-section-header--split .c-annotation {
    grid-column: 1 / -1;
  }
}

.c-annotation {
  display: inline-block;
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.c-section-header p {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 58ch;
}

/* Numbered steps — only for content that really is a sequence */
.c-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.c-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--rule);
}

.c-steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent);
}

.c-steps h3 {
  margin-bottom: var(--space-2);
}

.c-steps p {
  color: var(--text-muted);
  max-width: 60ch;
}

.c-section-header__aside {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

/* css/components/sound.css */
/* Sound control in the header + mixer popover + intro dialog */
.c-sound {
  position: relative;
}

.c-sound__toggle {
  gap: 2px;
}

/* The header button: off shows the muted speaker; on shows only the equaliser, which moves while
   something is playing and stands still otherwise. */
.c-sound__toggle .c-sound__icon {
  display: none;
}

.c-sound:not(.is-on) .c-sound__toggle .c-sound__icon--off {
  display: inline-flex;
}

.c-sound__bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.c-sound.is-on .c-sound__bars {
  display: inline-flex;
}

/* One animation, staggered per bar. It is paused while nothing plays (the bars hold their staggered
   heights) and runs while something does: only the play state changes, because a second `animation`
   shorthand would reset the per-bar delays and move all three bars in step. */
.c-sound__bars i {
  width: 3px;
  height: 100%;
  background: var(--gold-300);
  transform-origin: bottom;
  animation: c-sound-bar 1.1s ease-in-out infinite paused;
}

.c-sound.is-playing .c-sound__bars i {
  animation-play-state: running;
}

.c-sound__bars i:nth-child(2) { animation-delay: -0.4s; }
.c-sound__bars i:nth-child(3) { animation-delay: -0.8s; }

@keyframes c-sound-bar {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .c-sound__bars i {
    animation: none;
    transform: scaleY(0.6);
  }
}

.c-sound__panel {
  display: grid;
  gap: var(--space-4);
}

.c-sound__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.c-sound__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-display);
}

.c-sound__note {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.c-sound__channels {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.c-sound__label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--heading);
}

.c-sound__row {
  display: grid;
  grid-template-columns: var(--target) 1fr 3.2rem;
  align-items: center;
  gap: var(--space-2);
}

.c-sound__value {
  font-size: var(--step--1);
  font-weight: 700;
  text-align: end;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.c-sound__mute {
  display: inline-grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
}

.c-sound__mute .c-sound__icon--off,
.c-sound__mute[aria-pressed="true"] .c-sound__icon--on {
  display: none;
}

.c-sound__mute[aria-pressed="true"] .c-sound__icon--off {
  display: inline-flex;
}

.c-sound__mute[aria-pressed="true"] {
  color: var(--danger);
}

.c-sound.is-off .c-sound__channels {
  opacity: 0.55;
}

.c-sound__disable {
  justify-self: start;
  padding-inline: 0;
}

/* Switch */
.c-switch {
  display: inline-flex;
  align-items: center;
  min-width: var(--target);
  min-height: var(--target);
  padding: 0;
  border: 0;
  background: none;
}

.c-switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  background: var(--silver-500);
  transition: background-color var(--dur-fast);
}

.c-switch__thumb {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out);
}

.c-switch[aria-checked="true"] .c-switch__track {
  background: var(--navy-700);
}

.c-switch[aria-checked="true"] .c-switch__thumb {
  transform: translateX(20px);
}

[dir="rtl"] .c-switch[aria-checked="true"] .c-switch__thumb {
  transform: translateX(-20px);
}

/* Custom range track/thumb */
.c-range {
  -webkit-appearance: none;
  appearance: none;
  height: var(--target);
  background: transparent;
}

.c-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(var(--navy-700), var(--navy-700)) 0 / var(--fill, 50%) 100% no-repeat, var(--silver-300);
}

/* Right to left the thumb starts on the right, so the fill does too. */
[dir="rtl"] .c-range::-webkit-slider-runnable-track {
  background: linear-gradient(var(--navy-700), var(--navy-700)) 100% 0 / var(--fill, 50%) 100% no-repeat, var(--silver-300);
}

.c-range::-moz-range-track {
  height: 4px;
  background: var(--silver-300);
}

.c-range::-moz-range-progress {
  height: 4px;
  background: var(--navy-700);
}

.c-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid var(--navy-700);
  background: var(--white);
}

.c-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy-700);
  background: var(--white);
}

.c-range:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* First-visit prompt: a card in the top-right corner, under the header and lined up with the header's right
   edge (the wide container), with no backdrop. It is a manual popover, so it sits in the top layer. */
.c-dialog--sound {
  position: fixed;
  inset-block: calc(var(--header-h) + var(--space-3)) auto;
  inset-inline: auto calc((100% - min(100% - 2 * var(--gutter), var(--container-wide))) / 2);
  width: min(100% - 2 * var(--gutter), 24rem);
  max-height: calc(100dvh - var(--header-h) - 2 * var(--space-3));
  margin: 0;
}

/* Top-layer popovers get a ::backdrop too, and .c-dialog's would dim and blur the page. */
.c-dialog--sound::backdrop {
  display: none;
}

.c-dialog--sound .c-dialog__body {
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: 3px solid transparent;
  border-image: var(--gold-metal) 1;
}

.c-dialog--sound .c-dialog__title {
  font-size: var(--step-2);
}

.c-dialog--sound__wave {
  width: 96px;
  height: 24px;
  color: var(--gold-600);
}

.c-dialog--sound p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .c-dialog--sound:popover-open {
    animation: c-sound-intro-in var(--dur-slow) var(--ease-out);
  }
}

@keyframes c-sound-intro-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@media (max-width: 420px) {
  .c-dialog--sound .c-dialog__actions .c-button {
    flex: 1 1 100%;
  }
}

/* css/components/stepform.css */
/* Stepped forms (valuation, owner listing): one fieldset per step, driven by modules/form-steps.js.
   Without JavaScript every step shows, one after the other. */
.c-stepform__progress {
  display: flex;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-4);
  list-style: none;
  counter-reset: none;
}

.c-stepform__progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 3px solid var(--rule);
  color: var(--text-muted);
  font-size: var(--step--2);
  font-weight: 700;
  overflow-wrap: break-word; /* a label word wider than its third of a phone (Λεπτομέρειες, Kontaktdaten) */
  hyphens: auto;
}

/* Small phones: the number above its label, so each label has the step's full width. */
@media (max-width: 479.98px) {
  .c-stepform__progress li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.c-stepform__progress li[aria-current="step"],
.c-stepform__progress li.is-done {
  border-top-color: var(--navy-900);
  color: var(--heading);
}

.c-stepform__num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid currentColor;
  flex: none;
}

.c-stepform__step {
  display: grid;
  gap: var(--space-4);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.c-stepform__step + .c-stepform__step {
  margin-top: var(--space-6);
}

.js .c-stepform.is-stepped .c-stepform__step + .c-stepform__step {
  margin-top: 0;
}

.c-stepform__legend {
  margin-bottom: var(--space-4);
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  color: var(--heading);
}

.c-stepform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  margin-top: var(--space-4);
}

.c-stepform__actions [type="submit"] {
  margin-inline-start: auto;
}

/* css/components/titleblock.css */
/* The signature component: listing facts set like the title block of an architect's drawing. */
.c-titleblock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  border: 1px solid var(--rule);
  background: var(--surface);
}

.c-titleblock__cell {
  display: grid;
  gap: 0.15em;
  align-content: start;
  padding: var(--space-3) var(--space-4);
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-block: 0 -1px;
  margin-inline: 0 -1px;
}

.c-titleblock__label {
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--text-muted);
}

.c-titleblock__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-display);
  line-height: 1.15;
  color: var(--heading);
  font-variant-numeric: lining-nums;
}

.c-titleblock__value small {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}

.c-titleblock--compact .c-titleblock__cell {
  padding: var(--space-2) var(--space-3);
}

.c-titleblock--compact .c-titleblock__value {
  font-size: var(--step-0);
  font-family: var(--font-sans);
  font-weight: 700;
}

/* css/components/toast.css */
.c-toast-region {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  z-index: var(--z-toast);
  display: grid;
  gap: var(--space-2);
  width: min(100% - 2 * var(--gutter), 26rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.c-toast {
  padding: var(--space-3) var(--space-5);
  background: var(--navy-950);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  box-shadow: var(--shadow-2);
  pointer-events: auto;
}

/* css/components/transition.css */
/* swup page transitions: content fades and lifts; a gold drafting line runs across the top meanwhile */
html.is-changing .transition-main {
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

html.is-animating .transition-main {
  opacity: 0;
  transform: translateY(12px);
}

html.is-changing::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: calc(var(--z-toast) + 2);
  height: 2px;
  background: var(--gold-metal);
  transform-origin: left;
  animation: hb-progress 900ms var(--ease-out) forwards;
}

@keyframes hb-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  html.is-animating .transition-main {
    transform: none;
  }
}

/* css/components/video.css */
/* Custom YouTube player: YouTube's own UI is cropped away and made non-interactive */
.c-video + .c-video {
  margin-top: var(--space-6);
}

.c-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-950);
}

.c-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur);
}

.c-video.is-playing .c-video__poster,
.c-video.is-started .c-video__poster {
  opacity: 0;
}

.c-video.is-ended .c-video__poster {
  opacity: 1;
}

.c-video__mount {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Taller than the frame and shifted up: crops YouTube's title bar and logo */
.c-video__mount iframe {
  position: absolute;
  inset-inline-start: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  border: 0;
}

.c-video__shield {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.c-video__start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(7, 15, 36, 0.55), rgba(7, 15, 36, 0.05));
  color: var(--navy-900);
  cursor: pointer;
}

.c-video__start-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  background: var(--gold-metal);
  box-shadow: var(--shadow-3);
  transition: transform var(--dur) var(--ease-out);
}

.c-video__start-icon .c-icon {
  width: 30px;
  height: 30px;
  margin-inline-start: 4px;
}

.c-video__start:hover .c-video__start-icon {
  transform: scale(1.06);
}

.c-video__start:focus-visible {
  outline-offset: -6px;
}

.c-video.is-started .c-video__start {
  display: none;
}

.c-video.is-ended .c-video__start {
  display: grid;
}

.c-video__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--navy-950);
  color: var(--white);
}

.c-video__btn {
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
}

.c-video__btn:hover {
  color: var(--gold-300);
}

.c-video .c-video__icon-play,
.c-video.is-paused .c-video__icon-pause,
.c-video .c-video__icon-muted,
.c-video.is-muted .c-video__icon-sound {
  display: none;
}

.c-video.is-paused .c-video__icon-play,
.c-video.is-muted .c-video__icon-muted {
  display: inline-flex;
}

.c-video__seek {
  flex: 1;
  min-width: 4rem;
  accent-color: var(--gold-300);
}

.c-video__seek::-webkit-slider-runnable-track {
  background: linear-gradient(var(--gold-300), var(--gold-300)) 0 / var(--fill, 0%) 100% no-repeat, rgba(233, 237, 245, 0.25);
}

[dir="rtl"] .c-video__seek::-webkit-slider-runnable-track {
  background: linear-gradient(var(--gold-300), var(--gold-300)) 100% 0 / var(--fill, 0%) 100% no-repeat, rgba(233, 237, 245, 0.25);
}

.c-video__seek::-webkit-slider-thumb {
  border-color: var(--gold-300);
}

.c-video__time {
  flex: none;
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
}

.c-video__note {
  margin-top: var(--space-2);
  font-size: var(--step--2);
  color: var(--text-muted);
}

.c-video:fullscreen {
  display: grid;
  grid-template-rows: 1fr auto;
  background: #000;
}

.c-video:fullscreen .c-video__frame {
  aspect-ratio: auto;
  height: 100%;
}

.c-video:fullscreen .c-video__note {
  display: none;
}

.c-video.is-ended .c-video__poster {
  z-index: 2;
}

.c-video.is-ended .c-video__start {
  z-index: 3;
}

/* css/pages/content.css */
/* Content pages: areas, services, sell, international, about, FAQ, contact, legal */
.c-cta-band {
  padding-block: var(--space-10);
}

.c-cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .c-cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.c-cta-band h2 {
  font-size: var(--step-4);
}

/* Areas */
.areas-group + .areas-group {
  margin-top: var(--space-10);
}

.areas-group__title {
  margin-bottom: var(--space-6);
  font-size: var(--step-3);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-6);
  padding: 0;
  margin: 0;
  list-style: none;
}

.areas-grid__intro {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.area-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(26rem, 60vh, 38rem);
  padding-block: var(--space-10) var(--space-9);
  overflow: hidden;
}

.area-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 15, 36, 0.92) 0%, rgba(7, 15, 36, 0.55) 45%, rgba(7, 15, 36, 0.2) 100%);
}

.area-hero__inner {
  gap: var(--space-4);
}

.area-hero h1 {
  font-size: var(--step-6);
}

.area-hero .c-breadcrumbs ol {
  color: var(--frost);
}

.area-lang-note {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  font-size: var(--step--1);
}

.area-layout {
  display: grid;
  gap: var(--space-9);
  align-items: start;
}

@media (min-width: 1000px) {
  .area-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  }

  .area-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* Services */
.services-list {
  border-top: 1px solid var(--rule);
}

.services-item {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-9);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}

@media (min-width: 900px) {
  .services-item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-10);
  }
}

.services-item h2 {
  margin-bottom: var(--space-4);
  font-size: var(--step-4);
}

/* Shared content bits */
.content-why {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.content-why .c-titleblock__cell {
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5);
}

.content-why__title {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  color: var(--heading);
}

.content-why dd {
  margin: 0;
  color: var(--text-muted);
}

.content-figure,
.content-figure-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-sticky .c-section-header {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .content-sticky {
    align-items: start;
  }

  .content-sticky > .c-section-header {
    position: sticky;
    top: calc(var(--header-h) + var(--space-8));
  }
}

.content-costs {
  border-top: 1px solid var(--rule);
}

.content-costs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}

.content-costs dt {
  font-weight: 700;
  color: var(--heading);
}

.content-costs dd {
  margin: 0;
  color: var(--text-muted);
}

.content-note {
  margin-top: var(--space-5);
  font-size: var(--step--1);
  color: var(--text-muted);
  max-width: 70ch;
}

.content-note--dark {
  color: var(--mist);
}

.content-form-card {
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.content-team {
  display: grid;
  gap: var(--space-6);
  padding: 0;
  margin: 0;
  list-style: none;
}

.content-team .c-agent {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  background: var(--surface);
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 1000px) {
  .faq-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-10);
  }

  .faq-nav {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

.faq-nav ul {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
  list-style: none;
  border-inline-start: 1px solid var(--rule);
}

.faq-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}

.faq-nav a:hover {
  color: var(--heading);
}

.faq-group + .faq-group {
  margin-top: var(--space-10);
}

.faq-group h2 {
  margin-bottom: var(--space-4);
  font-size: var(--step-3);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: var(--space-9);
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-10);
  }

  .contact-office {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

.contact-office {
  display: grid;
  gap: var(--space-5);
}

.contact-office h2 {
  font-size: var(--step-3);
}

.contact-office__address {
  display: grid;
  gap: 2px;
  font-size: var(--step-1);
}

.contact-office__hours,
.contact-office__gemi {
  font-size: var(--step--1);
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .c-form__fields--two {
    grid-template-columns: 1fr 1fr;
  }

  .c-form__fields--two > [data-field="message"],
  .c-form__fields--two > [data-field="consent"],
  .c-form__fields--two > div:last-child {
    grid-column: 1 / -1;
  }
}

/* Legal */
.legal-body h2 {
  font-size: var(--step-2);
}

/* css/pages/home.css */
/* Home */
.home-hero {
  --search-overlap: 56px;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
}

.home-hero__elevation {
  inset-block: auto calc(var(--search-overlap) + 40px);
  inset-inline: max(-120px, calc((100% - var(--container-wide)) / 2 - 210px)) auto;
  z-index: -1;
  width: clamp(220px, 24vw, 380px);
  height: auto;
  color: var(--navy-500);
  opacity: 0.32;
}

.home-hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1100px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.home-hero__title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-top: var(--space-4);
}

.home-hero__lead {
  margin-top: var(--space-5);
  max-width: 46ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--mist);
}

.home-hero__actions {
  margin-top: var(--space-7);
}

.home-hero__media {
  position: relative;
  margin-block: 70px 0;
  margin-inline: 40px 0;
}

.home-hero__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

.home-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-blueprint--frame {
  overflow: visible;
  color: var(--gold-400);
}

.c-blueprint--frame text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.home-hero__search {
  position: relative;
  z-index: 2;
  margin-top: var(--space-10);
  margin-bottom: calc(-1 * var(--search-overlap));
}

/* Desktop: the search panel belongs to the first screen. Type, photo and spacing scale with the window's
   height as well as its width, so the panel ends inside the viewport on short laptop screens too. */
@media (min-width: 1100px) {
  /* The hero fills the screen below the header (header + hero = 100svh), with the search panel inside it near
     the bottom instead of overlapping the next section. Spare height goes around the copy and photo. */
  .home-hero {
    --hero-vh: 1svh;
    --hero-pad-bottom: clamp(1.25rem, 3svh, 2.5rem);
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h) - 1px); /* 1px: the header's bottom border */
    padding-top: clamp(1.25rem, calc(3.5 * var(--hero-vh)), 4.5rem);
    padding-bottom: var(--hero-pad-bottom);
  }

  /* While the chat is on, its button holds the bottom corner of every screen (chat.css: 1rem from the edge, 56px tall), and it covered
     the Search button from 1280 to 1536 px wide (2026-11-22). So the panel ends a gap above the button, and every size below that scales
     with the height (--hero-vh, one hundredth of it) is worked out for a screen the button's 72px shorter, which the hero already fits. */
  body:has(.c-chat-button) .home-hero {
    --hero-vh: calc((100svh - 72px) / 100);
    --hero-pad-bottom: calc(var(--space-4) + 56px + var(--space-4));
  }

  .home-hero__elevation {
    bottom: calc(var(--hero-pad-bottom) + 7rem + 40px);
  }

  .home-hero__grid {
    flex: 1;
    align-content: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
  }

  .home-hero__title {
    max-width: 19ch;
    margin-top: clamp(0.5rem, calc(1.5 * var(--hero-vh)), 1rem);
    font-size: clamp(2.4rem, min(1rem + 3.6vw, 7.8 * var(--hero-vh)), 5.2rem);
  }

  .home-hero__lead {
    margin-top: clamp(0.75rem, calc(2 * var(--hero-vh)), 1.5rem);
    font-size: clamp(1rem, calc(2.5 * var(--hero-vh)), 1.25rem);
  }

  .home-hero__actions {
    margin-top: clamp(1rem, calc(2.5 * var(--hero-vh)), 2.5rem);
  }

  /* Narrower buttons with slightly smaller text keep the two long Greek labels on one row from 1280px, so the
     search panel stays inside the first screen (checked at 1280×600 and 1366×657); below that they stack, close. */
  .home-hero__actions {
    row-gap: var(--space-2);
    column-gap: var(--space-2);
  }

  .home-hero__actions .c-button--lg {
    padding-inline: 0.9em;
    font-size: clamp(0.9rem, 0.55rem + 0.5vw, 1.0625rem);
  }

  .home-hero__media {
    margin-top: 64px;
  }

  .home-hero__frame {
    aspect-ratio: auto;
    height: clamp(15rem, calc(46 * var(--hero-vh)), 27.5rem);
  }

  .home-hero__search {
    margin-top: clamp(1.25rem, calc(3 * var(--hero-vh)), 3.5rem);
    margin-bottom: 0;
  }
}

/* Trust strip, set like a title block */
.home-trust {
  padding: calc(56px + var(--space-8)) 0 var(--space-6);
}

@media (min-width: 1100px) {
  /* The desktop search panel no longer overlaps this section (see .home-hero above). */
  .home-trust {
    padding-top: var(--space-8);
  }
}

.home-trust__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
}

.home-trust__list li {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-inline-end: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.home-trust__title {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-display);
  line-height: 1.25;
}

.home-trust__list p {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.home-figures {
  padding-block: var(--space-8);
}

.home-figures__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-6);
}

.home-figures__list dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-5);
  color: var(--heading);
  line-height: 1;
}

.home-figures__list dt {
  order: 2;
  color: var(--text-muted);
}

.home-figures__list > div {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
}

/* Services */
.home-services__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 1000px) {
  .home-services__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-10);
  }

  .home-services__grid > .c-section-header,
  .home-process__grid > .c-section-header {
    position: sticky;
    top: calc(var(--header-h) + var(--space-8));
    align-self: start;
  }
}

.home-services__list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.home-services__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--rule);
}

.home-services__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--rule);
  color: var(--accent-ink);
}

.home-services__icon .c-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.home-services__item h3 {
  margin-bottom: var(--space-2);
}

.home-services__item h3 a {
  color: var(--heading);
  text-decoration: none;
}

.home-services__item h3 a:hover {
  text-decoration: underline;
}

.home-services__item p {
  color: var(--text-muted);
  max-width: 58ch;
}

/* Areas rail */
.home-areas {
  overflow: clip;
}

.home-areas__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-500) transparent;
  padding-bottom: var(--space-4);
}

.home-areas__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  margin: 0;
  padding: 0 max(var(--gutter), (100vw - var(--container-wide)) / 2);
  list-style: none;
}

.home-areas__item {
  width: clamp(250px, 23vw, 340px);
  scroll-snap-align: start;
}

.home-areas.is-pinned {
  padding-block: calc(var(--section-pad) * 0.7);
}

.home-areas.is-pinned .home-areas__viewport {
  overflow: visible;
}

/* Process */
.home-process__grid {
  align-items: start;
}

/* Sell */
/* 1100–1279px: the copy column is narrow, so the four-line title follows the width too; with the stacked buttons
   the search panel still fits the first screen (1100×700). */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .home-hero__title {
    font-size: clamp(2.4rem, min(3.8vw, 7.8svh), 5.2rem);
  }
}

/* Free listing for owners, right after the hero: a white sheet with a gold top edge on the paper background, the
   client's copy on the left, "0 €" as the one large figure on the right, and the other facts in a row underneath. */
.home-list__panel {
  display: grid;
  gap: var(--space-7);
  padding: clamp(var(--space-6), 4vw, var(--space-9));
  border: 1px solid var(--border);
  border-top: 4px solid transparent;
  border-image: var(--gold-metal) 1;
  border-image-width: 4px 0 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* Grid items may shrink below their content (long Greek words, the long button label). */
.home-list__panel > * {
  min-width: 0;
}

.home-list__copy h2 {
  max-width: 18ch;
}

@media (max-width: 599.98px) {
  .home-list__copy .c-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.home-list__copy .u-lead {
  max-width: 40em;
  margin-top: var(--space-4);
  color: var(--text-muted);
}

.home-list__tagline {
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--heading);
}

.home-list__amount {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-2);
  margin: 0;
}

.home-list__amount-label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--accent-ink);
}

.home-list__amount strong {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 6vw, 9rem);
  font-weight: var(--weight-display);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold-600);
}

.home-list__amount span:last-child {
  max-width: 18em;
  font-size: var(--step-1);
  color: var(--heading);
}

.home-list__facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.home-list__fact {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}

.home-list__fact dt {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--accent-ink);
}

.home-list__fact dd {
  margin: 0;
  line-height: 1.5;
  color: var(--text);
}

@media (min-width: 900px) {
  .home-list__panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    column-gap: var(--space-9);
  }

  .home-list__amount {
    padding-inline-start: var(--space-7);
    border-inline-start: 1px solid var(--rule);
  }

  .home-list__facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
  }

  .home-list__fact {
    padding-block: var(--space-5) var(--space-2);
    padding-inline: 0 var(--space-6);
    border-bottom: 0;
  }

  .home-list__fact + .home-list__fact {
    padding-inline-start: var(--space-6);
    border-inline-start: 1px solid var(--rule);
  }
}

/* International */
.home-international {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-pad);
}

.home-international__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-international::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 15, 36, 0.94) 0%, rgba(7, 15, 36, 0.82) 48%, rgba(7, 15, 36, 0.3) 100%);
}

/* The copy sits on the darkest side, which right to left is the right. */
[dir="rtl"] .home-international::after {
  background: linear-gradient(270deg, rgba(7, 15, 36, 0.94) 0%, rgba(7, 15, 36, 0.82) 48%, rgba(7, 15, 36, 0.3) 100%);
}

.home-international__copy {
  display: grid;
  gap: var(--space-5);
  max-width: 38rem;
}

/* FAQ + contact */
.home-faq .c-section-header {
  margin-bottom: var(--space-6);
}

.home-contact .c-titleblock {
  background: var(--surface);
}

.c-titleblock__value a {
  color: inherit;
  text-decoration: none;
}

.c-titleblock__value a:hover {
  text-decoration: underline;
}

.home-contact__email {
  overflow-wrap: anywhere;
}

.home-contact__block {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
}

.home-contact__block .c-titleblock__value {
  font-size: var(--step-1);
  white-space: nowrap;
}

.home-contact__block .c-titleblock__cell:last-child {
  grid-column: 1 / -1;
}

/* css/pages/listings.css */
/* Listings: filter rail + results */
.listings {
  padding-block: var(--space-8) var(--section-pad);
}

.listings__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 1100px) {
  .listings__layout {
    grid-template-columns: 19rem minmax(0, 1fr);
    gap: var(--space-9);
  }

  .listings__filters {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    max-height: calc(100vh - var(--header-h) - var(--space-8));
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Room on both sides, so the fields and their focus rings are not cut by the scroll edge. */
    padding: 0 var(--space-3);
  }

  .listings__filters-close,
  .listings__filters-open {
    display: none;
  }
}

.listings__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.listings__filters-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-display);
}

@media (max-width: 1099.98px) {
  .listings__filters {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    padding: var(--space-5) var(--gutter) var(--space-8);
    background: var(--surface);
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(16px);
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }

  .listings__filters.is-open {
    visibility: visible;
    transform: none;
    opacity: 1;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
  }
}

/* Filter form */
.c-filters {
  display: grid;
  gap: var(--space-5);
}

.c-filters__group {
  display: grid;
  gap: var(--space-3);
  min-inline-size: 0;
  margin: 0;
  padding: var(--space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.c-filters__legend {
  float: inline-start;
  width: 100%;
  margin-bottom: var(--space-3);
  padding: 0;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--heading);
}

.c-filters__legend + * {
  clear: both;
}

.c-filters__tx {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border-strong);
}

.c-filters__tx a {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 38px;
  color: var(--heading);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
}

.c-filters__tx a[aria-current="page"] {
  background: var(--navy-900);
  color: var(--white);
}

.c-filters__chips {
  --cluster-gap: var(--space-2);
}

.c-filters__chips .c-chip {
  min-height: 34px;
  padding: 0.25em 0.75em;
  font-size: var(--step--2);
}

.c-chip--energy {
  padding: 0.2em 0.35em !important;
}

.c-chip--energy:has(input:checked) {
  background: var(--surface) !important;
  border-color: var(--navy-900) !important;
  box-shadow: 0 0 0 2px var(--navy-900);
}

.c-filters__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.c-filters__range .c-field__label {
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--text-muted);
}

.c-filters__segments {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border-strong);
}

.c-filters__segments .c-segment {
  flex: 1;
}

.c-filters__segments .c-segment span {
  width: 100%;
  padding: 0 0.4em;
}

.c-filters__checks {
  display: grid;
  gap: var(--space-1);
}

.c-filters__more summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
}

.c-filters__actions {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-2);
  background: linear-gradient(to bottom, transparent, var(--bg) 20%);
}

@media (max-width: 1099.98px) {
  .c-filters__actions {
    background: linear-gradient(to bottom, transparent, var(--surface) 20%);
  }
}

/* Toolbar */
.listings__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.listings__count {
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  color: var(--heading);
}

.listings__sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step--1);
  font-weight: 700;
}

.listings__sort .c-select {
  width: auto;
  min-width: 13rem;
}

/* Phones: the label sits above a full-width menu, so the longest option shows in full. */
@media (max-width: 559.98px) {
  .listings__sort {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .listings__sort .c-select {
    width: 100%;
    min-width: 0;
  }
}

.listings__views {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border-strong);
}

.listings__views button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 38px;
  padding: 0 0.9em;
  border: 0;
  background: transparent;
  color: var(--heading);
  font-size: var(--step--1);
  font-weight: 700;
}

.listings__views button[aria-pressed="true"] {
  background: var(--navy-900);
  color: var(--white);
}

/* Columns follow the space beside the filters, not the window: cards stay at least 17.5rem wide, so their facts
   fit on one line, and there are never more than three. */
.listings__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(17.5rem, (100% - 2 * var(--space-6)) / 3)), 1fr));
}

.listings__results[aria-busy="true"] {
  opacity: 0.55;
  transition: opacity var(--dur);
}

/* Filtered results fade in from the dimmed busy state. Opacity only: nothing in the grid moves. */
@media (prefers-reduced-motion: no-preference) {
  .listings__results.is-fresh {
    animation: listings-fresh 260ms var(--ease-out);
  }
}

@keyframes listings-fresh {
  from {
    opacity: 0.55;
  }
}

.listings__map {
  margin-bottom: var(--space-6);
}

.listings__note {
  margin-top: var(--space-8);
  font-size: var(--step--2);
  color: var(--text-muted);
  max-width: 70ch;
}

@media (max-width: 640px) {
  .listings__sort {
    width: 100%;
  }

  .listings__sort .c-select {
    flex: 1;
    min-width: 0;
  }
}

/* Empty state */
.c-empty {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding: var(--space-8);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}

.c-empty h2 {
  font-size: var(--step-3);
}

.c-empty p {
  color: var(--text-muted);
  max-width: 56ch;
}

/* css/pages/property.css */
/* Property detail */
.property__head {
  padding: var(--space-7) 0 var(--space-6);
}

.property__head .c-breadcrumbs {
  margin-bottom: var(--space-5);
}

.property__head-grid {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

@media (min-width: 900px) {
  .property__head-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-9);
  }
}

.property__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--accent-ink);
}

.property__kicker span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-inline-end: var(--space-3);
  vertical-align: -0.1em;
  background: var(--rule);
}

.property__title {
  font-size: var(--step-5);
  max-width: 22ch;
  hyphens: manual;
}

.property__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.property__price {
  display: grid;
  gap: var(--space-1);
  justify-items: start;
}

@media (min-width: 900px) {
  .property__price {
    justify-items: end;
    text-align: end;
  }
}

.property__price-value {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--heading);
  font-variant-numeric: lining-nums;
}

.property__price-sqm {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
}

.property__price-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.c-fav--inline {
  position: static;
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

/* Gallery mosaic */
.c-gallery {
  position: relative;
}

.c-gallery__grid {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
}

.c-gallery__item {
  min-height: 0;
}

.c-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-800);
  cursor: zoom-in;
  overflow: hidden;
}

.c-gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity var(--dur);
}

@media (prefers-reduced-motion: no-preference) {
  .c-gallery__open:hover img {
    transform: scale(1.03);
  }
}

.c-gallery__open:focus-visible {
  outline-offset: -4px;
}

.c-gallery__item:first-child {
  aspect-ratio: 3 / 2;
}

@media (max-width: 899.98px) {
  .c-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .c-gallery__item:first-child {
    grid-column: 1 / -1;
  }

  .c-gallery__item:nth-child(n + 4) {
    display: none;
  }

  .c-gallery__item:not(:first-child) {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 900px) {
  .c-gallery__grid--5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(26rem, 52vw, 40rem);
  }

  .c-gallery__grid--5 .c-gallery__item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  .c-gallery__grid--1 .c-gallery__item:first-child {
    max-height: 40rem;
    aspect-ratio: 16 / 9;
  }

  .c-gallery__grid--2,
  .c-gallery__grid--3,
  .c-gallery__grid--4 {
    grid-template-columns: 2fr 1fr;
    height: clamp(24rem, 46vw, 36rem);
  }

  .c-gallery__grid--3 .c-gallery__item:first-child,
  .c-gallery__grid--4 .c-gallery__item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
}

.c-gallery__all {
  position: absolute;
  inset-inline-end: var(--space-4);
  bottom: var(--space-4);
  background: var(--white);
  color: var(--navy-900);
  --btn-border: transparent;
  box-shadow: var(--shadow-2);
}

/* Lightbox */
.c-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--navy-950);
  color: var(--frost);
}

.c-lightbox::backdrop {
  background: var(--navy-950);
}

.c-lightbox__stage {
  position: absolute;
  inset: var(--space-9) var(--space-9) var(--space-11);
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

@media (max-width: 700px) {
  .c-lightbox__stage {
    inset: var(--space-9) 0 var(--space-11);
  }
}

.c-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.c-lightbox__bar {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-inline-end: var(--gutter);
  bottom: var(--space-5);
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  font-size: var(--step--1);
}

.c-lightbox__counter {
  flex: none;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

.c-lightbox__nav,
.c-lightbox__close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(233, 237, 245, 0.25);
  background: rgba(7, 15, 36, 0.6);
  color: var(--white);
}

.c-lightbox__nav:hover,
.c-lightbox__close:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.c-lightbox__nav--prev {
  inset-inline-start: var(--space-4);
  top: 50%;
  translate: 0 -50%;
}

.c-lightbox__nav--next {
  inset-inline-end: var(--space-4);
  top: 50%;
  translate: 0 -50%;
}

.c-lightbox__close {
  top: var(--space-4);
  inset-inline-end: var(--space-4);
}

/* Layout: content + sticky enquiry column */
.property__layout {
  display: grid;
  gap: var(--space-9);
  padding-block: var(--space-8) var(--section-pad);
}

@media (min-width: 1100px) {
  .property__layout {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: var(--space-10);
  }

  /* Taller than the window, so it scrolls on its own: the wheel over it scrolls the panel, not the page. */
  .property__aside-inner {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    max-height: calc(100vh - var(--header-h) - 2 * var(--space-5));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.property__facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

.property__section {
  margin-top: var(--space-9);
}

.property__section > h2 {
  margin-bottom: var(--space-5);
  font-size: var(--step-3);
}

.property__description h3 {
  font-family: var(--font-sans);
  font-size: var(--step-1);
}

.property__lang-note,
.property__notice {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  font-size: var(--step--1);
}

.property__notice {
  margin-top: var(--space-5);
}

.property__updated {
  margin-top: var(--space-5);
  font-size: var(--step--1);
  color: var(--text-muted);
}

.property__features {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  column-gap: var(--space-6);
}

.property__details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  column-gap: var(--space-8);
  border-top: 1px solid var(--rule);
}

.property__details > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.property__details dt {
  color: var(--text-muted);
}

.property__details dd {
  margin: 0;
  font-weight: 700;
  color: var(--heading);
  text-align: end;
}

.property__map {
  margin-top: var(--space-5);
}

/* Agent + forms column */
.property__aside-inner {
  display: grid;
  gap: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.property__aside-inner .c-agent {
  display: grid;
  gap: var(--space-5);
}

.c-agent__head {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.c-agent__photo {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
}

.c-agent__photo--mono {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--navy-900);
}

.c-agent__photo--mono .c-logo {
  width: 100%;
}

.c-agent__label {
  font-size: var(--step--2);
  font-weight: 700;
  color: var(--accent-ink);
}

.c-agent__name {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-1);
  color: var(--heading);
  line-height: 1.2;
}

.c-agent__role {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.c-agent__links {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.c-agent__links a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.c-agent__links a:hover {
  color: var(--accent-ink);
}

.c-agent__links .c-icon {
  color: var(--accent-ink);
}

.property__forms [role="tablist"] {
  margin-bottom: var(--space-5);
}

.property__forms [role="tab"] {
  flex: 1;
}

.js .c-tabs [role="tabpanel"][hidden] {
  display: none;
}

.c-tabs [role="tabpanel"] + [role="tabpanel"] {
  margin-top: var(--space-6);
}

.js .c-tabs.is-ready [role="tabpanel"] + [role="tabpanel"] {
  margin-top: 0;
}

/* Mortgage */
.c-mortgage {
  padding: var(--space-6);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.c-mortgage__title {
  margin-bottom: var(--space-5);
  font-size: var(--step-2);
}

.c-mortgage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-4) var(--space-6);
}

.c-mortgage__grid output {
  float: inline-end;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}

.c-mortgage__result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

.c-mortgage__result dt {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.c-mortgage__result dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-3);
  color: var(--heading);
  font-variant-numeric: lining-nums tabular-nums;
}

.c-mortgage__note {
  font-size: var(--step--2);
  color: var(--text-muted);
}

/* Share */
.c-share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

.c-share__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
}

.c-share__btn:hover {
  border-color: var(--heading);
}

/* Mobile action bar */
.property__bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-2);
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px);
}

/* Longer labels (Russian, German) wrap inside the button rather than push the bar off the screen. */
.property__bar .c-button {
  white-space: normal;
}

@media (min-width: 1100px) {
  .property__bar {
    display: none;
  }
}

.property__similar h2 {
  font-size: var(--step-4);
}

@media print {
  .property__aside,
  .property__similar,
  .property__bar,
  .c-gallery__all,
  .property__price-actions,
  .c-mortgage {
    display: none !important;
  }

  .property__layout {
    display: block;
    padding: 0;
  }

  .c-gallery__grid {
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
  }

  .c-gallery__item:nth-child(n + 4) {
    display: none;
  }

  .property__title {
    font-size: 24pt;
  }
}

/* css/pages/sell.css */
/* Sell page: the owner listing form beside its "what happens next" title block (above it on phones). */
.sell-listing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a long word in the form must not widen the page */
  gap: var(--space-7);
  align-items: start;
}

.sell-listing__aside {
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  background-color: var(--bg);
  color: var(--text);
}

.sell-listing__aside-title {
  margin-bottom: var(--space-4);
  font-size: var(--step-2);
}

.sell-listing__facts {
  grid-template-columns: 1fr;
}

.sell-listing__facts .c-titleblock__label {
  color: var(--gold-300);
}

.sell-listing__facts dd {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1099.98px) {
  .sell-listing__aside {
    order: -1;
  }
}

@media (min-width: 1100px) {
  .sell-listing__grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  }

  .sell-listing__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

/* css/print.css */
@media print {
  @page {
    margin: 14mm;
  }

  [data-theme] {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    font-size: 11pt;
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .c-sound,
  .c-dialog,
  .no-print,
  .c-video,
  .c-map,
  .c-share,
  form,
  .u-skip-link {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  img {
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    color: #0B1A3A !important;
    break-after: avoid;
  }

  .print-only {
    display: block !important;
  }
}

.print-only {
  display: none;
}

