/* ==========================================================
   KIZILORS INVESTMENT
   Palette: Famagusta at dusk. Deep harbour water, the golden
   limestone of the walled city, and the ochre light on it.
   ========================================================== */

:root {
  --night: #0C2427;      /* deep harbour, darkest surface */
  --harbour: #144A4E;    /* sea teal */
  --harbour-2: #1D5E62;
  --limestone: #EDE4D3;  /* city walls */
  --shell: #F8F5EF;      /* page background */
  --paper: #FFFDF9;      /* cards on shell */
  --ochre: #B98A44;      /* sunset on stone, the one accent */
  --ochre-deep: #8E6526;
  --ink: #17282A;        /* body text on light */
  --ink-2: #4D5F60;      /* secondary text */
  --mist: #9FB3B1;
  --line: rgba(23, 40, 42, .12);
  --line-light: rgba(255, 255, 255, .28);
  --wa: #25D366;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius-lg: clamp(20px, 2.4vw, 32px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type scale (modular, 1.25) ---------- */
.display-xl { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.015em; }
.display-l  { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -.01em; }
.display-m  { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.18; }
.lede       { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 58ch; }
.small      { font-size: 14px; }
.muted      { color: var(--ink-2); }
.label      { font-size: 14px; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 6px 6px 22px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ochre); color: #fff;
  transition: transform .45s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--dark { background: var(--night); color: #fff; border-color: var(--night); }
.btn--dark:hover { background: var(--harbour); }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--line-light); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--plain { padding: 0 22px; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #06361B; }
.btn--wa:hover { background: #1fbf5b; }
.btn--block { width: 100%; justify-content: center; }

.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; background: #fff; color: var(--night);
  font-size: 14px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.pill:hover { background: var(--ochre); color: #fff; }

.textlink {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.textlink:hover { background-size: 100% 1px; }

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line-light);
  transition: border-color .45s var(--ease);
}
.header.is-solid, .header--solid {
  background: rgba(248, 245, 239, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
}
.header.is-solid .header__inner, .header--solid .header__inner { border-color: transparent; }
.header.is-solid { box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }

.logo { display: flex; align-items: baseline; gap: 8px; line-height: 1; white-space: nowrap; }
.logo__mark { font-family: var(--serif); font-size: 24px; letter-spacing: .02em; }
.logo__sub { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: .85; }
/* Company logo: light version over the photo, dark version once the header turns light */
.logo__img { display: block; height: 60px; width: auto; }
.logo__img--dark { display: none; }
.header.is-solid .logo__img--light, .header--solid .logo__img--light { display: none; }
.header.is-solid .logo__img--dark,  .header--solid .logo__img--dark  { display: block; }
.menu-open .header .logo__img--light { display: block; }
.menu-open .header .logo__img--dark  { display: none; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; }
.nav a { position: relative; padding: 6px 0; opacity: .9; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lang button {
  background: none; border: 0; padding: 6px 2px; opacity: .55; font-weight: 500;
  transition: opacity .3s;
}
.lang button[aria-pressed="true"] { opacity: 1; }
.lang__rule { width: 22px; height: 1px; background: currentColor; opacity: .6; }

.header .pill { }
.header.is-solid .pill, .header--solid .pill { background: var(--night); color: #fff; }
.header.is-solid .pill:hover, .header--solid .pill:hover { background: var(--ochre); }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--night); color: #fff;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(36px, 10vw, 56px); line-height: 1.15;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .18s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .24s; }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--mist); font-size: 15px; }
.mobile-menu__foot a { color: #fff; }

/* ==========================================================
   Hero
   ========================================================== */
.hero-frame { padding: 10px; }
.hero {
  position: relative; isolation: isolate;
  height: calc(100svh - 20px); min-height: 640px; max-height: 1080px;
  border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; background: var(--night);
}
.hero__media { position: absolute; inset: -6% 0 0 0; z-index: -2; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%;
  animation: heroZoom 2.8s var(--ease) both;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,36,39,.62) 0%, rgba(12,36,39,.14) 28%, rgba(12,36,39,.42) 55%, rgba(12,36,39,.9) 100%),
    linear-gradient(90deg, rgba(12,36,39,.35) 0%, rgba(12,36,39,0) 60%);
}
.hero .header__inner { }

.hero__body {
  position: absolute; inset: var(--header-h) 0 0 0;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  grid-template-rows: 1fr auto auto;
  padding: 32px var(--gutter) clamp(20px, 3vw, 36px);
  column-gap: 32px;
}

.hero__intro {
  grid-column: 2; grid-row: 2; align-self: end;
  padding-bottom: clamp(12px, 2vw, 28px);
}
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.12; margin-bottom: 18px;
}
.hero__text { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 36ch; }

.wordmark {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--serif); font-weight: 400;
  /* fills the space left of the intro column (wordmark is ~4.25em wide) */
  font-size: min(calc((100vw - 2 * var(--gutter) - 420px) / 4.25), 270px);
  line-height: .8; letter-spacing: -.035em;
  margin: 0 0 0 -.04em; align-self: end;
  pointer-events: none;
}
.wordmark__line { display: block; overflow: hidden; padding-top: .22em; margin-top: -.16em; padding-bottom: .02em; } /* room for the dots on Ö */
.wordmark__char { display: inline-block; animation: charRise 1.25s var(--ease) both; animation-delay: calc(.35s + var(--i) * .065s); }

.hero__base {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line-light);
  padding-top: 18px; margin-top: clamp(14px, 1.6vw, 22px);
}
.hero__sub { font-family: var(--serif); font-style: italic; font-size: 20px; white-space: nowrap; }
.hero__sub small { font-family: var(--sans); font-style: normal; font-size: 14px; opacity: .75; margin-left: 10px; }

.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px;
}
.hero__scroll i {
  width: 1px; height: 34px; background: rgba(255,255,255,.35); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: scrollLine 2.2s var(--ease-io) infinite 2.5s;
}

/* Floating featured card */
.hero-card {
  grid-column: 2; grid-row: 1; align-self: start; justify-self: end;
  width: 300px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  transition: background .35s var(--ease);
}
.hero-card:hover { background: rgba(255,255,255,.2); }
.hero-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.hero-card__k { font-size: 13px; opacity: .78; }
.hero-card__t { font-size: 15px; line-height: 1.3; margin: 2px 0 6px; }
.hero-card__p { font-family: var(--serif); font-size: 20px; }

@media (max-height: 760px) { .hero-card { display: none; } }

/* Glass search */
.search {
  display: flex; align-items: stretch; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.seg { display: flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.22); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid; place-items: center; padding: 0 16px; min-height: 40px; border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease);
}
.seg input:checked + label { background: #fff; color: var(--night); }
.seg input:focus-visible + label { outline: 2px solid var(--ochre); outline-offset: 2px; }

.field-select { position: relative; display: flex; }
.field-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; color: inherit;
  padding: 0 38px 0 16px; min-height: 46px; min-width: 150px; font-size: 15px; cursor: pointer;
}
.field-select select option { color: var(--ink); }
.field-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .8;
}
.search .divider { width: 1px; background: rgba(255,255,255,.22); margin: 8px 0; }
.search__go {
  display: inline-flex; align-items: center; gap: 10px; border: 0;
  padding: 0 20px; border-radius: 999px; background: var(--ochre); color: #fff; font-weight: 500; font-size: 15px;
  transition: background .3s var(--ease);
}
.search__go:hover { background: var(--ochre-deep); }
.search__go svg { width: 18px; height: 18px; }

/* Hero entrance for supporting elements */
.hero-in { animation: fadeUp 1s var(--ease) both; animation-delay: calc(1s + var(--d, 0) * .12s); }
.header--intro { animation: fadeIn 1.2s var(--ease) .15s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================
   About: limestone panel floating over the sea
   ========================================================== */
.about {
  position: relative; isolation: isolate;
  margin: clamp(80px, 9vw, 140px) 10px 0;
  padding: clamp(70px, 10vw, 150px) 0 clamp(70px, 9vw, 130px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--harbour);
  color: var(--ink);
}
.about__bg { position: absolute; inset: 0; z-index: -1; }
.about__bg img { width: 100%; height: 115%; object-fit: cover; opacity: .38; mix-blend-mode: luminosity; will-change: transform; }
.about__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,74,78,.4), rgba(12,36,39,.85)); }

.panel {
  background: linear-gradient(180deg, var(--paper), var(--limestone));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 64px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.45);
}
.panel__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); }
.panel__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.panel__side h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.panel__side p { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.panel__side em { color: var(--ochre-deep); font-style: normal; }
.panel__statement { font-family: var(--serif); font-size: clamp(26px, 2.9vw, 40px); line-height: 1.18; margin-bottom: 32px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(40px, 6vw, 90px); }
.stat {
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.55));
  border-radius: var(--radius); padding: clamp(18px, 2vw, 28px);
  min-height: clamp(150px, 16vw, 220px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat__n { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat__l { font-size: 15px; font-weight: 500; }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head p { margin-top: 14px; }

/* ---------- Listing cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.card { display: flex; flex-direction: column; gap: 16px; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 3.1; border-radius: var(--radius); overflow: hidden;
  background: var(--limestone);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.05); } }
.chip {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--night); font-size: 13px; font-weight: 500;
}
.chip--rent { background: var(--night); color: #fff; }
.chip--closed { background: var(--ochre); color: #fff; }
.card--closed .card__media img { filter: grayscale(.55); }
.card__nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); opacity: .5; }
.card__nophoto svg { width: 40px; height: 40px; }
.price s { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin-left: 6px; }
.loading-note { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink-2); }
.card__ref { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: #fff; opacity: .85; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-family: var(--serif); font-size: 26px; line-height: 1; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.card__area { font-size: 14px; color: var(--ink-2); text-align: right; }
.card__title { font-size: 18px; font-weight: 500; line-height: 1.3; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.specs span { display: inline-flex; align-items: center; gap: 7px; }
.specs svg { width: 17px; height: 17px; opacity: .75; }

/* ---------- Areas ---------- */
.areas { background: var(--night); color: #fff; border-radius: var(--radius-lg); margin: 0 10px; position: relative; overflow: hidden; }
.areas .lede { color: var(--mist); }
.area-list { border-top: 1px solid rgba(255,255,255,.14); }
.area-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: padding .5s var(--ease), color .4s var(--ease);
}
.area-row__name { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 58px); line-height: 1; }
.area-row__note { color: var(--mist); font-size: 15px; max-width: 34ch; }
.area-row__count { font-size: 14px; color: var(--mist); min-width: 70px; text-align: right; }
@media (hover: hover) {
  .area-row:hover { padding-left: 18px; color: var(--limestone); }
}
.area-preview {
  position: absolute; left: 0; top: 0; width: 280px; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  z-index: 2;
}
.area-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.area-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buying process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); counter-reset: step; }
.step { padding-top: 22px; border-top: 1px solid var(--ink); }
.step__n { font-family: var(--serif); font-size: 15px; color: var(--ochre-deep); margin-bottom: 26px; display: block; }
.step h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin: 32px 0 36px; }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 14px; color: var(--ink-2); }
.contact__list dd { margin: 0; }
.map {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.6; background: var(--limestone);
  margin-top: 28px;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }

.form { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); }
.form h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 4px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input { display: grid; gap: 6px; }
.input label { font-size: 14px; color: var(--ink-2); }
.input input, .input select, .input textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--shell);
  transition: border-color .3s, background .3s;
}
.input textarea { min-height: 120px; resize: vertical; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--ochre); background: #fff; }
.input [aria-invalid="true"] { border-color: #B3412E; }
.input .err { font-size: 13px; color: #B3412E; min-height: 0; }
.form__note { font-size: 13px; color: var(--ink-2); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #fff; margin: clamp(60px, 8vw, 120px) 10px 10px; border-radius: var(--radius-lg); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer h4 { font-size: 14px; color: var(--mist); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--limestone); }
.footer__logo { display: block; width: 150px; height: auto; margin-bottom: 26px; }
.footer__lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; max-width: 20ch; }
.footer__word {
  font-family: var(--serif); font-size: min(19vw, 300px); line-height: .78; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(237,228,211,.28);
  margin-left: -.03em; white-space: nowrap; user-select: none;
}
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--mist); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  transform: scale(0); animation: popIn .6s var(--ease) 2.2s both;
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* ==========================================================
   Listings page
   ========================================================== */
.page-top { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 3vw, 40px); }
.page-top h1 { margin-bottom: 14px; }

.filters {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  background: rgba(255,253,249,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; padding: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  transition: top .45s var(--ease);
}
.header.is-hidden ~ main .filters { top: 10px; }
.filters .seg { background: var(--limestone); }
.filters .seg input:checked + label { background: var(--night); color: #fff; }
.filters .field-select { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filters .field-select select { min-width: 0; min-height: 44px; font-size: 14px; }
.filters__grow { flex: 1; }
.filters__count { font-size: 14px; color: var(--ink-2); padding: 0 8px; }
.link-btn { background: none; border: 0; padding: 8px 10px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.filters__toggle { display: none; }

.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.empty p { color: var(--ink-2); margin-bottom: 22px; }

/* ==========================================================
   Property detail
   ========================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

.gallery {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  height: clamp(320px, 52vw, 640px); border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.gallery button { padding: 0; border: 0; background: var(--limestone); overflow: hidden; position: relative; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.04); } }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--1 button:first-child { grid-row: 1 / 3; }
.gallery--2 button:nth-child(2) { grid-row: 1 / 3; }
.gallery__all {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(255,255,255,.95) !important; color: var(--night);
  min-height: 42px; padding: 0 18px !important; border-radius: 999px; font-size: 14px; font-weight: 500;
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 72px); margin-top: clamp(28px, 4vw, 56px); align-items: start; }
.detail__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.detail__head .price { font-size: clamp(32px, 3.4vw, 44px); }
.detail__where { color: var(--ink-2); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0; border: 1px solid var(--line); }
.fact { background: var(--paper); padding: 18px; }
.fact dt { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.fact dd { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.detail h2 { font-family: var(--serif); font-size: 28px; margin: 40px 0 16px; }
.detail__desc { font-size: 18px; line-height: 1.7; max-width: 66ch; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.features li { display: flex; gap: 10px; align-items: center; }
.features svg { width: 18px; height: 18px; color: var(--ochre-deep); flex: none; }
.deed-note { background: var(--limestone); border-radius: var(--radius); padding: 20px 22px; font-size: 15px; color: var(--ink); margin-top: 18px; }
.deed-note strong { font-weight: 600; }

.enquire { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.enquire h3 { font-family: var(--serif); font-size: 26px; }
.enquire p { font-size: 15px; color: var(--ink-2); }
.enquire .ref { font-size: 13px; color: var(--ink-2); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(8, 22, 24, .96); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-size: 14px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); overflow: hidden; touch-action: pan-y; }
.lightbox__stage img { max-height: 78svh; width: auto; max-width: 100%; border-radius: 12px; object-fit: contain; transition: opacity .3s, transform .45s var(--ease); }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 18px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  transition: background .3s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; }

.notfound { padding: 160px 0 60px; text-align: center; }

/* ==========================================================
   Motion
   ========================================================== */
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes charRise { from { transform: translateY(140%); } to { transform: none; } } /* 140%: the dots on Ö start hidden too */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 100%; } }

/* Scroll reveals: content stays visible if JS doesn't run */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease-io); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
@media (hover: hover) { .js .card:hover [data-reveal="clip"].is-in img { transform: scale(1.05); } }

.js [data-reveal="panel"] { opacity: 1; transform: translateY(60px) scale(.95); transition: transform 1.3s var(--ease); }
.js [data-reveal="panel"].is-in { transform: none; }

.js [data-reveal="line"] { opacity: 1; transform: none; }
.js [data-reveal="line"] .ln { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; } /* room for İ and accents */
.js [data-reveal="line"] .ln > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--l, 0) * 90ms); }
.js [data-reveal="line"].is-in .ln > span { transform: none; }

.js .step[data-reveal] { transform: none; opacity: 1; border-top-color: transparent; position: relative; }
.js .step[data-reveal]::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io); transition-delay: calc(var(--d, 0) * 140ms); }
.js .step[data-reveal] > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.3s + var(--d, 0) * 140ms); }
.js .step[data-reveal].is-in::before { transform: scaleX(1); }
.js .step[data-reveal].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal] img, .js [data-reveal] .ln > span, .js .step[data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .step[data-reveal]::before { transform: none !important; }
  .hero__scroll i::after { display: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .detail { grid-template-columns: 1fr; }
  .enquire { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .area-row__note { display: none; }
}

@media (max-width: 900px) {
  .hero__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; }
  .hero-card { display: none; }
  .hero__intro { grid-column: 1; grid-row: 2; padding-bottom: 22px; }
  .wordmark { grid-row: 3; font-size: 17.4vw; }
  .hero__base { grid-row: 4; flex-direction: column; align-items: stretch; }
  .hero__sub, .hero__scroll { display: none; }
  .search { flex-wrap: wrap; border-radius: 22px; }
  .search .seg { width: 100%; }
  .search .seg label { flex: 1; }
  .search .divider { display: none; }
  .search .field-select { flex: 1 1 40%; border-radius: 14px; background: rgba(0,0,0,.18); }
  .search .field-select select { min-width: 0; width: 100%; }
  .search__go { width: 100%; justify-content: center; min-height: 48px; }
  .panel__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }

  .filters { position: static; }
  .filters__toggle { display: inline-flex; }
  .filters__more { display: none; width: 100%; flex-wrap: wrap; gap: 8px; }
  .filters.is-open .filters__more { display: flex; }
  .filters__more .field-select { flex: 1 1 45%; }
  .filters__more .field-select select { width: 100%; }
}
@media (min-width: 901px) { .filters__more { display: contents; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .header__actions .pill { display: none; }
  .logo__img { height: 50px; }
  .logo__sub { display: none; }
  .hero-frame, .about, .areas, .footer { margin-inline: 6px; }
  .hero-frame { padding: 6px; }
  .hero { height: calc(100svh - 12px); min-height: 600px; }
  .grid-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; flex-direction: row; align-items: end; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .footer__top { grid-template-columns: 1fr; }
  .area-row { grid-template-columns: 1fr auto; }
  .area-row > svg { display: none; }
  .gallery { display: flex; height: auto; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; border-radius: var(--radius); gap: 8px; }
  .gallery button { flex: 0 0 88%; aspect-ratio: 4/3; scroll-snap-align: center; border-radius: var(--radius); }
  .gallery__all { display: none; }
  .features { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* 404 page */
.notfound-page { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px 16px; text-align: center; }
.notfound-page img { width: 120px; height: auto; }
.notfound-page .lede { margin: 0 auto; }
.notfound-page__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* Keep the WhatsApp button clear of the hosting badge (see avoidHostBadge in app.js) */
.has-host-badge .wa-float { bottom: calc(var(--badge-offset, 64px) + 10px); }

/* North Cyprus guide, FAQ and popular searches (SEO content) */
.guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); margin-bottom: clamp(40px, 5vw, 64px); }
.guide__grid article { padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.guide__grid h3 { font-size: 20px; font-weight: 500; }
.guide__grid p { color: var(--ink-2); font-size: 15px; }
.guide__grid .textlink { justify-self: start; font-size: 15px; }
.faq__h { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ochre-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 18px; max-width: 70ch; }
.footer__seo { padding: 6px 0 34px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__seo h4 { margin: 22px 0 12px; }
.footer__seo ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__seo a { color: var(--limestone); opacity: .85; font-size: 14px; }
.footer__seo a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 900px) { .guide__grid { grid-template-columns: 1fr; } }

/* ---------- Villages (köyler) inside the neighbourhoods section ---------- */
.villages { margin-top: clamp(56px, 7vw, 96px); }
.villages__h { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.villages__p { color: var(--mist); margin: 12px 0 clamp(28px, 3vw, 40px); max-width: 60ch; }
.villages__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.villages__col h4 {
  font-size: 15px; font-weight: 500; color: var(--limestone);
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.villages__col h4 small { color: var(--mist); font-size: 13px; margin-left: 6px; }
.village-list { display: flex; flex-wrap: wrap; gap: 8px; }
.village-list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: rgba(255,255,255,.88);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.village-list a:hover { background: var(--limestone); border-color: var(--limestone); color: var(--night); }
.village-list a span {
  font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: var(--ochre); color: #fff;
}
@media (max-width: 760px) { .villages__grid { grid-template-columns: 1fr; } }
