/* Cankat Keskin — RE/MAX Masa. One token set; every surface reads it. */
:root {
  --bg: #12110F;
  --surface: #181714;
  --surface-2: #171613;
  --footer: #0D0C0B;
  --line: #2A2723;
  --line-strong: #3A362F;
  --line-button: #4A453E;
  --text: #EDE8DF;
  --text-2: #C9C2B6;
  --muted: #A39C90;
  --faint: #6F685E;
  --accent: #C8AB78;
  --accent-hover: #D4BA88;
  --on-accent: #12110F;
  --destructive: #E59A8A;
  --radius: 2px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: 40px;
}
@media (max-width: 720px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
/* Native dropdown lists: the open list must not inherit a transparent background with light text. */
select { color-scheme: dark; }
select option, select optgroup { background-color: var(--surface); color: var(--text); }
select option:checked { background-color: var(--accent); color: var(--on-accent); }
select option:disabled { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ph { background: repeating-linear-gradient(135deg, #1B1916 0 14px, #1F1D1A 14px 28px); }
.serif { font-family: var(--serif); font-weight: 400; }
.kicker { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.label-caps { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.1; }
.lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 620px; }
.link-underline { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; border-bottom: 1px solid var(--accent); padding-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: var(--radius); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { border-color: var(--line-button); color: var(--text); background: transparent; font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); }

/* Header */
.site-header { position: relative; border-bottom: 1px solid transparent; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand img { height: 76px; width: auto; flex: none; }
.brand .divider { width: 1px; height: 48px; background: var(--line-strong); flex: none; }
.brand a { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand .name { font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.brand .role { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav .nav-cta { padding: 12px 22px; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle { display: none; width: 48px; height: 48px; flex: none; background: transparent; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1080px) {
  .site-header { border-bottom-color: var(--line); }
  .site-header .bar { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .brand { gap: 12px; }
  .brand img { height: 52px; }
  .brand .divider { display: none; }
  .brand .name { font-size: 28px; }
  .brand .role { font-size: 10px; letter-spacing: 0.16em; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .nav-cta { border: 0; border-radius: 0; min-height: 0; padding: 18px var(--gutter); }
}
@media (max-width: 380px) { .brand img { height: 44px; } .brand .name { font-size: 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.footer-grid a { color: var(--text-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: #8C857A; }

/* Listing cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; transition: opacity .2s; }
.card-grid[aria-busy="true"] { opacity: 0.55; }
.card { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card.tall .media { aspect-ratio: 4 / 5; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .media img { transform: scale(1.03); }
.badge { position: absolute; top: 16px; left: 16px; background: var(--bg); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 12px; }
.card .body { display: flex; flex-direction: column; gap: 8px; }
.card .area { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card .title { font-family: var(--serif); font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.card .specs { font-size: 14px; color: var(--muted); }
.card .price { font-size: 18px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.card:hover .title { color: var(--accent-hover); }
.skeleton .media { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .line { height: 14px; background: #1F1D1A; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.state-note { padding: 48px 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.state-note.error { color: var(--destructive); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--text); border-radius: var(--radius); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip:hover { border-color: var(--accent); }

/* Forms (rendered from the live Wix schema) */
.wform { display: flex; flex-direction: column; gap: 24px; }
.wform .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.wform.stack .fields { grid-template-columns: 1fr; gap: 16px; }
.wform .field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.wform .field.wide { grid-column: 1 / -1; }
.wform input[type="text"], .wform input[type="email"], .wform input[type="tel"], .wform input[type="url"], .wform input[type="number"], .wform input[type="password"], .wform input[type="date"], .wform input[type="time"], .wform input[type="datetime-local"], .wform select, .wform textarea {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); min-height: 50px; padding: 0 14px; font-size: 15px; color-scheme: dark;
}
.wform textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.wform input:focus, .wform select:focus, .wform textarea:focus { border-color: var(--accent); outline: none; }
.wform [aria-invalid="true"] { border-color: var(--destructive) !important; }
.wform .help { font-size: 12px; color: var(--faint); }
.wform .err { font-size: 13px; color: var(--destructive); min-height: 0; margin: 0; }
.wform .err:empty { display: none; }
.wform .check { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text-2); cursor: pointer; }
.wform .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.wform .choice-list { display: flex; flex-direction: column; gap: 10px; }
.wform .phone { display: flex; }
.wform .phone .dial { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; background: var(--bg); color: var(--muted); font-size: 15px; }
.wform .req { color: var(--accent); }
.wform .form-error { color: var(--destructive); font-size: 14px; margin: 0; }
.wform .form-error:empty { display: none; }
.wform .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.compact .wform .fields input, .compact .wform select { background: var(--bg); min-height: 46px; }
.compact .wform textarea { background: var(--bg); }
.form-skeleton { display: grid; gap: 16px; }
.form-skeleton div { height: 50px; background: #1F1D1A; animation: pulse 1.4s ease-in-out infinite; }
.thanks { display: flex; flex-direction: column; gap: 14px; }
.thanks .t-head { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--accent); }
.thanks p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.compact .thanks .t-head { font-size: 28px; }

/* Rich text from the CMS */
.prose p { margin: 0 0 1em; font-size: 17px; line-height: 1.8; color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }

/* Bülten rows (home, bulten.html, a post's "other posts") */
.post-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.post-list[aria-busy="true"] { opacity: 0.55; }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.post-row.has-cover { grid-template-columns: 140px minmax(0, 1fr) 260px; }
.post-row .when { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.post-row .when .m { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.post-row .when .y { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.post-row .txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.post-row .title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
.post-row .excerpt { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 720px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-row .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.post-row .read { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); margin-top: 4px; }
.post-row .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-row:hover .title { color: var(--accent-hover); }
.post-row:hover .thumb img { transform: scale(1.03); }
.post-row.skeleton .line { height: 14px; }
@media (max-width: 720px) {
  .post-row, .post-row.has-cover { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .post-row .when { flex-direction: row; align-items: baseline; gap: 10px; padding-top: 0; }
  .post-row .when .m { font-size: 24px; }
  .post-row .thumb { order: -1; aspect-ratio: 16 / 9; }
}
