/**
 * Estate — temel katman (reset, tipografi, düzen, buton, form, header, footer).
 *
 * Tüm renk / ölçü / tipografi değerleri inc/css-vars.php tarafından üretilen
 * tokenlardan gelir. Buradaki :root bloğu yalnızca yedektir.
 */

/* ==========================================================================
   1. Token yedekleri
   ========================================================================== */

:root {
	--e-primary: #10375c;
	--e-primary-dark: #0b2742;
	--e-primary-light: #eef3f8;
	--e-primary-soft: #dce6f0;
	--e-primary-rgb: 16, 55, 92;
	--e-on-primary: #fff;
	--e-accent: #c98a2e;
	--e-on-accent: #fff;
	--e-bg: #fff;
	--e-surface: #f6f7f9;
	--e-surface-2: #eff1f4;
	--e-card: #ffffff;
	--e-border: #e4e7ec;
	--e-border-soft: #f0f2f5;
	--e-heading: #0f172a;
	--e-text: #42505f;
	--e-muted: #6b7787;
	--e-faint: #98a2b3;
	--e-link: #10375c;
	--e-button: #10375c;
	--e-button-text: #fff;
	--e-button-hover: #0b2742;
	--e-sale: #0f766e;
	--e-rent: #b45309;

	--e-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--e-font-heading: var(--e-font-body);
	--e-weight-heading: 700;
	--e-weight-strong: 600;
	--e-tracking-tight: -.02em;
	--e-tracking-caps: .08em;

	--e-fs-display: clamp(40px, 5.4vw, 76px);
	--e-fs-h1: clamp(30px, 4vw, 46px);
	--e-fs-h2: clamp(24px, 2.7vw, 34px);
	--e-fs-h3: 21px;
	--e-fs-h4: 17.5px;
	--e-fs-lead: clamp(16.5px, 1.2vw, 19px);
	--e-fs-lg: 18px;
	--e-fs-base: 16px;
	--e-fs-sm: 14px;
	--e-fs-xs: 12.5px;
	--e-fs-label: 11.5px;
	--e-fs-price: 19px;
	--e-fs-price-lg: clamp(26px, 2.6vw, 36px);

	--e-lh-tight: 1.12;
	--e-lh-snug: 1.3;
	--e-lh-body: 1.65;

	--e-s1: 4px;   --e-s2: 8px;   --e-s3: 12px;  --e-s4: 16px;
	--e-s5: 24px;  --e-s6: 32px;  --e-s7: 40px;  --e-s8: 48px;
	--e-s9: 64px;  --e-s10: 80px; --e-s11: 96px; --e-s12: 120px;

	--e-1: var(--e-s1); --e-2: var(--e-s2); --e-3: var(--e-s3);
	--e-4: var(--e-s4); --e-5: var(--e-s5); --e-6: var(--e-s6);
	--e-7: var(--e-s8); --e-8: var(--e-s9); --e-9: var(--e-s11);

	--e-section: clamp(56px, 6vw, 96px);
	--e-section-lg: clamp(72px, 8vw, 120px);
	--e-section-sm: clamp(40px, 4vw, 64px);

	--e-radius-sm: 8px;
	--e-radius: 12px;
	--e-radius-lg: 16px;
	--e-radius-pill: 999px;

	--e-ratio-card: 4 / 3;
	--e-ratio-luxury: 3 / 2;
	--e-ratio-portal: 4 / 3;
	--e-ratio-project: 16 / 10;
	--e-ratio-hero: 16 / 10;
	--e-ratio-agent: 4 / 5;

	--e-container: 1320px;
	--e-header-h: 78px;
	--e-ease: cubic-bezier(.22, .61, .36, 1);
	--e-dur: 220ms;
	--e-dur-fast: 160ms;

	/* Gölge yalnızca katman gerektiren yerlerde (§62). */
	--e-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
	--e-shadow: 0 2px 6px rgba(16, 24, 40, .06);
	--e-shadow-md: 0 10px 24px -8px rgba(16, 24, 40, .16);
	--e-shadow-lg: 0 24px 56px -16px rgba(16, 24, 40, .24);
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--e-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {

	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--e-bg);
	color: var(--e-text);
	font-family: var(--e-font-body);
	font-size: var(--e-fs-base);
	line-height: var(--e-lh-body);
	font-feature-settings: "kern" 1, "liga" 1;
	-webkit-font-smoothing: antialiased;

	/*
	 * `clip`, `hidden`in aksine kaydırma bağlamı oluşturmaz; böylece
	 * position: sticky header ve filtre panelleri düzgün çalışır.
	 */
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--e-s3);
	color: var(--e-heading);
	font-family: var(--e-font-heading);
	font-weight: var(--e-weight-heading);
	line-height: var(--e-lh-snug);
	letter-spacing: var(--e-tracking-tight);
	text-wrap: balance;
}

h1 { font-size: var(--e-fs-h1); line-height: var(--e-lh-tight); }
h2 { font-size: var(--e-fs-h2); }
h3 { font-size: var(--e-fs-h3); }
h4 { font-size: var(--e-fs-h4); }

p { margin: 0 0 var(--e-s4); }

a {
	color: var(--e-link);
	text-decoration: none;
	transition: color var(--e-dur-fast) var(--e-ease);
}

a:hover { color: var(--e-primary-dark); }

img, svg, video, iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol { margin: 0 0 var(--e-s4); padding-left: var(--e-s5); }
figure { margin: 0; }

hr {
	border: 0;
	border-top: 1px solid var(--e-border);
	margin: var(--e-s6) 0;
}

:focus-visible {
	outline: 2px solid var(--e-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: rgba(var(--e-primary-rgb), .14);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.estate-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--e-primary);
	color: #fff;
	border-radius: var(--e-radius-sm);
}

/* ==========================================================================
   3. Düzen ve ritim
   ========================================================================== */

.estate-container {
	width: 100%;
	max-width: var(--e-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

.estate-container--narrow { max-width: 860px; }

.estate-container--full {
	max-width: none;
	padding-inline: clamp(16px, 4vw, 56px);
}

.estate-main { min-height: 50vh; }

/* Bölüm ritmi: art arda gelen bölümler aynı yükseklikte olmasın. */
.estate-section { padding-block: var(--e-section); }
.estate-section--hero { padding: 0; }

.estate-section--listings,
.estate-section--showcase,
.estate-section--bento { padding-block: var(--e-section-lg); }

.estate-section--locations,
.estate-section--types { padding-block: var(--e-section); }

.estate-section--stats,
.estate-section--partners { padding-block: var(--e-section-sm); }

/* Arka planı olan bölümler kendi nefes alanını alır. */
.estate-section[style*="background"] { padding-block: var(--e-section-lg); }

.estate-page { padding-block: var(--e-s9); }

.estate-page__layout { display: grid; gap: var(--e-s8); }

.estate-page__layout.has-sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.estate-page__head { margin-bottom: var(--e-s7); max-width: 68ch; }
.estate-page__title { margin-bottom: var(--e-s2); }
.estate-page__desc { color: var(--e-muted); font-size: var(--e-fs-lead); }

.estate-block { margin-bottom: var(--e-s9); }
.estate-block:last-child { margin-bottom: 0; }

.estate-block__title {
	font-size: var(--e-fs-h3);
	margin-bottom: var(--e-s5);
	padding-bottom: var(--e-s3);
	border-bottom: 1px solid var(--e-border);
}

/* Breadcrumb */

.estate-breadcrumb {
	border-bottom: 1px solid var(--e-border-soft);
	font-size: var(--e-fs-xs);
}

.estate-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--e-s2);
	margin: 0;
	padding-block: 12px;
	padding-inline: 0;
	list-style: none;
	color: var(--e-faint);
}

.estate-breadcrumb li { display: flex; align-items: center; gap: var(--e-s2); }

.estate-breadcrumb li:not(:last-child)::after {
	content: "";
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}

.estate-breadcrumb a { color: var(--e-muted); }
.estate-breadcrumb a:hover { color: var(--e-primary); }

.estate-breadcrumb [aria-current="page"] {
	color: var(--e-heading);
	font-weight: var(--e-weight-strong);
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Izgaralar */

.estate-grid-2, .estate-grid-3, .estate-grid-4,
.estate-grid-5, .estate-grid-6 {
	display: grid;
	gap: clamp(16px, 2vw, 28px);
}

.estate-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.estate-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.estate-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.estate-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.estate-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Bölüm başlığı */

.estate-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--e-s5);
	margin-bottom: var(--e-s7);
}

.estate-sec-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.estate-sec-head__text { max-width: 62ch; }
.estate-sec-head__title { margin: 0; }

.estate-sec-head__sub {
	margin: var(--e-s3) 0 0;
	color: var(--e-muted);
	font-size: var(--e-fs-lead);
	line-height: 1.55;
}

.estate-sec-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--e-border);
	font-weight: var(--e-weight-strong);
	font-size: var(--e-fs-sm);
	white-space: nowrap;
	color: var(--e-heading);
	transition: border-color var(--e-dur-fast) var(--e-ease), gap var(--e-dur-fast) var(--e-ease);
}

.estate-sec-head__link:hover {
	border-color: var(--e-primary);
	color: var(--e-primary);
	gap: 10px;
}

/* Etiket (label) tipografisi */

.estate-eyebrow {
	display: inline-block;
	margin-bottom: var(--e-s3);
	color: var(--e-accent);
	font-size: var(--e-fs-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--e-tracking-caps);
}

.estate-prose { font-size: var(--e-fs-base); }
.estate-prose > *:last-child { margin-bottom: 0; }
.estate-prose h2, .estate-prose h3 { margin-top: var(--e-s7); }
.estate-prose img { border-radius: var(--e-radius); }

.estate-prose blockquote {
	margin: var(--e-s6) 0;
	padding: var(--e-s4) var(--e-s6);
	border-left: 2px solid var(--e-accent);
	color: var(--e-heading);
	font-size: var(--e-fs-lg);
	line-height: 1.55;
}

.estate-hide-mobile { display: none; }
.estate-hide-desktop { display: block; }

/* ==========================================================================
   4. Butonlar, rozetler, çipler
   ========================================================================== */

.estate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--e-s2);
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--e-radius-sm);
	background: var(--e-button);
	color: var(--e-button-text);
	font-family: inherit;
	font-size: var(--e-fs-sm);
	font-weight: var(--e-weight-strong);
	line-height: 1.2;
	letter-spacing: -.005em;
	cursor: pointer;
	text-align: center;
	transition: background var(--e-dur-fast) var(--e-ease),
		border-color var(--e-dur-fast) var(--e-ease),
		color var(--e-dur-fast) var(--e-ease),
		transform var(--e-dur-fast) var(--e-ease);
}

.estate-btn:hover { background: var(--e-button-hover); color: var(--e-button-text); }
.estate-btn:active { transform: translateY(1px); }

.estate-btn--sm { padding: 9px 16px; font-size: var(--e-fs-xs); }
.estate-btn--lg { padding: 15px 30px; font-size: var(--e-fs-base); }
.estate-btn--block { width: 100%; }

.estate-btn--outline {
	background: transparent;
	border-color: var(--e-border);
	color: var(--e-heading);
}

.estate-btn--outline:hover {
	background: transparent;
	border-color: var(--e-heading);
	color: var(--e-heading);
}

.estate-btn--outline-light {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
	backdrop-filter: blur(3px);
}

.estate-btn--outline-light:hover { background: var(--e-card); color: var(--e-primary); }

.estate-btn--ghost { background: transparent; color: var(--e-heading); }
.estate-btn--ghost:hover { background: var(--e-surface); color: var(--e-primary); }

.estate-btn--accent { background: var(--e-accent); color: var(--e-on-accent); }
.estate-btn--accent:hover { background: var(--e-accent); filter: brightness(.93); color: var(--e-on-accent); }

.estate-btn--whatsapp { background: #1faa53; color: #fff; }
.estate-btn--whatsapp:hover { background: #17913f; color: #fff; }

.estate-btn--danger { color: #b42318; }
.estate-btn--danger:hover { background: #fef3f2; color: #b42318; }

.estate-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--e-radius-sm);
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background var(--e-dur-fast) var(--e-ease), color var(--e-dur-fast) var(--e-ease);
}

.estate-icon-btn:hover { background: var(--e-surface); color: var(--e-primary); }

/* Rozetler — küçük, sakin, tek renkli. */

.estate-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 11px;
	border-radius: var(--e-radius-sm);
	background: rgba(15, 23, 42, .82);
	color: #fff;
	font-size: var(--e-fs-label);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .03em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.estate-badge--status { background: var(--e-sale); }

.estate-badge--kiralik,
.estate-badge--gunluk-kiralik,
.estate-badge--devren-kiralik { background: var(--e-rent); }

.estate-badge--featured { background: var(--e-accent); color: var(--e-on-accent); }
.estate-badge--discount { background: #b42318; }
.estate-badge--sold { background: #475467; }

.estate-badge--type {
	background: transparent;
	color: var(--e-muted);
	border: 1px solid var(--e-border);
	backdrop-filter: none;
	text-transform: none;
	letter-spacing: 0;
	font-weight: var(--e-weight-strong);
}

.estate-count {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--e-accent);
	color: var(--e-on-accent);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.estate-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--e-s2);
	margin-bottom: var(--e-s6);
}

.estate-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-pill);
	background: transparent;
	color: var(--e-heading);
	font-size: var(--e-fs-xs);
	font-weight: 500;
	transition: border-color var(--e-dur-fast) var(--e-ease), color var(--e-dur-fast) var(--e-ease);
}

.estate-chip:hover { border-color: var(--e-heading); color: var(--e-heading); }
.estate-chip b { color: var(--e-faint); font-weight: 500; }

.estate-chip--clear {
	border-style: dashed;
	color: var(--e-muted);
}

.estate-note {
	display: flex;
	align-items: flex-start;
	gap: var(--e-s2);
	padding: var(--e-s3) var(--e-s4);
	border-radius: var(--e-radius-sm);
	background: var(--e-surface);
	color: var(--e-muted);
	font-size: var(--e-fs-sm);
}

.estate-note svg { flex: none; margin-top: 2px; }

.estate-notice {
	padding: var(--e-s4) var(--e-s5);
	border-radius: var(--e-radius-sm);
	border-left: 2px solid var(--e-primary);
	background: var(--e-surface);
	margin-bottom: var(--e-s6);
	font-size: var(--e-fs-sm);
}

.estate-notice--success { border-color: #0f766e; background: #f0fdf9; color: #065f46; }
.estate-notice--error { border-color: #b42318; background: #fef3f2; color: #912018; }
.estate-notice--warn { border-color: #b54708; background: #fffaeb; color: #93370d; }

/* ==========================================================================
   5. Formlar
   ========================================================================== */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="search"], input[type="date"], input[type="password"],
select, textarea {
	width: 100%;
	min-height: 50px;
	padding: 13px 16px;
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-sm);
	background: var(--e-card);
	color: var(--e-heading);
	font-family: inherit;
	font-size: var(--e-fs-sm);
	line-height: 1.5;
	transition: border-color var(--e-dur-fast) var(--e-ease), box-shadow var(--e-dur-fast) var(--e-ease);
	appearance: none;
}

select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7787' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

input:focus, select:focus, textarea:focus {
	border-color: var(--e-primary);
	box-shadow: 0 0 0 4px rgba(var(--e-primary-rgb), .1);
	outline: none;
}

input::placeholder, textarea::placeholder { color: var(--e-faint); }

textarea { min-height: 110px; resize: vertical; }

.estate-field { display: block; margin-bottom: var(--e-s4); }

.estate-field__label {
	display: block;
	margin-bottom: 7px;
	color: var(--e-heading);
	font-size: var(--e-fs-xs);
	font-weight: var(--e-weight-strong);
	letter-spacing: .005em;
}

.estate-field__label b { color: #b42318; font-weight: 600; }

.estate-field__desc {
	display: block;
	margin-top: 5px;
	color: var(--e-muted);
	font-size: var(--e-fs-xs);
}

.estate-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--e-s3);
}

.estate-form__message {
	margin-top: var(--e-s4);
	padding: var(--e-s4) var(--e-s5);
	border-radius: var(--e-radius-sm);
	font-size: var(--e-fs-sm);
	line-height: 1.55;
}

.estate-form__message.is-success {
	background: #f0fdf9;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.estate-form__message.is-error {
	background: #fef3f2;
	color: #912018;
	border: 1px solid #fecdca;
}

.estate-form.is-loading { opacity: .55; pointer-events: none; }

.estate-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--e-s2);
	margin-bottom: var(--e-s4);
	font-size: var(--e-fs-xs);
	color: var(--e-muted);
	line-height: 1.5;
	cursor: pointer;
}

.estate-consent input { margin-top: 3px; flex: none; }

.estate-checks { display: flex; flex-wrap: wrap; gap: var(--e-s2) var(--e-s5); }

.estate-checks--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--e-s2);
}

.estate-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--e-fs-sm);
	cursor: pointer;
	min-height: 32px;
}

.estate-check input {
	flex: none;
	width: 17px;
	height: 17px;
	accent-color: var(--e-primary);
}

.estate-switch {
	display: inline-flex;
	align-items: center;
	gap: var(--e-s2);
	cursor: pointer;
	font-size: var(--e-fs-sm);
}

.estate-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.estate-switch__track {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	border-radius: 12px;
	background: #cfd5dd;
	transition: background var(--e-dur-fast) var(--e-ease);
}

.estate-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--e-card);
	box-shadow: var(--e-shadow-sm);
	transition: transform var(--e-dur-fast) var(--e-ease);
}

.estate-switch input:checked + .estate-switch__track { background: var(--e-primary); }
.estate-switch input:checked + .estate-switch__track::after { transform: translateX(18px); }

.estate-pills { display: flex; flex-wrap: wrap; gap: var(--e-s2); }
.estate-pill input { position: absolute; opacity: 0; }

.estate-pill span {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-pill);
	font-size: var(--e-fs-xs);
	font-weight: 500;
	cursor: pointer;
	transition: all var(--e-dur-fast) var(--e-ease);
}

.estate-pill input:checked + span {
	border-color: var(--e-primary);
	background: var(--e-primary);
	color: var(--e-on-primary);
}

.estate-pill input:focus-visible + span { outline: 2px solid var(--e-primary); outline-offset: 2px; }

.estate-segment {
	display: flex;
	flex-wrap: wrap;
	padding: 4px;
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-sm);
	background: var(--e-surface);
	gap: 3px;
}

.estate-segment__item { flex: 1 1 auto; }
.estate-segment__item input { position: absolute; opacity: 0; }

.estate-segment__item span {
	display: block;
	padding: 8px 13px;
	border-radius: calc(var(--e-radius-sm) - 3px);
	font-size: var(--e-fs-xs);
	font-weight: var(--e-weight-strong);
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition: all var(--e-dur-fast) var(--e-ease);
}

.estate-segment__item input:checked + span {
	/* Zemin rengi kullanılır; koyu temada beyaz üstüne beyaz yazı kalmaz. */
	background: var(--e-heading);
	color: var(--e-bg);
}

.estate-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--e-s2);
}

.estate-range span { color: var(--e-faint); }

/* ==========================================================================
   6. Header
   ========================================================================== */

.estate-topbar {
	background: var(--e-primary-dark);
	color: rgba(255, 255, 255, .78);
	font-size: var(--e-fs-xs);
}

.estate-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-s5);
	min-height: 42px;
	flex-wrap: wrap;
}

.estate-topbar__right {
	display: flex;
	align-items: center;
	gap: var(--e-s5);
	margin-left: auto;
}

.estate-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
}

.estate-topbar__item:hover { color: #fff; }

.estate-header {
	position: relative;
	z-index: 100;
	background: var(--e-header-bg);
	color: var(--e-header-text);
	border-bottom: 1px solid var(--e-border-soft);
	transition: box-shadow var(--e-dur) var(--e-ease);
}

.estate-header.is-sticky { position: sticky; top: 0; }
.admin-bar .estate-header.is-sticky { top: 32px; }

.estate-header.is-scrolled { box-shadow: var(--e-shadow-md); border-bottom-color: transparent; }

/* Sticky header hafifçe küçülür (§31 mantığı). */
.estate-header.is-scrolled .estate-header__inner { min-height: 64px; }
.estate-header.is-scrolled .estate-logo img { max-height: 38px; }

.estate-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 44px);
	min-height: var(--e-header-h);
	transition: min-height var(--e-dur) var(--e-ease);
}

.estate-header__inner--centered { display: grid; grid-template-columns: 1fr auto 1fr; }
.estate-header__inner--portal { gap: var(--e-s5); }

.estate-header__brand { flex: none; }
.estate-header__brand--center { justify-self: center; }

.estate-header__right {
	display: flex;
	align-items: center;
	gap: var(--e-s2);
	margin-left: auto;
}

.estate-header__side--right { display: flex; justify-content: flex-end; }

.estate-header__searchbar { flex: 1; max-width: 640px; }
.estate-header__navrow { border-top: 1px solid var(--e-border-soft); }

.estate-header__phone {
	display: inline-flex;
	align-items: center;
	gap: var(--e-s2);
	padding-left: var(--e-s5);
	border-left: 1px solid var(--e-border);
	color: inherit;
}

.estate-header__phone span { display: flex; flex-direction: column; line-height: 1.25; }
.estate-header__phone small { color: var(--e-muted); font-size: var(--e-fs-label); }
.estate-header__phone strong { font-size: var(--e-fs-sm); letter-spacing: -.01em; }

.estate-header__actions { display: flex; align-items: center; gap: var(--e-s2); }

.estate-logo img { max-height: 46px; width: auto; transition: max-height var(--e-dur) var(--e-ease); }
.estate-logo--text { display: flex; flex-direction: column; color: inherit; }

.estate-logo__name {
	font-family: var(--e-font-heading);
	font-size: 22px;
	font-weight: var(--e-weight-heading);
	letter-spacing: -.03em;
	line-height: 1.1;
}

.estate-logo__tagline {
	font-size: var(--e-fs-label);
	color: var(--e-muted);
	letter-spacing: .01em;
}

/* Navigasyon */

.estate-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.estate-nav__item { position: relative; }

.estate-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 14px;
	border-radius: var(--e-radius-sm);
	color: inherit;
	font-size: var(--e-fs-sm);
	font-weight: var(--e-weight-strong);
	letter-spacing: -.005em;
	position: relative;
}

.estate-nav__link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--e-dur-fast) var(--e-ease);
}

.estate-nav__link:hover::after,
.estate-nav__item.current-menu-item > .estate-nav__link::after { transform: scaleX(1); }

.estate-nav__link:hover,
.estate-nav__item.current-menu-item > .estate-nav__link { color: var(--e-primary); }

.estate-nav__caret {
	width: 6px;
	height: 6px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .5;
}

.estate-nav__toggle { display: none; }

.estate-nav__sub {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 20;
	min-width: 230px;
	margin: 0;
	padding: var(--e-s2);
	list-style: none;
	background: var(--e-card);
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius);
	box-shadow: var(--e-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all var(--e-dur-fast) var(--e-ease);
}

.estate-nav__item:hover > .estate-nav__sub,
.estate-nav__item:focus-within > .estate-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.estate-nav__sublink {
	display: block;
	padding: 9px 12px;
	border-radius: var(--e-radius-sm);
	color: var(--e-text);
	font-size: var(--e-fs-sm);
}

.estate-nav__sublink:hover { background: var(--e-surface); color: var(--e-primary); }

.estate-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	padding-block: var(--e-s8);
	background: var(--e-card);
	border-top: 1px solid var(--e-border);
	box-shadow: var(--e-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transition: all var(--e-dur-fast) var(--e-ease);
}

.estate-nav__item--mega { position: static; }

.estate-nav__item--mega:hover > .estate-mega,
.estate-nav__item--mega:focus-within > .estate-mega { opacity: 1; visibility: visible; }

.estate-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: var(--e-s6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.estate-mega__col > .estate-nav__sublink {
	padding-left: 0;
	color: var(--e-heading);
	font-weight: 700;
	font-size: var(--e-fs-label);
	text-transform: uppercase;
	letter-spacing: var(--e-tracking-caps);
}

.estate-mega__list { margin: var(--e-s3) 0 0; padding: 0; list-style: none; }
.estate-mega__list .estate-nav__sublink { padding-left: 0; }

.estate-burger { display: none; flex-direction: column; gap: 4px; }

.estate-burger span {
	display: block;
	width: 20px;
	height: 1.8px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--e-dur-fast) var(--e-ease), opacity var(--e-dur-fast) var(--e-ease);
}

/* Arama katmanı (§52) */

.estate-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: clamp(60px, 12vh, 140px);
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(10px);
	animation: estate-fade var(--e-dur) var(--e-ease);
}

.estate-search-overlay__inner {
	width: min(820px, 92vw);
}

.estate-search-overlay__close {
	position: absolute;
	top: var(--e-s5);
	right: var(--e-s5);
	width: 44px;
	height: 44px;
	border: 1px solid var(--e-border);
	border-radius: 50%;
	background: var(--e-card);
	color: var(--e-heading);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.estate-search-overlay__title {
	font-size: var(--e-fs-h2);
	margin-bottom: var(--e-s5);
}

.estate-search-overlay__meta {
	display: grid;
	gap: var(--e-s5);
	margin-top: var(--e-s7);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.estate-search-overlay__meta h3 {
	font-size: var(--e-fs-label);
	text-transform: uppercase;
	letter-spacing: var(--e-tracking-caps);
	color: var(--e-muted);
	margin-bottom: var(--e-s3);
}

.estate-search-overlay__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--e-s2);
}

/* Mobil çekmece */

.estate-drawer { position: fixed; inset: 0; z-index: 999; }

.estate-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	animation: estate-fade var(--e-dur-fast) ease;
}

.estate-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(380px, 90vw);
	display: flex;
	flex-direction: column;
	background: var(--e-card);
	box-shadow: var(--e-shadow-lg);
	overflow-y: auto;
	animation: estate-slide-in var(--e-dur) var(--e-ease);
}

.estate-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--e-s4) var(--e-s5);
	border-bottom: 1px solid var(--e-border);
}

.estate-drawer__close {
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--e-heading);
	padding: var(--e-s1);
}

.estate-drawer__search { padding: var(--e-s5); border-bottom: 1px solid var(--e-border); }

.estate-drawer__menu { margin: 0; padding: var(--e-s3); list-style: none; flex: 1; }
.estate-drawer__menu li { position: relative; }

.estate-drawer__menu .estate-nav__link,
.estate-drawer__menu .estate-nav__sublink {
	display: block;
	padding: 14px var(--e-s3);
	border-radius: var(--e-radius-sm);
	font-size: var(--e-fs-base);
}

.estate-drawer__menu .estate-nav__link::after { display: none; }
.estate-drawer__menu .estate-nav__caret { display: none; }

.estate-drawer__menu .estate-nav__toggle {
	display: block;
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
}

.estate-drawer__menu .estate-nav__toggle::after {
	content: "";
	position: absolute;
	top: 17px;
	left: 17px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--e-muted);
	border-bottom: 2px solid var(--e-muted);
	transform: rotate(45deg);
	transition: transform var(--e-dur-fast) var(--e-ease);
}

.estate-drawer__menu .estate-nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }

.estate-drawer__menu .estate-nav__sub,
.estate-drawer__menu .estate-mega {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	padding: 0 0 0 var(--e-s4);
	display: none;
}

.estate-drawer__menu li.is-open > .estate-nav__sub,
.estate-drawer__menu li.is-open > .estate-mega { display: block; }

.estate-drawer__foot {
	padding: var(--e-s5);
	border-top: 1px solid var(--e-border);
	display: grid;
	gap: var(--e-s2);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.estate-footer {
	margin-top: var(--e-s12);
	background: var(--e-footer-bg);
	color: var(--e-footer-text);
	font-size: var(--e-fs-sm);
}

/* Üst CTA şeridi (§54) */

.estate-footer__cta {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.estate-footer__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-s6);
	padding-block: var(--e-s8);
	flex-wrap: wrap;
}

.estate-footer__cta-text { max-width: 46ch; }

.estate-footer__cta-title {
	color: #fff;
	font-size: var(--e-fs-h2);
	margin-bottom: var(--e-s2);
}

.estate-footer__cta-sub { margin: 0; opacity: .78; }

.estate-footer__cta-actions { display: flex; gap: var(--e-s3); flex-wrap: wrap; }

.estate-footer__grid { display: grid; gap: var(--e-s7); padding-block: var(--e-s9); }

.estate-footer__grid--1 { grid-template-columns: 1fr; }
.estate-footer__grid--2 { grid-template-columns: repeat(2, 1fr); }
.estate-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.estate-footer__grid--4 { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.estate-footer__grid--5 { grid-template-columns: 1.6fr repeat(4, 1fr); }
.estate-footer__grid--6 { grid-template-columns: 1.6fr repeat(5, 1fr); }

.estate-footer__title {
	margin-bottom: var(--e-s5);
	color: #fff;
	font-size: var(--e-fs-label);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--e-tracking-caps);
}

.estate-footer a { color: inherit; }
.estate-footer a:hover { color: #fff; }

.estate-footer__about { margin-top: var(--e-s4); opacity: .78; max-width: 42ch; line-height: 1.6; }

.estate-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}

.estate-footer__menu span { opacity: .5; }

.estate-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--e-s4); }
.estate-footer__contact li { display: flex; align-items: flex-start; gap: var(--e-s2); }
.estate-footer__contact svg { flex: none; margin-top: 3px; opacity: .6; }

.estate-footer__listings { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--e-s4); }

.estate-footer__listings a {
	display: grid;
	grid-template-columns: 68px 1fr;
	gap: var(--e-s3);
	align-items: center;
}

.estate-footer__listings img {
	border-radius: var(--e-radius-sm);
	width: 68px;
	height: 51px;
	object-fit: cover;
}

.estate-footer__listing-title { display: block; font-weight: 500; line-height: 1.4; }
.estate-footer__listing-price { display: block; color: #fff; font-weight: 700; font-size: var(--e-fs-xs); }

.estate-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }

.estate-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-s5);
	flex-wrap: wrap;
	padding-block: var(--e-s5);
	font-size: var(--e-fs-xs);
}

.estate-footer__copy { margin: 0; opacity: .7; }
.estate-footer__legal { display: flex; gap: var(--e-s5); margin: 0; padding: 0; list-style: none; }

.estate-social { display: flex; gap: var(--e-s2); margin: var(--e-s5) 0 0; padding: 0; list-style: none; }
.estate-social--topbar { margin: 0; }

.estate-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .16);
	color: inherit;
	transition: background var(--e-dur-fast) var(--e-ease), border-color var(--e-dur-fast) var(--e-ease);
}

.estate-social__link:hover { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }

.estate-social--topbar .estate-social__link { width: 28px; height: 28px; border: 0; }

.estate-newsletter__row { display: flex; gap: var(--e-s2); margin-bottom: var(--e-s2); }

.estate-newsletter__row input {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
}

.estate-newsletter__row input::placeholder { color: rgba(255, 255, 255, .45); }
.estate-newsletter__text { opacity: .78; }

/* ==========================================================================
   8. Yardımcılar
   ========================================================================== */

.estate-to-top {
	position: fixed;
	right: var(--e-s5);
	bottom: var(--e-s6);
	z-index: 90;
	width: 46px;
	height: 46px;
	border: 1px solid var(--e-border);
	border-radius: 50%;
	background: var(--e-card);
	color: var(--e-heading);
	box-shadow: var(--e-shadow-md);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.estate-toast {
	position: fixed;
	left: 50%;
	bottom: var(--e-s7);
	z-index: 9999;
	transform: translateX(-50%);
	padding: 13px 22px;
	border-radius: var(--e-radius-sm);
	background: var(--e-heading);
	color: var(--e-bg);
	font-size: var(--e-fs-sm);
	box-shadow: var(--e-shadow-lg);
	animation: estate-toast-in var(--e-dur) var(--e-ease);
}

.estate-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: var(--e-s9) 0 0;
	padding: 0;
	list-style: none;
}

.estate-pagination a,
.estate-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-sm);
	color: var(--e-heading);
	font-size: var(--e-fs-sm);
	font-weight: 500;
}

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

.estate-pagination .is-current,
.estate-pagination .current {
	background: var(--e-heading);
	border-color: var(--e-heading);
	color: var(--e-bg);
}

.estate-pagination__dots span { border: 0; min-width: 24px; }

.estate-empty-state {
	padding: var(--e-s10) var(--e-s5);
	border: 1px solid var(--e-border);
	border-radius: var(--e-radius-lg);
	text-align: center;
}

.estate-empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--e-s5);
	border-radius: 50%;
	background: var(--e-surface);
	color: var(--e-muted);
}

.estate-empty-state h3 { margin-bottom: var(--e-s2); }

.estate-empty-state p {
	color: var(--e-muted);
	max-width: 48ch;
	margin-inline: auto;
}

.estate-empty-state__actions {
	display: flex;
	gap: var(--e-s3);
	justify-content: center;
	flex-wrap: wrap;
	margin-top: var(--e-s5);
}

/* Modal */

.estate-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--e-s4);
}

.estate-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .5);
	animation: estate-fade var(--e-dur-fast) ease;
}

.estate-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	padding: var(--e-s8);
	background: var(--e-card);
	border-radius: var(--e-radius-lg);
	box-shadow: var(--e-shadow-lg);
	animation: estate-pop var(--e-dur) var(--e-ease);
}

.estate-modal__close {
	position: absolute;
	top: var(--e-s4);
	right: var(--e-s4);
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--e-surface);
	color: var(--e-heading);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.estate-modal__title { margin-bottom: var(--e-s2); padding-right: var(--e-s7); }
.estate-modal__intro { color: var(--e-muted); margin-bottom: var(--e-s6); }

@keyframes estate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes estate-pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes estate-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes estate-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes estate-skeleton { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ==========================================================================
   9. Duyarlı
   ========================================================================== */

@media (max-width: 1200px) {

	.estate-grid-5,
	.estate-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.estate-footer__grid--4,
	.estate-footer__grid--5,
	.estate-footer__grid--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {

	.estate-nav--main,
	.estate-nav--split,
	.estate-nav--portal,
	.estate-header__phone { display: none; }

	.estate-burger { display: inline-flex; }

	.estate-header__inner--centered { grid-template-columns: auto 1fr auto; }
	.estate-header__inner--portal { flex-wrap: wrap; }
	.estate-header__searchbar { order: 3; flex-basis: 100%; max-width: none; padding-bottom: var(--e-s4); }

	.estate-page__layout.has-sidebar { grid-template-columns: 1fr; }

	.estate-grid-3, .estate-grid-4,
	.estate-grid-5, .estate-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {

	:root { --e-header-h: 64px; }

	/*
	 * Dar ekranda logo + eylemler başlığı taşırıp hamburger menüyü
	 * ekran dışına itiyordu. Slogan ve "İlan Ver" düğmesi (ikisi de
	 * menü çekmecesinde mevcut) bu genişlikte gizlenir.
	 */
	.estate-logo { min-width: 0; }
	.estate-logo__tagline { display: none; }

	.estate-logo__name {
		font-size: 19px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.estate-header__actions > .estate-btn { display: none; }

	.estate-hide-mobile { display: block; }
	.estate-hide-desktop { display: none; }
	.estate-hide-sm { display: none; }

	.estate-grid-2, .estate-grid-3, .estate-grid-4,
	.estate-grid-5, .estate-grid-6,
	.estate-footer__grid,
	.estate-footer__grid--2, .estate-footer__grid--3,
	.estate-footer__grid--4, .estate-footer__grid--5,
	.estate-footer__grid--6 { grid-template-columns: 1fr; }

	.estate-sec-head { flex-direction: column; align-items: flex-start; gap: var(--e-s4); }
	.estate-topbar__left { display: none; }
	.estate-topbar__right { margin-inline: auto; justify-content: center; }

	.estate-modal__dialog { padding: var(--e-s6); }
	.estate-logo img { max-height: 36px; }

	.estate-footer__cta-inner { padding-block: var(--e-s7); }
	.estate-footer__cta-title { font-size: var(--e-fs-h3); }

	body.has-bottom-nav { padding-bottom: 64px; }
	.estate-to-top { bottom: 76px; right: var(--e-s4); }
}
