/*
Theme Name: Patres
Theme URI: https://patresreklam.com
Author: Patres Gayrimenkul
Description: Patres Gayrimenkul devremülk ilanları için sade, açık renkli kurumsal tema.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: patres
*/

:root {
	--ink: #171b17;
	--paper: #f5f3ec;
	--cream: #e9e4d8;
	--white: #fffef9;
	--green: #214f42;
	--green-light: #88aa8b;
	--muted: #5c625d;
	--line: rgba(23, 27, 23, 0.16);
	--radius: 18px;
	--shadow: 0 1px 2px rgba(23, 27, 23, 0.04), 0 12px 28px rgba(23, 27, 23, 0.06);
	--wrap: 1140px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* --- Başlık --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(245, 243, 236, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-logo {
	height: 26px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.brand-sub {
	padding-left: 11px;
	border-left: 1px solid var(--line);
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (max-width: 420px) {
	.brand-sub { display: none; }
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-nav a {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
}

.site-nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #1a4036; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* --- Hero --- */
.hero {
	padding: 84px 0 64px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--cream);
	color: var(--green);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 20px;
}

.hero h1 {
	font-size: clamp(38px, 5vw, 60px);
	margin-bottom: 18px;
}

.hero p.lead {
	font-size: 18px;
	color: var(--muted);
	max-width: 46ch;
	margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.media-note {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 254, 249, 0.92);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

/* --- Bölümler --- */
.section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); margin: 0; }

.notice {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--green-light);
	border-radius: 12px;
	background: var(--white);
	color: var(--muted);
	font-size: 14.5px;
	margin-bottom: 28px;
}

.notice strong { color: var(--ink); font-weight: 600; }

/* --- Filtreler --- */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.field input,
.field select {
	appearance: none;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 11px 14px;
	min-width: 220px;
}

.field select { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.field input:focus,
.field select:focus { outline: 2px solid var(--green-light); outline-offset: 1px; }

.result-count { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* --- İlan kartları --- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23,27,23,.05), 0 18px 36px rgba(23,27,23,.09); }

.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 254, 249, 0.94);
	color: var(--green);
	font-size: 12.5px;
	font-weight: 700;
}

.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.card-loc {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--green-light);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.card h3 { font-size: 20px; margin-bottom: 12px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green); text-decoration: none; }

.meta-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.meta-list li {
	font-size: 12.5px;
	color: var(--muted);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 10px;
}

.card-foot {
	margin-top: auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.price { font-family: "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 600; }
.price small { display: block; font-family: "Manrope", sans-serif; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.card-link { font-size: 14px; font-weight: 600; white-space: nowrap; }

.empty {
	padding: 44px 20px;
	text-align: center;
	color: var(--muted);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

/* --- Hizmetler --- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.service {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
}

.service span { display: block; font-family: "Playfair Display", serif; font-size: 15px; color: var(--green-light); margin-bottom: 10px; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; font-size: 15px; }

/* --- İletişim --- */
.contact-box {
	background: var(--cream);
	border-radius: 24px;
	padding: 48px 40px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}

.contact-box h2 { font-size: clamp(26px, 3vw, 36px); }
.contact-box p { color: var(--muted); margin-bottom: 0; }

.contact-lines { display: flex; flex-direction: column; gap: 14px; }

.contact-line { display: flex; flex-direction: column; gap: 2px; }
.contact-line span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-light); }
.contact-line strong { font-size: 17px; font-weight: 600; }

/* --- Alt bilgi --- */
.site-footer {
	border-top: 1px solid var(--line);
	padding: 36px 0;
	margin-top: 40px;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- İlan detay --- */
.detail { padding: 48px 0 24px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }

.detail-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.thumbs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.thumb {
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--cream);
	cursor: pointer;
	aspect-ratio: 3 / 2;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); border-color: var(--green-light); }
.thumb.is-active { border-color: var(--green); border-width: 2px; }
.thumb:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (max-width: 520px) {
	.thumbs { grid-template-columns: repeat(4, 1fr); }
}

.detail h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }

.detail-price {
	font-family: "Playfair Display", serif;
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 4px;
}

.detail-price-note { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--muted); font-weight: 600; width: 46%; }
.spec-table td { font-weight: 600; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Duyarlı --- */
@media (max-width: 900px) {
	.hero-grid, .detail-grid, .contact-box { grid-template-columns: 1fr; }
	.hero { padding: 56px 0 44px; }
	.section { padding: 52px 0; }
	.contact-box { padding: 34px 24px; }
	.site-nav { display: none; }
}

@media (max-width: 520px) {
	.wrap { padding: 0 18px; }
	.field input, .field select { min-width: 0; width: 100%; }
	.field { width: 100%; }
	.card-foot { flex-direction: column; align-items: flex-start; }
}
