/* ============================================================
   PARSELX PANEL — arayüz
   parselx.com tasarım sistemi: mürekkep zemin, kağıt metin,
   pirinç aksan; kırmızı yalnızca parsel verisinin rengidir.
   ============================================================ */

:root {
	--ink: #12161c;
	--ink-2: #1a2129;
	--ink-3: #232c37;
	--line: rgba(237, 234, 226, 0.1);
	--paper: #edeae2;
	--muted: #97a0a8;
	--brass: #d9a441;
	--brass-soft: rgba(217, 164, 65, 0.14);
	--signal: #e33b32;
	--font-display: 'Big Shoulders Display', sans-serif;
	--font-body: 'IBM Plex Sans', sans-serif;
	--font-mono: 'IBM Plex Mono', monospace;
	--rail-w: 76px;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(4, 6, 9, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
	min-height: 100%;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
a { color: inherit; }

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

/* Kadastral sınır şeridi — imza motifi */
.boundary {
	height: 3px;
	flex-shrink: 0;
	background: repeating-linear-gradient(45deg, var(--signal) 0 6px, #fff 6px 12px);
	opacity: 0.85;
}

/* ---- İskelet ---- */

.app { display: flex; min-height: 100dvh; }

.rail {
	width: var(--rail-w);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--ink);
	border-right: 1px solid var(--line);
	padding: 14px 0 12px;
	position: sticky;
	top: 0;
	height: 100dvh;
	z-index: 60;
}

.rail-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: 0.03em;
	color: var(--paper);
	text-decoration: none;
	line-height: 1;
	padding: 8px 0 14px;
}

.rail-logo b { color: var(--brass); font-weight: 800; }

.rail-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	padding: 6px;
	border-top: 1px solid var(--line);
}

.rail-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 100%;
	padding: 11px 2px 9px;
	background: none;
	border: none;
	border-radius: 8px;
	color: var(--muted);
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s, background 0.15s;
}

.rail-item svg { width: 18px; height: 18px; }
.rail-item .fa { font-size: 16px; }
.rail-form { width: 100%; margin: 0; }

.rail-item span {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rail-item:hover { color: var(--paper); background: var(--ink-2); }
.rail-item.active { color: var(--brass); background: var(--brass-soft); }

.rail-foot {
	margin-top: auto;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.1em;
	color: var(--muted);
	opacity: 0.55;
	writing-mode: vertical-rl;
	padding-bottom: 4px;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 28px 14px;
	border-bottom: 1px solid var(--line);
}

.page-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 30px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.topbar-actions { display: flex; gap: 10px; align-items: center; }

.content { padding: 24px 28px 48px; }

.flash {
	margin: 16px 28px 0;
	padding: 10px 16px;
	border: 1px solid rgba(217, 164, 65, 0.4);
	background: var(--brass-soft);
	border-radius: var(--radius);
	color: var(--brass);
	font-weight: 500;
}

/* ---- Butonlar ---- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--ink-2);
	color: var(--paper);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: var(--ink-3); border-color: rgba(237, 234, 226, 0.25); }

.btn-brass {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--ink);
}
.btn-brass:hover { background: #e5b458; border-color: #e5b458; }

.btn-danger { color: var(--signal); border-color: rgba(227, 59, 50, 0.4); background: none; }
.btn-danger:hover { background: rgba(227, 59, 50, 0.12); border-color: var(--signal); }

.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }

/* ---- Kart grid (portföy listesi) ---- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.parcel-card {
	display: block;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.15s, border-color 0.15s;
}

.parcel-card:hover { transform: translateY(-2px); border-color: rgba(217, 164, 65, 0.45); }

.parcel-card .boundary { opacity: 0.7; }

.parcel-card-body { padding: 16px 18px 14px; }

.parcel-card h3 {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
}

.parcel-card .loc {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 12px;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 20px;
	border: 1px solid var(--line);
	color: var(--muted);
	background: var(--ink);
	white-space: nowrap;
}

.badge-brass { color: var(--brass); border-color: rgba(217, 164, 65, 0.4); background: var(--brass-soft); }
.badge-signal { color: #ff7a72; border-color: rgba(227, 59, 50, 0.4); background: rgba(227, 59, 50, 0.1); }
.badge-ok { color: #7fc98a; border-color: rgba(127, 201, 138, 0.35); background: rgba(127, 201, 138, 0.08); }

.empty-state {
	text-align: center;
	padding: 80px 20px;
	color: var(--muted);
}
.empty-state h2 {
	font-family: var(--font-display);
	font-size: 28px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--paper);
	margin-bottom: 8px;
}
.empty-state p { margin-bottom: 20px; }

/* ---- Formlar ---- */

.form-card {
	max-width: 640px;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="file"],
.field input[type="email"],
.field input[type="url"],
.field input[type="password"],
.field select,
.field textarea {
	background: var(--ink);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 14px;
	padding: 9px 12px;
	width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--brass);
}

.field textarea { min-height: 80px; resize: vertical; }

.field .hint { font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; }

.field-error { color: #ff7a72; font-size: 12.5px; }

.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ---- Parsel detay ---- */

.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
	gap: 20px;
	align-items: start;
}

.map-panel {
	position: sticky;
	top: 20px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	background: var(--ink-2);
}

#map { width: 100%; height: min(62vh, 640px); }

.map-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	background: var(--ink-2);
}

.map-toolbar .note { font-size: 12px; color: var(--muted); margin-left: auto; }

/* Bilgi satırları */
.info-card {
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.info-card h2, .tree-card h2 {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.info-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }

.info-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.info-row dt { color: var(--muted); font-size: 13px; }
.info-row dd { font-family: var(--font-mono); font-size: 13px; text-align: right; }

/* Hiyerarşi (yapı → bölüm) */
.tree-card {
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.building-block {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	margin-bottom: 12px;
	overflow: hidden;
}

.building-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	flex-wrap: wrap;
}

.building-head .b-name { font-weight: 700; font-size: 15px; }
.building-head .b-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.building-head .spacer { margin-left: auto; display: flex; gap: 6px; }

.unit-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 9px 14px 9px 26px;
	border-top: 1px dashed var(--line);
	font-size: 13.5px;
}

.unit-row .u-name { font-weight: 600; }
.unit-row .u-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.unit-row .spacer { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.price { font-family: var(--font-mono); font-size: 12.5px; color: var(--brass); }

/* Satır içi ekleme/düzenleme formları (details) */
details.inline-form { border-top: 1px dashed var(--line); }
details.inline-form > summary {
	list-style: none;
	cursor: pointer;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--brass);
	user-select: none;
}
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form > summary::before { content: '+ '; }
details.inline-form[open] > summary::before { content: '− '; }
details.inline-form .form-grid { padding: 4px 14px 14px; }
details.inline-form .form-actions { margin: 0; padding: 0 14px 14px; }

details.edit-form { border-top: none; }
details.edit-form > summary { padding: 4px 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
details.edit-form > summary::before { content: ''; }
details.edit-form[open] > summary::before { content: ''; }
details.edit-form[open] { background: var(--ink-2); border-radius: 8px; margin: 6px; border: 1px solid var(--line); }

/* ---- Responsive ---- */

@media (max-width: 980px) {
	.detail-layout { grid-template-columns: 1fr; }
	.map-panel { position: static; }
}

@media (max-width: 720px) {
	.app { flex-direction: column; }
	.rail {
		width: 100%;
		height: auto;
		position: sticky;
		flex-direction: row;
		align-items: center;
		padding: 6px 10px;
		border-right: none;
		border-bottom: 1px solid var(--line);
	}
	.rail-logo { padding: 4px 10px 4px 0; font-size: 22px; }
	.rail-nav { flex-direction: row; border-top: none; padding: 0; width: auto; }
	.rail-item { flex-direction: row; gap: 6px; padding: 8px 10px; }
	.rail-foot { margin-top: 0; margin-left: auto; border-top: none; width: auto; padding: 0; }
	.topbar { padding: 14px 16px 10px; }
	.page-title { font-size: 24px; }
	.content { padding: 16px 16px 40px; }
	.flash { margin: 12px 16px 0; }
	.form-grid { grid-template-columns: 1fr; }
	.info-rows { grid-template-columns: 1fr; }
}

/* ---- Form kartı başlıkları ---- */

.form-card-title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.form-card-sub {
	color: var(--muted);
	font-size: 13.5px;
	margin-bottom: 18px;
}

.danger-card { border-color: rgba(227, 59, 50, 0.35); }
.danger-card .form-card-title { color: #ff7a72; }

.danger-card details.inline-form { border: none; }
.danger-card details.inline-form > summary { padding: 0; color: var(--signal); }

/* ---- Giriş / auth ekranları ---- */

.auth-body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
	padding: 24px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(217, 164, 65, 0.06), transparent 55%),
		radial-gradient(ellipse at 80% 100%, rgba(227, 59, 50, 0.05), transparent 55%),
		var(--ink);
}

.auth-wrap {
	width: min(400px, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.auth-card {
	width: 100%;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.auth-inner { padding: 28px 30px 30px; }

.auth-logo {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 34px;
	letter-spacing: 0.04em;
	color: var(--paper);
	text-decoration: none;
	line-height: 1;
}

.auth-logo b { color: var(--brass); font-weight: 800; }

.auth-tag {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 6px 0 24px;
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--muted);
	cursor: pointer;
	user-select: none;
}

.auth-remember input { accent-color: var(--brass); width: 15px; height: 15px; }

.auth-submit { justify-content: center; width: 100%; padding: 11px 18px; font-size: 15px; }

.auth-link {
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
}
.auth-link:hover { color: var(--brass); }

.auth-note { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.auth-status {
	padding: 9px 14px;
	border: 1px solid rgba(217, 164, 65, 0.4);
	background: var(--brass-soft);
	border-radius: 8px;
	color: var(--brass);
	font-size: 13.5px;
	margin-bottom: 14px;
}

.auth-back {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--muted);
	text-decoration: none;
}
.auth-back:hover { color: var(--paper); }

/* Chrome otomatik doldurma koyu temayı bozmasın */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--ink) inset;
	-webkit-text-fill-color: var(--paper);
	caret-color: var(--paper);
	transition: background-color 9999s ease-out;
}

/* İlan formu: mini harita + pin */
.ilan-map {
	height: 320px;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.pf-pin { position: relative; width: 24px; height: 24px; cursor: grab; }

.pf-pin-halo {
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: rgba(227, 59, 50, 0.14);
	border: 1px solid rgba(227, 59, 50, 0.55);
}

.pf-pin-dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--signal);
	border: 2px solid var(--ink);
	box-shadow: inset 0 0 0 3px rgba(237, 234, 226, 0.95), 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* ---- Kullanıcılar sayfası ---- */

/* Filtre çubuğu: ad soyad + şehir + bölge uzmanlığı + emlak ofisi */
.user-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 26px;
}

.us-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 170px;
}

.us-field.grow { flex: 1 1 220px; }

.us-field label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.user-search input,
.user-search select {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 14px;
	font-family: inherit;
}

.user-search input:focus,
.user-search select:focus { outline: none; border-color: var(--brass); }

.us-actions { display: flex; gap: 8px; }

.user-section-title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 22px 0 12px;
}

.user-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

/* Profil kartı — pafta plakası: köşe işaretleri, pirinç halkalı avatar,
   tapu benzeri istatistik şeridi, tam genişlik aksiyonlar */
.user-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 18px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(160deg, var(--ink-2) 0%, #161c24 100%);
	transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.user-card:hover {
	border-color: rgba(217, 164, 65, 0.45);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(4, 6, 9, 0.45);
}

/* Durum rozeti — akışta kendi satırında (sağa yaslı), içeriğe binmez */
.user-chip {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: -8px -6px 4px 0;
	padding: 3px 8px;
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.user-chip.friend { background: var(--brass-soft); color: var(--brass); }
.user-chip.waiting { background: rgba(151, 160, 168, 0.14); color: var(--muted); }
.user-chip.pending { background: rgba(227, 59, 50, 0.16); color: #ff7a72; }

.user-card-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
}

.user-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #2b3542, var(--ink-3));
	color: var(--brass);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	flex-shrink: 0;
	box-shadow: 0 0 0 1.5px rgba(217, 164, 65, 0.55), 0 0 0 5px rgba(217, 164, 65, 0.1);
}

.user-idbox { min-width: 0; flex: 1; }

.user-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.3;
	color: var(--paper);
	text-decoration: none;
	word-break: break-word;
}

a.user-name:hover { color: var(--brass); }

.user-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
	margin-top: 4px;
}

.user-meta .fa { color: var(--brass); opacity: 0.7; font-size: 11px; }

/* İstatistik şeridi — kesikli sınır çizgileriyle tapu satırı hissi */
.user-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 16px 0 12px;
	padding: 10px 0;
	border-top: 1px dashed rgba(237, 234, 226, 0.14);
	border-bottom: 1px dashed rgba(237, 234, 226, 0.14);
}

.user-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
}

.user-stat + .user-stat { border-left: 1px dashed rgba(237, 234, 226, 0.14); }

.user-stat b {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 800;
	color: var(--paper);
	line-height: 1;
}

.user-stat span {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Bölge uzmanlığı + uzmanlık alanı rozetleri */
.user-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.user-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(237, 234, 226, 0.05);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.05em;
}

.user-tag.region {
	border-color: rgba(217, 164, 65, 0.35);
	background: var(--brass-soft);
	color: var(--brass);
}

.user-tag .fa { font-size: 9px; }

.user-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.user-card-actions form { display: contents; }

.pf-btn.full {
	flex: 1;
	justify-content: center;
}

.pf-btn.icon-only {
	flex: 0 0 auto;
	width: 38px;
	justify-content: center;
	padding: 8px 0;
	color: var(--muted);
}

.pf-btn.icon-only:hover { color: var(--signal); border-color: rgba(227, 59, 50, 0.45); }

.user-empty { color: var(--muted); font-size: 14px; }

.pf-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink-2);
	color: var(--paper);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.pf-btn:hover { background: var(--ink-3); }
.pf-btn.view { color: var(--brass); border-color: rgba(217, 164, 65, 0.4); }

/* Bildirim rozeti + takip istekleri */
.rail-item { position: relative; overflow: visible; }

.rail-badge {
	position: absolute;
	top: 6px;
	right: 10px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--signal);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--ink);
}

.user-section-title.accent { color: var(--brass); }

.user-count-pill {
	display: inline-block;
	min-width: 20px;
	padding: 1px 7px;
	margin-left: 6px;
	border-radius: 999px;
	background: var(--signal);
	color: #fff;
	font-family: var(--font-body);
	font-size: 12px;
	text-align: center;
	vertical-align: middle;
}

.user-card.pending { border-color: rgba(217, 164, 65, 0.5); }

.pf-btn.primary {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--ink);
}
.pf-btn.primary:hover { filter: brightness(1.08); }

/* ---- Yapılar paneli revizesi: daha dengeli oranlar + AJAX durum mesajı ---- */

.tree-status {
	font-family: var(--font-body, inherit);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: #6fb5a0;
	opacity: 0;
	transition: opacity 0.2s;
}

.tree-status.visible { opacity: 1; }
.tree-status.error { color: #ff7a72; }

.tree-card { padding: 18px; }

.building-block {
	border-radius: 10px;
	margin-bottom: 14px;
}

.building-head {
	padding: 13px 14px;
	border-bottom: 1px dashed var(--line);
	background: rgba(217, 164, 65, 0.04);
}

.building-head .b-name { font-size: 14.5px; }

.building-head .badge { flex-shrink: 0; }

.unit-row { border-top: none; border-bottom: 1px dashed var(--line); }
.unit-row:hover { background: rgba(237, 234, 226, 0.03); }

/* Düzenleme özetleri buton gibi hizalı dursun */
details.edit-form > summary {
	display: inline-block;
	margin: 8px 14px;
}

details.edit-form[open] { margin: 8px; }

.unit-row + details.edit-form > summary { margin: 6px 14px 6px 26px; }

/* Ekleme özetleri tam genişlik, kesikli çerçeveli buton görünümü */
details.inline-form > summary {
	display: block;
	margin: 10px 14px;
	padding: 9px 12px;
	border: 1px dashed rgba(217, 164, 65, 0.45);
	border-radius: 8px;
	text-align: center;
	transition: background 0.15s;
}

details.inline-form > summary:hover { background: rgba(217, 164, 65, 0.08); }

details.inline-form { border-top: none; }

.tree-card > details.inline-form {
	border: none !important;
	border-radius: 10px;
}

.tree-card > details.inline-form > summary { margin: 0; }

.tree-card > details.inline-form[open] {
	border: 1px dashed rgba(217, 164, 65, 0.45) !important;
}

.tree-card > details.inline-form[open] > summary {
	border: none;
	border-bottom: 1px dashed rgba(217, 164, 65, 0.35);
	border-radius: 0;
}

.tree-card > details.inline-form .form-grid { padding: 12px 14px 6px; }

/* ---- Parsel kaynağı sekmeleri + TKGM ada/parsel sorgusu (Parsel Ekle sayfası) ---- */

.px-src-tabs {
	display: flex;
	gap: 4px;
	padding: 3px;
	margin-bottom: 12px;
	background: rgba(237, 234, 226, 0.06);
	border: 1px solid var(--line);
	border-radius: 8px;
}

.px-src-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.px-src-tab:hover { color: var(--paper); }

.px-src-tab.active {
	background: var(--brass);
	color: #16130a;
	font-weight: 600;
}

.px-src-pane.is-hidden { display: none; }

.tkgm-sorgu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 8px;
}

.ts-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ts-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.ts-field label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.tkgm-sorgu select:disabled { opacity: 0.45; cursor: not-allowed; }

.ts-hint {
	font-size: 12px;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.5;
}

.ts-error {
	font-size: 12px;
	color: var(--signal);
	line-height: 1.5;
}

.ts-error.is-hidden { display: none; }

/* Kayıt formu: isteğe bağlı alan etiketi */
.auth-optional {
	font-style: normal;
	font-weight: 400;
	font-size: 10px;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0;
}

/* ---- Bölge uzmanlığı: ilçe aramalı etiket girişi ---- */

.bolge-tags { display: flex; flex-direction: column; gap: 8px; }

.bt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-tags:empty { display: none; }

.bt-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(217, 164, 65, 0.35);
	background: var(--brass-soft);
	color: var(--brass);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
}

.bt-tag .fa { font-size: 10px; }

.bt-tag-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: rgba(217, 164, 65, 0.2);
	color: var(--brass);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.bt-tag-x:hover { background: var(--brass); color: var(--ink); }

.bt-box { position: relative; }

.bt-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: 240px;
	overflow-y: auto;
	background: var(--ink-2);
	border: 1px solid rgba(217, 164, 65, 0.35);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.bt-list.is-hidden { display: none; }

.bt-option {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	background: none;
	color: var(--paper);
	font-family: inherit;
	font-size: 13.5px;
	text-align: left;
	cursor: pointer;
}

.bt-option:hover { background: var(--ink-3); }
.bt-option b { font-weight: 600; }

.bt-option span {
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--muted);
}

/* ---- Uzmanlık alanları: çoklu seçim rozet grubu ---- */

.spec-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.spec-pick input { position: absolute; opacity: 0; pointer-events: none; }

.spec-pick span {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--ink);
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.spec-pick span:hover { border-color: rgba(237, 234, 226, 0.3); color: var(--paper); }

.spec-pick input:checked + span {
	background: var(--brass-soft);
	border-color: rgba(217, 164, 65, 0.55);
	color: var(--brass);
	font-weight: 600;
}

.spec-pick input:focus-visible + span {
	outline: 2px solid var(--brass);
	outline-offset: 2px;
}

/* ---- Yönetim paneli ---- */

.admin-nav {
	display: flex;
	gap: 6px;
	margin-bottom: 22px;
	padding: 4px;
	background: rgba(237, 234, 226, 0.05);
	border: 1px solid var(--line);
	border-radius: 10px;
	width: fit-content;
}

.admin-nav-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 7px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.admin-nav-item:hover { color: var(--paper); background: var(--ink-2); }
.admin-nav-item.active { background: var(--brass); color: var(--ink); }

.admin-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	max-width: 720px;
	margin-bottom: 8px;
}

.admin-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 12px;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.admin-stat b {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.admin-stat span {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.admin-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--ink-2);
	margin-bottom: 8px;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	white-space: nowrap;
}

.admin-table th {
	padding: 10px 14px;
	text-align: left;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
	background: rgba(11, 14, 19, 0.4);
}

.admin-table td {
	padding: 9px 14px;
	border-bottom: 1px solid rgba(237, 234, 226, 0.06);
	vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(237, 234, 226, 0.03); }
.admin-table .mono { font-family: var(--font-mono); font-size: 12px; }
.admin-table .admin-notes { white-space: normal; min-width: 160px; color: var(--muted); }
.admin-empty { color: var(--muted); text-align: center; padding: 22px !important; }

.admin-pager { display: flex; gap: 8px; margin-top: 12px; }

.admin-userhead {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 20px;
	background: var(--ink-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 10px;
}

.admin-username {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 4px;
}

.admin-usermeta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.admin-usermeta a { color: var(--brass); }

/* ---- Profil kartı iletişim satırları (kullanıcı izniyle) ---- */

.user-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	padding: 10px 12px;
	background: rgba(11, 14, 19, 0.45);
	border: 1px dashed rgba(237, 234, 226, 0.12);
	border-radius: 8px;
}

.user-contact-row {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--paper);
	text-decoration: none;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.user-contact-row:hover { color: var(--brass); }
.user-contact-row .fa { color: var(--brass); opacity: 0.75; font-size: 12px; flex-shrink: 0; }

/* ---- Profil düzenleme: kartta göster/gizle anahtarı ---- */

.visibility-toggle {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 8px;
	cursor: pointer;
	user-select: none;
}

.visibility-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.vt-switch {
	position: relative;
	width: 34px;
	height: 19px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--ink-3);
	border: 1px solid var(--line);
	transition: background 0.18s, border-color 0.18s;
}

.vt-switch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--muted);
	transition: transform 0.18s, background 0.18s;
}

.visibility-toggle input:checked + .vt-switch {
	background: var(--brass-soft);
	border-color: rgba(217, 164, 65, 0.55);
}

.visibility-toggle input:checked + .vt-switch::after {
	transform: translateX(15px);
	background: var(--brass);
}

.visibility-toggle input:focus-visible + .vt-switch {
	outline: 2px solid var(--brass);
	outline-offset: 2px;
}

.vt-text {
	font-size: 12px;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.visibility-toggle input:checked ~ .vt-text { color: var(--paper); }
