/* ============================================================
   PARSELX — arayüz
   Kimlik: kadastro/harita plakası. 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 {
	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; }

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

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

/* ---- Uygulama iskeleti ---- */

.app {
	display: flex;
	height: 100%;
	height: 100dvh;
}

.stage-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
}

/* ---- Sol ray ---- */

.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;
	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 {
	position: relative;
	text-decoration: none;
	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;
	transition: color 0.15s, background 0.15s;
}

.rail-item .fa {
	font-size: 16px;
}

.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-item.active::after {
	content: '';
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 3px;
	height: 2px;
	background: repeating-linear-gradient(45deg, var(--signal) 0 5px, #fff 5px 10px);
	border-radius: 1px;
	opacity: 0.9;
}

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

/* ---- Harita sahnesi ---- */

.map-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #0b0e13;
}

#map { position: absolute; inset: 0; }

/* ---- Yükleme kartı (pafta) ---- */

.upload-card {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 40;
	width: 340px;
	max-width: calc(100% - 48px);
	max-height: calc(100% - 48px);
	overflow-y: auto;
	background: rgba(18, 22, 28, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: opacity 0.25s, transform 0.25s;
}

.upload-card.is-hidden {
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
}

/* Pafta köşe işaretleri */
.uc-frame {
	position: relative;
	padding: 26px 24px 20px;
}

.uc-corners i {
	position: absolute;
	width: 11px;
	height: 11px;
	opacity: 0.5;
}

.uc-corners i::before,
.uc-corners i::after {
	content: '';
	position: absolute;
	background: var(--brass);
}

.uc-corners i::before { left: 5px; top: 0; width: 1px; height: 11px; }
.uc-corners i::after { left: 0; top: 5px; width: 11px; height: 1px; }

.uc-corners i:nth-child(1) { top: 8px; left: 8px; }
.uc-corners i:nth-child(2) { top: 8px; right: 8px; }
.uc-corners i:nth-child(3) { bottom: 8px; left: 8px; }
.uc-corners i:nth-child(4) { bottom: 8px; right: 8px; }

.wordmark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--paper);
}

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

.tagline {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.22em;
	color: var(--muted);
	margin-top: 6px;
	text-transform: uppercase;
}

.drop-area {
	margin-top: 20px;
	border: 1.5px dashed rgba(237, 234, 226, 0.28);
	border-radius: 8px;
	padding: 30px 18px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.drop-area .fa {
	font-size: 22px;
	color: var(--brass);
}

.drop-area:hover,
.drop-area:focus-visible,
.drop-area.dragover {
	border-color: var(--brass);
	background: var(--brass-soft);
}

.drop-text {
	display: block;
	margin-top: 12px;
	font-size: 13.5px;
	color: var(--paper);
}

.drop-text em {
	display: block;
	font-style: normal;
	margin-top: 3px;
	font-size: 12px;
	color: var(--muted);
}

.uc-hint {
	margin-top: 14px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.55;
}

.uc-hint a {
	color: var(--brass);
	text-decoration: none;
	border-bottom: 1px solid rgba(217, 164, 65, 0.35);
}

.uc-hint a:hover { border-bottom-color: var(--brass); }

.uc-links {
	display: flex;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.uc-links a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 10px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--paper);
	background: var(--ink-3);
	transition: background 0.15s, color 0.15s;
}

.uc-links a:hover { background: #2c3743; }

.uc-links a.primary {
	background: var(--brass);
	color: #16130a;
}

/* ---- Parsel kaynağı sekmeleri (görüntüleyici kartı + panel formları) ---- */

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

.uc-tabs { margin-top: 18px; }
.px-src-tabs { margin: 12px 0 10px; }

.uc-tab,
.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;
}

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

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

.uc-pane { margin-top: 14px; }
.uc-pane.is-hidden,
.px-src-pane.is-hidden { display: none; }

/* ---- TKGM ada/parsel sorgu bloğu ---- */

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

.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);
	margin: 0;
}

.tkgm-sorgu select,
.tkgm-sorgu input {
	width: 100%;
	padding: 9px 10px;
	background: rgba(11, 14, 19, 0.6);
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 13px;
}

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

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

.tkgm-sorgu select option {
	background: var(--ink-2);
	color: var(--paper);
}

.ts-hint {
	margin: 0;
	font-size: 11.5px;
	color: var(--muted);
	line-height: 1.5;
}

.ts-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 12px;
	border: 0;
	border-radius: 7px;
	background: var(--brass);
	color: #16130a;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.15s;
}

.ts-submit:hover { filter: brightness(1.08); }
.ts-submit:disabled { opacity: 0.6; cursor: wait; }

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

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

.uc-links a.primary:hover { background: #e5b458; }

/* ---- Harita üstü butonlar ---- */

.px-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(18, 22, 28, 0.82);
	color: var(--paper);
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s, transform 0.12s, color 0.15s;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 2px 12px rgba(4, 6, 9, 0.4);
}

.px-btn:hover {
	background: var(--ink-3);
	color: var(--brass);
	transform: scale(1.05);
}

.px-btn.recording {
	background: var(--signal);
	border-color: var(--signal);
	color: #fff;
	animation: px-pulse 1.2s infinite;
}

@keyframes px-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(227, 59, 50, 0.45); }
	50% { box-shadow: 0 0 0 10px rgba(227, 59, 50, 0); }
}

.px-top-right {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 20;
}

.px-top-left {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 20;
	align-items: center;
	transition: transform 0.25s;
}

/* Yükleme kartı açıkken sol kontrolleri kartın sağına kaydır */
.map-stage.has-card .px-top-left { transform: translateX(364px); }

#fullscreenButton {
	position: absolute;
	bottom: 84px;
	right: 20px;
	z-index: 20;
}

/* ---- Pusula ---- */

#compass {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(18, 22, 28, 0.82);
	border: 1px solid var(--line);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 2px 12px rgba(4, 6, 9, 0.4);
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

#compassNeedle {
	position: absolute;
	inset: 0;
	transition: transform 0.1s linear;
}

#compassNeedle::before {
	content: 'K';
	position: absolute;
	top: 3px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 700;
	color: var(--signal);
}

#compassNeedle::after {
	content: '';
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 14px solid var(--signal);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

#compass .compass-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	margin: -2.5px 0 0 -2.5px;
	border-radius: 50%;
	background: var(--paper);
}

/* ---- Parsel bilgi kartı (tapu plakası) ---- */

.px-parcel-card {
	position: absolute;
	left: 20px;
	bottom: 84px;
	z-index: 25;
	width: 290px;
	max-width: calc(100% - 40px);
	background: rgba(18, 22, 28, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: none;
	overflow: hidden;
}

.px-parcel-card::before {
	content: '';
	display: block;
	height: 3px;
	background: repeating-linear-gradient(45deg, var(--signal) 0 6px, #fff 6px 12px);
	opacity: 0.85;
}

.px-parcel-card.visible { display: block; }

.px-parcel-card .card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px 6px;
}

.px-parcel-card .card-head .head-label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--muted);
	text-transform: uppercase;
}

.px-parcel-card .card-head .head-actions {
	display: flex;
	gap: 4px;
}

.px-parcel-card .card-head button {
	background: none;
	border: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 13px;
	padding: 4px 6px;
	border-radius: 6px;
}

.px-parcel-card .card-head button:hover {
	color: var(--brass);
	background: var(--ink-3);
}

.px-parcel-card .card-body { padding: 0 14px 13px; }

.px-parcel-card.collapsed .card-body { display: none; }
.px-parcel-card.collapsed #parcelCardToggle .fa { transform: rotate(180deg); }
#parcelCardToggle .fa { transition: transform 0.2s; }

.px-parcel-card .card-title {
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 600;
	color: var(--paper);
	margin-bottom: 2px;
}

.px-parcel-card .card-location {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 10px;
}

.px-parcel-card .card-extra {
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--muted);
	margin-top: 9px;
	letter-spacing: 0.02em;
}

.px-parcel-card .card-extra:empty { display: none; }

.px-chip {
	display: inline-block;
	padding: 3px 10px;
	margin-right: 6px;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 500;
}

.px-chip.chip-type {
	background: var(--brass-soft);
	color: var(--brass);
	border: 1px solid rgba(217, 164, 65, 0.35);
}

.px-chip.chip-area {
	background: var(--ink-3);
	color: var(--paper);
	border: 1px solid var(--line);
}

/* ---- Alt kontrol çubuğu ---- */

.px-bottombar {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(18, 22, 28, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow);
}

.px-bottombar .bar-btn {
	background: none;
	border: none;
	color: var(--paper);
	font-size: 13px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}

.px-bottombar .bar-btn:hover {
	background: var(--ink-3);
	color: var(--brass);
}

.px-bottombar .bar-btn.accent {
	background: var(--brass);
	color: #16130a;
}

.px-bottombar .bar-btn.accent:hover { background: #e5b458; color: #16130a; }

#zoomSlider {
	-webkit-appearance: none;
	appearance: none;
	width: 150px;
	height: 3px;
	border-radius: 2px;
	background: rgba(237, 234, 226, 0.22);
	outline: none;
	cursor: pointer;
}

#zoomSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#zoomSlider::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: none;
	border-radius: 50%;
	background: var(--paper);
}

/* ---- Ayarlar paneli ---- */

.px-settings {
	position: absolute;
	bottom: 74px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 35;
	width: 252px;
	padding: 14px 16px;
	background: rgba(18, 22, 28, 0.96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: none;
}

.px-settings.visible { display: block; }

.px-settings .set-title {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--muted);
	margin-bottom: 8px;
}

.px-settings .set-group { margin-bottom: 14px; }
.px-settings .set-group:last-child { margin-bottom: 0; }

.px-settings label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 5px 0;
	cursor: pointer;
	color: var(--paper);
}

.px-settings input[type="radio"],
.px-settings input[type="range"] {
	accent-color: var(--brass);
}

.px-settings input[type="range"] { width: 100%; }

.px-settings .set-value {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
	float: right;
}

/* ---- Toast ---- */

.px-toast {
	position: absolute;
	bottom: 78px;
	left: 50%;
	transform: translateX(-50%) translateY(16px);
	z-index: 90;
	max-width: min(90%, 480px);
	padding: 10px 20px;
	background: rgba(18, 22, 28, 0.96);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--paper);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s;
}

.px-toast.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.px-toast.error {
	border-color: rgba(227, 59, 50, 0.6);
	background: rgba(58, 17, 15, 0.96);
}

/* ---- Sağ panel (sheet) ---- */

.sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(6, 8, 11, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.sheet-backdrop.open {
	opacity: 1;
	pointer-events: all;
}

.sheet {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	width: 430px;
	max-width: 100%;
	background: var(--ink-2);
	border-left: 1px solid var(--line);
	box-shadow: var(--shadow);
	transform: translateX(102%);
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.25, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sheet.open { transform: translateX(0); }

.sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px 16px;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	background: var(--ink-2);
}

.sheet-head h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 27px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--paper);
}

.sheet-close {
	background: none;
	border: 1px solid var(--line);
	border-radius: 50%;
	width: 34px;
	height: 34px;
	color: var(--muted);
	font-size: 14px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.sheet-close:hover { color: var(--paper); border-color: var(--muted); }

.sheet-body {
	padding: 22px 26px 34px;
	font-size: 14px;
	color: var(--paper);
}

/* Nasıl çalışır — adımlar (gerçek bir sıra: mono numaralar bilgi taşır) */
.steps { list-style: none; }

.steps li {
	display: flex;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	line-height: 1.55;
}

.steps li:last-child { border-bottom: none; }

.steps .no {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	color: var(--brass);
	flex-shrink: 0;
	padding-top: 2px;
}

.steps a {
	color: var(--brass);
	text-decoration: none;
	border-bottom: 1px solid rgba(217, 164, 65, 0.35);
}

.steps a:hover { border-bottom-color: var(--brass); }

/* Boş durum (portföy / giriş) */
.empty-state {
	text-align: center;
	padding: 44px 10px;
	color: var(--muted);
}

.empty-state .fa {
	font-size: 26px;
	color: var(--brass);
	opacity: 0.7;
}

.empty-state h3 {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--paper);
	margin: 14px 0 6px;
}

.empty-state p { font-size: 13px; max-width: 280px; margin: 0 auto; }

/* İletişim */
.contact-list { list-style: none; margin-bottom: 22px; }

.contact-list li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 8px 0;
	font-size: 14px;
}

.contact-list .fa {
	color: var(--brass);
	width: 16px;
	text-align: center;
	font-size: 13px;
}

.contact-list a { color: var(--paper); text-decoration: none; }
.contact-list a:hover { color: var(--brass); }

.form-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 16px 0 6px;
}

#cform input,
#cform textarea {
	width: 100%;
	background: var(--ink);
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 11px 13px;
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 14px;
	transition: border-color 0.15s;
}

#cform input:focus,
#cform textarea:focus {
	outline: none;
	border-color: var(--brass);
}

#cform input.error,
#cform textarea.error { border-color: var(--signal); }

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

.btn-submit {
	margin-top: 18px;
	width: 100%;
	padding: 12px;
	background: var(--brass);
	color: #16130a;
	border: none;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}

.btn-submit:hover { background: #e5b458; }

.alert-success {
	display: none;
	margin-top: 16px;
	padding: 14px;
	border: 1px solid rgba(217, 164, 65, 0.4);
	border-radius: 7px;
	background: var(--brass-soft);
	color: var(--paper);
	font-size: 13.5px;
}

.alert-success.visible { display: block; }

/* ---- Mapbox küçük düzeltmeler ---- */

.mapboxgl-ctrl-attrib {
	background: rgba(18, 22, 28, 0.7) !important;
	color: var(--muted);
}

.mapboxgl-ctrl-attrib a { color: var(--muted) !important; }

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

@media (max-width: 900px) {
	.sheet { width: 100%; border-left: none; }
}

@media (max-width: 720px) {
	.app { flex-direction: column; }

	.rail {
		width: 100%;
		flex-direction: row;
		align-items: center;
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 0 10px;
		padding-top: env(safe-area-inset-top);
		height: calc(54px + env(safe-area-inset-top));
	}

	.rail-logo { font-size: 22px; padding: 0 8px 0 4px; }

	.rail-nav {
		flex-direction: row;
		justify-content: flex-end;
		border-top: none;
		padding: 0;
		gap: 0;
	}

	.rail-item { width: auto; padding: 9px 10px; flex-direction: row; }
	.rail-item span { display: none; }
	.rail-item.active::after { left: 8px; right: 8px; bottom: 2px; }
	.rail-foot { display: none; }

	.upload-card {
		top: 14px;
		left: 14px;
		right: 14px;
		width: auto;
		max-width: none;
	}

	.wordmark { font-size: 32px; }
	.drop-area { padding: 22px 14px; }

	.px-top-left { top: 14px; left: 14px; }
	.px-top-right { top: 14px; right: 14px; }

	/* Mobilde tam ekran butonu sağ üst grupla hizalanır (parsel kartıyla çakışmasın) */
	#fullscreenButton { top: 114px; right: 14px; bottom: auto; }

	.px-parcel-card { left: 10px; right: 10px; width: auto; bottom: 92px; }

	.px-bottombar {
		gap: 5px;
		padding: 7px 10px;
		bottom: calc(14px + env(safe-area-inset-bottom));
	}

	#zoomSlider { width: 84px; }

	.px-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

	.sheet-head { padding: 18px 20px 14px; }
	.sheet-body { padding: 18px 20px 30px; }
}

/* Mobilde yükleme kartı açıkken sol üst kontrolleri gizle (çakışma) */
@media (max-width: 720px) {
	.map-stage.has-card .px-top-left,
	.map-stage.has-card .px-top-right { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---- QR modal ---- */

.px-modal {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(4, 6, 9, 0.66);
	z-index: 90;
}

.px-modal.visible { display: flex; }

.px-modal-box {
	position: relative;
	width: min(340px, calc(100vw - 40px));
	background: var(--paper);
	color: var(--ink);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	text-align: center;
	padding-bottom: 20px;
}

.px-modal-box h3 {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 18px 0 4px;
}

.px-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 8px;
	background: rgba(18, 22, 28, 0.08);
	color: var(--ink);
	cursor: pointer;
}

.px-modal-close:hover { background: rgba(18, 22, 28, 0.16); }

.qr-box {
	display: flex;
	justify-content: center;
	padding: 12px 0 8px;
}

.qr-box canvas, .qr-box img {
	width: 220px;
	height: 220px;
	border: 6px solid #fff;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(4, 6, 9, 0.18);
}

.qr-url {
	font-family: var(--font-mono);
	font-size: 12px;
	color: #4d565e;
	padding: 0 18px 12px;
	word-break: break-all;
}

.qr-actions { display: flex; gap: 10px; justify-content: center; }

.qr-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid rgba(18, 22, 28, 0.2);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.qr-btn:hover { background: var(--ink-3); }

/* ---- Ray: çıkış formu ---- */

.rail-form {
	width: 100%;
	margin: 0;
}

/* ---- Portföy sheet'i ---- */

.pf-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

.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.primary {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--ink);
}

.pf-btn.primary:hover { filter: brightness(1.08); }

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

.pf-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	margin-bottom: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--ink-2);
}

.pf-info { min-width: 0; }

.pf-title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-meta {
	font-size: 12px;
	color: var(--muted);
	font-family: 'IBM Plex Mono', monospace;
}

.pf-meta.sub { margin-top: 2px; }

.pf-item-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.pf-empty {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.6;
}

.pf-empty a { color: var(--brass); }

/* ---- Portföy sayfası: sağ liste paneli + harita pinleri ---- */

.pf-side {
	width: 360px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: var(--ink-2);
	border-left: 1px solid var(--line);
	min-height: 0;
}

.pf-side-head {
	position: relative;
	padding: 20px 18px 8px;
	overflow: hidden;
}

.pf-side-head h2 {
	font-family: 'Big Shoulders Display', sans-serif;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pf-count {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	color: var(--muted);
}

.pf-side-actions {
	padding: 10px 18px 14px;
	border-bottom: 1px solid var(--line);
}

.pf-side-list {
	flex: 1;
	overflow-y: auto;
	padding: 14px 18px 18px;
}

.pf-side .pf-item {
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.pf-side .pf-item:hover { border-color: rgba(217, 164, 65, 0.4); }

.pf-side .pf-item.active {
	border-color: var(--brass);
	background: var(--brass-soft);
}

/* Pin: jeodezik nokta — pirinç halka + nabız halesi */
/* position verilmez: Mapbox'ın .mapboxgl-marker { position: absolute } kuralı
   geçerli kalmalı — 'relative' ile pinler akışta üst üste dizilip her pin
   sırasına göre aşağı kayıyordu (uzak zoom'da km'lerce hata görünüyordu). */
.pf-pin {
	width: 24px;
	height: 24px;
	cursor: pointer;
}

.pf-pin-halo {
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: rgba(217, 164, 65, 0.16);
	border: 1px solid rgba(217, 164, 65, 0.55);
	animation: pfPulse 2.6s ease-out infinite;
}

.pf-pin-dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--brass);
	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);
	transition: transform 0.15s;
}

.pf-pin:hover .pf-pin-dot { transform: scale(1.18); }
.pf-pin:hover .pf-pin-halo { animation-play-state: paused; opacity: 1; }

@keyframes pfPulse {
	0% { transform: scale(0.6); opacity: 0.9; }
	70% { transform: scale(1.25); opacity: 0; }
	100% { transform: scale(1.25); opacity: 0; }
}

/* Pin tooltip'i (Mapbox popup) */
.pf-popup .mapboxgl-popup-content {
	background: var(--ink-2);
	color: var(--paper);
	border: 1px solid rgba(217, 164, 65, 0.35);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
	font-family: 'IBM Plex Sans', sans-serif;
}

.pf-popup .mapboxgl-popup-tip { border-top-color: var(--ink-2); }

.pf-tip { padding: 0 14px 11px; }

.pf-tip::before {
	content: '';
	display: block;
	height: 5px;
	margin: 0 -14px 10px;
	background: repeating-linear-gradient(
		-45deg,
		var(--signal) 0 6px,
		var(--paper) 6px 12px
	);
}

.pf-tip-title {
	font-weight: 700;
	font-size: 13.5px;
	margin-bottom: 5px;
}

.pf-tip-meta {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	color: var(--muted);
	line-height: 1.55;
}

.pf-tip-hint {
	margin-top: 8px;
	padding-top: 7px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brass);
	opacity: 0.85;
}

@media (max-width: 720px) {
	.pf-side {
		width: 100%;
		max-height: 45vh;
		border-left: none;
		border-top: 1px solid var(--line);
	}
}

/* ---- Portföy başlıkları: chip'ler + yönetim ---- */

.pf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 12px;
}

.pf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--ink-3);
	color: var(--paper);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pf-chip span {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10.5px;
	color: var(--muted);
}

.pf-chip:hover { border-color: rgba(217, 164, 65, 0.4); }

.pf-chip.active {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--ink);
}

.pf-chip.active span { color: rgba(18, 22, 28, 0.65); }

.pf-new-form {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 12px;
}

.pf-new-form input {
	flex: 1 1 100%;
	min-width: 0;
	padding: 8px 11px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 12.5px;
	font-family: inherit;
}

.pf-new-form input:focus { outline: none; border-color: var(--brass); }

.pf-form-error {
	color: var(--signal);
	font-size: 12px;
	margin: -6px 0 10px;
}

.pf-actions-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex-wrap: wrap;
}

.pf-manage { position: relative; }

.pf-manage summary { list-style: none; }
.pf-manage summary::-webkit-details-marker { display: none; }

.pf-manage-list {
	margin-top: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--ink);
}

.pf-manage-row {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.pf-manage-row form { display: flex; gap: 6px; }
.pf-manage-row form:first-child { flex: 1; }

.pf-manage-row input {
	flex: 1;
	min-width: 0;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink-2);
	color: var(--paper);
	font-size: 12.5px;
	font-family: inherit;
}

.pf-manage-row input:focus { outline: none; border-color: var(--brass); }

.pf-btn.danger { color: var(--signal); border-color: rgba(227, 59, 50, 0.35); }
.pf-btn.danger:disabled { opacity: 0.35; cursor: not-allowed; }

.pf-manage-hint {
	font-size: 11px;
	color: var(--muted);
	margin-top: 4px;
}

.pf-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border: 1px solid rgba(217, 164, 65, 0.4);
	border-radius: 999px;
	color: var(--brass);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* ---- Portföy paneli: iki seviyeli görünüm ---- */

.pf-view {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}

.pf-view.is-hidden,
.is-hidden { display: none !important; }

.pf-head-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pf-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink-3);
	color: var(--paper);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	flex-shrink: 0;
}

.pf-icon-btn:hover { border-color: rgba(217, 164, 65, 0.5); color: var(--brass); }
.pf-icon-btn.danger { color: var(--signal); }
.pf-icon-btn.danger:disabled { opacity: 0.3; cursor: not-allowed; }

/* Portföy (klasör) satırı */
.pf-folder {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 6px 8px 6px 6px;
	margin-bottom: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--ink-2);
	transition: border-color 0.15s;
}

.pf-folder:hover { border-color: rgba(217, 164, 65, 0.4); }

.pf-folder-open {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 6px;
	background: none;
	border: none;
	color: var(--paper);
	text-align: left;
	cursor: pointer;
}

.pf-folder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--brass-soft);
	color: var(--brass);
	font-size: 15px;
	flex-shrink: 0;
}

.pf-folder-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-folder-info .pf-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-folder-chev {
	margin-left: auto;
	color: var(--muted);
	font-size: 12px;
	transition: color 0.15s, transform 0.15s;
}

.pf-folder-open:hover .pf-folder-chev { color: var(--brass); transform: translateX(2px); }

.pf-folder-tools {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.pf-folder-rename {
	flex-basis: 100%;
	display: flex;
	gap: 6px;
	padding: 4px 6px 8px;
}

.pf-folder-rename input {
	flex: 1;
	min-width: 0;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 12.5px;
	font-family: inherit;
}

.pf-folder-rename input:focus { outline: none; border-color: var(--brass); }

/* ---- İlan (sahibinden) varyantları ---- */

.pf-pin.ilan .pf-pin-dot {
	background: var(--signal);
	box-shadow: inset 0 0 0 3px rgba(237, 234, 226, 0.95), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.pf-pin.ilan .pf-pin-halo {
	background: rgba(227, 59, 50, 0.14);
	border-color: rgba(227, 59, 50, 0.55);
}

.pf-type {
	flex-shrink: 0;
	padding: 2px 8px;
	border: 1px solid rgba(217, 164, 65, 0.4);
	border-radius: 999px;
	color: var(--brass);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.pf-type.ilan {
	border-color: rgba(227, 59, 50, 0.45);
	color: #ef6d66;
}

.pf-badge.ilan {
	border-color: rgba(227, 59, 50, 0.45);
	color: #ef6d66;
}

.pf-folder-icon.ilan {
	background: rgba(227, 59, 50, 0.12);
	color: #ef6d66;
}

.pf-new-form select {
	flex: 1;
	min-width: 0;
	padding: 8px 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 12px;
	font-family: inherit;
}

.pf-new-form select:focus { outline: none; border-color: var(--brass); }

/* ---- Portföy içi arama + kullanıcı profil kartı ---- */

.pf-search {
	width: 100%;
	margin-top: 10px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	font-family: inherit;
}

.pf-search:focus { outline: none; border-color: var(--brass); }

.user-profile-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--ink);
	font-size: 13px;
}

.user-profile-row { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.user-profile-row .fa { width: 16px; text-align: center; color: var(--brass); }
.user-profile-row a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.user-profile-row a:hover { border-bottom-color: var(--brass); }
.user-profile-card form { margin-top: 6px; }

/* ---- Bildirim rozeti (rail) + gizlilik ---- */

.rail-item { 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);
}

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

.user-profile-row.muted { color: var(--muted); font-size: 12.5px; }

/* ---- Müşteri revizeleri (Ağustos 2026) ---- */

/* Portföy klasörü oluştur — bölüm etiketi */
.pf-block-label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brass);
}

/* Konut portföyü varyantı */
.pf-type.konut {
	border-color: rgba(111, 181, 160, 0.45);
	color: #6fb5a0;
}

.pf-folder-icon.konut {
	background: rgba(111, 181, 160, 0.12);
	color: #6fb5a0;
}

/* Satır içi parsel ekleme formu (sağ panelde açılır) */
.pf-inline-form {
	margin-top: 12px;
	padding: 12px;
	border: 1px dashed rgba(217, 164, 65, 0.45);
	border-radius: 10px;
	background: var(--ink-2);
}

.pf-inline-form label {
	display: block;
	margin: 10px 0 4px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.pf-inline-form label:first-of-type { margin-top: 0; }

.pf-inline-form input[type="text"],
.pf-inline-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	font-family: inherit;
}

.pf-inline-form textarea { min-height: 56px; resize: vertical; }

.pf-inline-form input[type="text"]:focus,
.pf-inline-form textarea:focus { outline: none; border-color: var(--brass); }

.pf-inline-form input[type="file"] {
	width: 100%;
	font-size: 12px;
	color: var(--muted);
}

.pf-inline-hint {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: var(--muted);
	line-height: 1.5;
}

.pf-inline-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

/* Takipleştiklerim — harita üstü sol panel */
.pf-friends {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 5;
	width: 232px;
	max-width: calc(100% - 36px);
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(18, 22, 28, 0.92);
	backdrop-filter: blur(6px);
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.pf-friends-head {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 11px 14px;
	background: none;
	border: none;
	color: var(--paper);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.pf-friends-head i:first-child { color: var(--brass); }

.pf-friends-chev {
	margin-left: auto;
	font-size: 11px;
	color: var(--muted);
	transition: transform 0.15s;
}

.pf-friends-head.open .pf-friends-chev { transform: rotate(180deg); }

.pf-friends-body {
	max-height: 42vh;
	overflow-y: auto;
	padding: 4px 8px 10px;
	border-top: 1px solid var(--line);
}

.pf-friend-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 6px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--paper);
}

.pf-friend-row:hover { background: rgba(237, 234, 226, 0.05); }

.pf-friend-row label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.pf-friend-row label span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-friend-row.all {
	cursor: pointer;
	font-weight: 600;
	color: var(--brass);
	border-bottom: 1px dashed var(--line);
	border-radius: 0;
	margin-bottom: 4px;
	padding-bottom: 9px;
}

.pf-friend-row input[type="checkbox"] { accent-color: var(--brass); flex-shrink: 0; }

.pf-friend-link {
	flex-shrink: 0;
	color: var(--muted);
	font-size: 11px;
	padding: 3px 5px;
}

.pf-friend-link:hover { color: var(--brass); }

/* Takipleşilen kullanıcının pinleri — fildişi varyant */
.pf-pin.friend .pf-pin-dot {
	background: var(--paper);
	border-color: var(--brass);
	box-shadow: inset 0 0 0 3px rgba(18, 22, 28, 0.8), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.pf-pin.friend .pf-pin-halo {
	background: rgba(237, 234, 226, 0.12);
	border-color: rgba(237, 234, 226, 0.55);
}

.pf-pin.friend.ilan .pf-pin-dot {
	background: var(--signal);
	border-color: var(--paper);
}

/* Tooltip tıklanabilir */
.pf-tip.clickable { cursor: pointer; }
.pf-tip.clickable:hover .pf-tip-hint { opacity: 1; }
.pf-tip.clickable:hover .pf-tip-title { color: var(--brass); }

/* Görüntüleyici: parsel kartında "Portföyüne Ekle" */
.card-portfolio {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.px-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 9px 12px;
	border: 1px solid rgba(217, 164, 65, 0.5);
	border-radius: 9px;
	background: var(--brass-soft);
	color: var(--brass);
	font-size: 12.5px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: 0.03em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.px-card-btn:hover { background: var(--brass); color: var(--ink); }

.px-card-btn.done {
	border-color: rgba(111, 181, 160, 0.5);
	background: rgba(111, 181, 160, 0.12);
	color: #6fb5a0;
}

.px-card-btn.done:hover { background: rgba(111, 181, 160, 0.25); color: var(--paper); }

.px-add-form { margin-top: 10px; }

.px-add-form input[type="text"],
.px-add-form select {
	width: 100%;
	margin-bottom: 8px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--ink);
	color: var(--paper);
	font-size: 12.5px;
	font-family: inherit;
}

.px-add-form input[type="text"]:focus,
.px-add-form select:focus { outline: none; border-color: var(--brass); }

@media (max-width: 720px) {
	.pf-friends { top: 12px; left: 12px; width: 200px; }
}

/* Klasör satırı: araç butonları alt satıra — isimler kesilmesin */
.pf-folder-tools {
	flex-basis: 100%;
	justify-content: flex-end;
	padding: 0 6px 4px;
	border-top: 1px dashed rgba(151, 160, 168, 0.18);
	padding-top: 6px;
}

/* Tooltip kutusunun tamamı (ok üçgeni dahil) fareye açık — mapbox kökü
   pointer-events:none verdiğinden tıklama haritaya düşüyordu */
.pf-popup { pointer-events: auto; }

/* Tıklama geri bildirimi: hedef pin kısa süre "ping" atar */
.pf-pin.pf-pin-ping .pf-pin-dot {
	animation: pfPing 0.45s ease-out 3;
}

@keyframes pfPing {
	0% { transform: scale(1); }
	50% { transform: scale(1.5); }
	100% { transform: scale(1); }
}

/* ---- Sunum modu: parsel etiketleri ---- */

.px-btn.sunum-on {
	background: var(--brass);
	color: #16130a;
}

.sunum-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	max-width: 210px;
	padding: 7px 12px 6px;
	background: rgba(18, 22, 28, 0.94);
	border: 1px solid rgba(217, 164, 65, 0.45);
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	text-align: center;
	transition: transform 0.15s, border-color 0.15s;
}

.sunum-label:hover {
	transform: translateY(-2px);
	border-color: var(--brass);
}

/* Alt ok — etiket parsel merkezini işaret eder */
.sunum-label::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid rgba(217, 164, 65, 0.65);
}

.sl-title {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--paper);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.sl-price {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	color: var(--brass);
}

.sl-note {
	font-size: 10px;
	color: var(--muted);
	line-height: 1.3;
}

/* ---- Sağ üst harita butonları: hover'da sola kayan isim etiketi ---- */

.px-top-right .px-btn { position: relative; }

.px-top-right .px-btn[data-label]::after {
	content: attr(data-label);
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	transform: translateY(-50%) translateX(10px);
	padding: 7px 13px;
	background: rgba(18, 22, 28, 0.94);
	border: 1px solid rgba(217, 164, 65, 0.45);
	border-radius: 7px;
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0.18s;
}

/* Etiketten butona bakan küçük ok */
.px-top-right .px-btn[data-label]::before {
	content: '';
	position: absolute;
	top: 50%;
	right: calc(100% + 6px);
	transform: translateY(-50%) translateX(10px);
	border: 5px solid transparent;
	border-left-color: rgba(217, 164, 65, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0.18s;
}

.px-top-right .px-btn[data-label]:hover::after,
.px-top-right .px-btn[data-label]:focus-visible::after,
.px-top-right .px-btn[data-label]:hover::before,
.px-top-right .px-btn[data-label]:focus-visible::before {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Dokunmatik cihazlarda hover etiketi devre dışı (native davranış bozulmasın) */
@media (hover: none) {
	.px-top-right .px-btn[data-label]::after,
	.px-top-right .px-btn[data-label]::before { display: none; }
}
