/* =========================================================================
   ARX Gayrimenkul — Ortak tasarım sistemi (Zillow düzeni + ARX markası)
   Tek tema katmanı: tokens, header/footer, butonlar, modal, kartlar,
   arama-split, galeri/lightbox, profil. Tüm sayfalarda reuse edilir.
   ========================================================================= */

:root {
	/* Marka — Zillow mavisi (değişken isimleri korunur, sadece değerler maviye çevrildi) */
	--arx-teal: #1277e1;
	--arx-teal-dark: #0c5bb5;
	--arx-teal-soft: #e8f1fc;
	--arx-gold: #c9a962;
	--arx-gold-dark: #a8893f;

	/* Nötr */
	--arx-ink: #1a2b2e;
	--arx-text: #2c3e50;
	--arx-muted: #6a7388;
	--arx-line: #e3e7ef;
	--arx-line-2: #d7dce6;
	--arx-bg: #f4f6f8;
	--arx-white: #fff;

	/* Durum */
	--arx-danger: #c0392b;
	--arx-danger-bg: #fdecea;
	--arx-ok: #15803d;
	--arx-ok-bg: #e6f4ea;

	/* Şekil */
	--arx-radius: 12px;
	--arx-radius-sm: 8px;
	--arx-radius-pill: 999px;
	--arx-shadow: 0 8px 30px rgba(16, 42, 46, 0.10);
	--arx-shadow-lg: 0 18px 50px rgba(16, 42, 46, 0.22);
	--arx-header-h: 84px;
}

/* =========================== Base ====================================== */
.arx-app {
	margin: 0;
	font-family: "Montserrat", system-ui, -apple-system, sans-serif;
	color: var(--arx-text);
	background: var(--arx-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Sticky footer: ana içerik boş alanı doldurur, footer en alta yapışır */
.arx-app > main {
	flex: 1 0 auto;
}

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

.arx-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.arx-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* =========================== Header ==================================== */
.arx-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	height: var(--arx-header-h);
	padding: 0 clamp(1rem, 4vw, 2.5rem);
	background: var(--arx-white);
	border-bottom: 1px solid var(--arx-line);
}

/* Şeffaf varyant — hero görseli üzerinde (ana sayfa) */
.arx-header--transparent {
	position: absolute;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
}

.arx-header__group {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	min-width: 0;
}

.arx-header__group--left {
	justify-self: start;
}

.arx-header__group--right {
	justify-self: end;
	gap: 0.85rem;
}

.arx-header__logo {
	justify-self: center;
}

.arx-navlink--muted {
	font-weight: 500;
}

.arx-logo {
	display: inline-flex;
	align-items: center;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	color: var(--arx-ink);
	text-decoration: none;
	white-space: nowrap;
}

/* Marka logosu (görsel) — /images/arx-logo.png */
.arx-logo__img {
	height: 72px;
	width: auto;
	display: block;
}

/* Hero (şeffaf header) üzerinde okunabilirlik için hafif gölge */
.arx-header--transparent .arx-logo__img {
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.arx-logo span {
	color: var(--arx-teal);
}

.arx-header--transparent .arx-logo {
	color: #fff;
}

.arx-header--transparent .arx-logo span {
	color: #8fbcff;
}

.arx-navlink {
	color: var(--arx-text);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s;
}

.arx-navlink:hover {
	color: var(--arx-teal);
}

.arx-header--transparent .arx-navlink {
	color: rgba(255, 255, 255, 0.9);
}

.arx-header--transparent .arx-navlink:hover {
	color: #fff;
}

.arx-header__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

/* Kullanıcı avatarı / menüsü */
.arx-user {
	position: relative;
}

.arx-user__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.2rem;
	font-family: inherit;
}

.arx-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--arx-teal);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	overflow: hidden;
	flex-shrink: 0;
}

/* Avatar görseli: tüm resmi göster (kırpma yok); boşlukları beyaz doldur */
.arx-avatar img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.arx-user__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius-sm);
	box-shadow: var(--arx-shadow);
	padding: 0.4rem;
	display: none;
}

.arx-user__menu.is-open {
	display: block;
}

.arx-user__menu a,
.arx-user__menu button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border: 0;
	background: none;
	color: var(--arx-text);
	font: inherit;
	font-size: 0.88rem;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
}

.arx-user__menu a:hover,
.arx-user__menu button:hover {
	background: var(--arx-teal-soft);
	color: var(--arx-teal-dark);
}

/* Dil değiştirici — koyu (şeffaf header) ve açık varyant */
.arx-header .lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.15rem 0.35rem;
	border-radius: var(--arx-radius-pill);
	background: var(--arx-bg);
	border: 1px solid var(--arx-line);
}

.arx-header--transparent .lang-switch {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
}

.arx-header .lang-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1;
	transition: background 0.2s, transform 0.15s;
}

.arx-header .lang-switch__link.is-active {
	background: var(--arx-teal-soft);
	box-shadow: 0 0 0 2px var(--arx-teal);
}

.arx-header--transparent .lang-switch__link.is-active {
	background: rgba(255, 255, 255, 0.28);
	box-shadow: 0 0 0 2px rgba(143, 188, 255, 0.6);
}

/* =========================== Butonlar ================================== */
.arx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	border-radius: var(--arx-radius-sm);
	border: 1px solid transparent;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.arx-btn--primary {
	background: var(--arx-teal);
	color: #fff;
}

.arx-btn--primary:hover {
	background: var(--arx-teal-dark);
}

.arx-btn--block {
	width: 100%;
}

.arx-btn--sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.82rem;
}

.arx-btn--ghost {
	background: transparent;
	border-color: var(--arx-line-2);
	color: var(--arx-text);
}

.arx-btn--ghost:hover {
	border-color: var(--arx-teal);
	color: var(--arx-teal);
}

.arx-header--transparent .arx-btn--ghost {
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}

.arx-header--transparent .arx-btn--ghost:hover {
	background: #fff;
	color: var(--arx-teal-dark);
}

.arx-btn--gold {
	background: var(--arx-gold);
	color: #2b2410;
}

.arx-btn--gold:hover {
	background: var(--arx-gold-dark);
	color: #fff;
}

.arx-btn:disabled,
.arx-btn.is-submitting {
	opacity: 0.7;
	cursor: wait;
}

/* =========================== Chip / pill =============================== */
.arx-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--arx-teal-dark);
	background: var(--arx-teal-soft);
	border: 1px solid rgba(18, 119, 225, 0.25);
	padding: 0.25rem 0.55rem;
	border-radius: var(--arx-radius-pill);
}

.arx-status {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.25rem 0.55rem;
	border-radius: var(--arx-radius-pill);
	background: var(--arx-ok-bg);
	color: var(--arx-ok);
}

.arx-status--SOLD,
.arx-status--PASSIVE,
.arx-status--RENTED {
	background: var(--arx-danger-bg);
	color: var(--arx-danger);
}

/* =========================== Alert ===================================== */
.arx-alert {
	padding: 0.75rem 0.95rem;
	border-radius: var(--arx-radius-sm);
	margin-bottom: 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.arx-alert--error {
	background: var(--arx-danger-bg);
	color: var(--arx-danger);
}

.arx-alert--info {
	background: var(--arx-teal-soft);
	color: var(--arx-teal-dark);
}

/* =========================== Form alanları ============================= */
.arx-field {
	margin-bottom: 1.1rem;
}

.arx-field label,
.arx-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--arx-text);
	margin-bottom: 0.35rem;
}

.arx-input,
.arx-select {
	width: 100%;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--arx-line-2);
	border-radius: var(--arx-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	background: #fbfcfd;
	color: var(--arx-text);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.arx-input:focus,
.arx-select:focus {
	border-color: var(--arx-teal);
	box-shadow: 0 0 0 3px var(--arx-teal-soft);
}

.arx-input:disabled {
	background: var(--arx-bg);
	color: var(--arx-muted);
	cursor: not-allowed;
}

.arx-hint {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	color: var(--arx-muted);
}

/* =========================== Modal (auth) ============================= */
.arx-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 1rem;
	background: rgba(16, 28, 30, 0.55);
	overflow-y: auto;
}

.arx-modal.is-open {
	display: flex;
}

.arx-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--arx-radius);
	box-shadow: var(--arx-shadow-lg);
	padding: 1.75rem 1.75rem 2rem;
	color: var(--arx-text);
}

.arx-modal__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: none;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--arx-muted);
	cursor: pointer;
	border-radius: 50%;
}

.arx-modal__close:hover {
	background: var(--arx-bg);
	color: var(--arx-text);
}

.arx-modal__title {
	text-align: center;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 1.1rem;
}

/* Sekmeler */
.arx-tabs {
	display: flex;
	gap: 1.5rem;
	border-bottom: 1px solid var(--arx-line);
	margin-bottom: 1.25rem;
}

.arx-tab {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 0.6rem 0;
	margin-bottom: -1px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--arx-muted);
	cursor: pointer;
}

.arx-tab.is-active {
	color: var(--arx-teal);
	border-bottom-color: var(--arx-teal);
}

.arx-tabpane {
	display: none;
}

.arx-tabpane.is-active {
	display: block;
}

/* Parola gücü göstergesi */
.arx-pw {
	margin: -0.4rem 0 0.9rem;
}

.arx-pw__bar {
	height: 6px;
	border-radius: var(--arx-radius-pill);
	background: var(--arx-line);
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.arx-pw__fill {
	height: 100%;
	width: 0;
	background: var(--arx-danger);
	transition: width 0.25s, background 0.25s;
}

.arx-pw__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--arx-muted);
	margin: 0 0 0.45rem;
}

.arx-pw__rules {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.2rem;
}

.arx-pw__rules li {
	font-size: 0.74rem;
	color: var(--arx-muted);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.arx-pw__rules li::before {
	content: "✕";
	color: var(--arx-danger);
	font-weight: 700;
	font-size: 0.7rem;
}

.arx-pw__rules li.is-ok {
	color: var(--arx-ok);
}

.arx-pw__rules li.is-ok::before {
	content: "✓";
	color: var(--arx-ok);
}

/* Profesyonel alanlar (checkbox ile açılır) */
.arx-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
	font-size: 0.88rem;
}

.arx-check input {
	margin-top: 0.15rem;
}

.arx-prof {
	display: none;
	border-top: 1px solid var(--arx-line);
	padding-top: 1rem;
	margin-top: 0.25rem;
}

.arx-prof.is-open {
	display: block;
}

.arx-prof__title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}

.arx-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.arx-grid-3 {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 0.75rem;
}

/* Sosyal / ayraç */
.arx-divider {
	text-align: center;
	color: var(--arx-muted);
	font-size: 0.8rem;
	margin: 1.1rem 0 0.85rem;
	position: relative;
}

.arx-divider::before,
.arx-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 38%;
	height: 1px;
	background: var(--arx-line);
}

.arx-divider::before {
	left: 0;
}

.arx-divider::after {
	right: 0;
}

.arx-social {
	display: grid;
	gap: 0.55rem;
}

.arx-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem;
	border: 1px solid var(--arx-line-2);
	border-radius: var(--arx-radius-sm);
	background: #fff;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--arx-text);
	cursor: pointer;
}

.arx-social__btn:hover {
	background: var(--arx-bg);
}

.arx-modal__foot {
	text-align: center;
	font-size: 0.85rem;
	color: var(--arx-muted);
	margin-top: 1rem;
}

.arx-modal__foot a,
.arx-link {
	color: var(--arx-teal);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.arx-modal__foot a:hover,
.arx-link:hover {
	text-decoration: underline;
}

/* =========================== Sayfa / kart düzeni ====================== */
.arx-page {
	padding: 2rem 0 3rem;
}

.arx-page__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.arx-page__title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
	color: var(--arx-ink);
}

.arx-card {
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	box-shadow: var(--arx-shadow);
	padding: 2rem;
}

.arx-card--narrow {
	max-width: 460px;
	margin: 3rem auto;
}

/* =========================== Auth sayfa (fallback) ==================== */
.arx-auth {
	min-height: calc(100vh - var(--arx-header-h));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

.arx-auth__card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	box-shadow: var(--arx-shadow);
	padding: 2.25rem 2rem 2.5rem;
}

.arx-auth__card h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	text-align: center;
}

.arx-auth__sub {
	color: var(--arx-muted);
	font-size: 0.92rem;
	margin: 0 0 1.5rem;
	text-align: center;
}

/* =========================== Arama split (liste+harita) =============== */
.arx-search {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 0;
	height: calc(100vh - var(--arx-header-h));
}

.arx-search__map {
	position: relative;
	background:
		linear-gradient(rgba(18, 119, 225, 0.06), rgba(18, 119, 225, 0.06)),
		repeating-linear-gradient(0deg, #e9eef0 0 39px, #dfe6e8 39px 40px),
		repeating-linear-gradient(90deg, #e9eef0 0 39px, #dfe6e8 39px 40px);
	border-right: 1px solid var(--arx-line);
}

.arx-search__map-note {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: rgba(26, 43, 46, 0.82);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.45rem 0.8rem;
	border-radius: var(--arx-radius-sm);
}

.arx-search__pin {
	position: absolute;
	transform: translate(-50%, -100%);
	background: var(--arx-teal);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.25rem 0.55rem;
	border-radius: var(--arx-radius-pill);
	box-shadow: var(--arx-shadow);
	white-space: nowrap;
}

.arx-search__list {
	overflow-y: auto;
	padding: 1.25rem;
	background: var(--arx-bg);
}

.arx-search__bar {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.arx-search__count {
	font-size: 0.85rem;
	color: var(--arx-muted);
	margin: 0 0 1rem;
}

/* =========================== İlan kartları (Zillow) =================== */
.arx-listings {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.1rem;
}

.arx-lcard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.18s, transform 0.18s;
}

.arx-lcard:hover {
	box-shadow: var(--arx-shadow);
	transform: translateY(-2px);
}

.arx-lcard__media {
	position: relative;
	aspect-ratio: 16 / 11;
	background: #dfe6e8 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #9fb3b5;
}

.arx-lcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arx-lcard__ribbon {
	position: absolute;
	bottom: 0.6rem;
	left: 0.6rem;
	background: var(--arx-teal);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	border-radius: var(--arx-radius-pill);
}

.arx-lcard__status {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
}

.arx-lcard__body {
	padding: 0.8rem 0.9rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.arx-lcard__price {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--arx-ink);
}

.arx-lcard__meta {
	font-size: 0.82rem;
	color: var(--arx-text);
	font-weight: 600;
}

.arx-lcard__loc {
	font-size: 0.8rem;
	color: var(--arx-muted);
}

.arx-lcard__title {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--arx-text);
}

.arx-empty {
	text-align: center;
	color: var(--arx-muted);
	padding: 3rem 1rem;
}

/* =========================== İlan detay + galeri ===================== */
.arx-detail {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.arx-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 130px;
	gap: 6px;
	border-radius: var(--arx-radius);
	overflow: hidden;
}

.arx-gallery__item {
	position: relative;
	background: #dfe6e8 center/cover no-repeat;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.arx-gallery__item:first-child {
	grid-row: span 2;
	grid-column: span 1;
}

.arx-gallery__more {
	position: absolute;
	inset: 0;
	background: rgba(16, 28, 30, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1rem;
}

.arx-detail__aside {
	position: sticky;
	top: calc(var(--arx-header-h) + 1rem);
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	box-shadow: var(--arx-shadow);
	padding: 1.5rem;
}

.arx-detail__price {
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--arx-ink);
	margin: 0 0 0.25rem;
}

.arx-detail__loc {
	color: var(--arx-muted);
	margin: 0 0 1rem;
}

.arx-detail__facts {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding: 0.85rem 0;
	border-top: 1px solid var(--arx-line);
	border-bottom: 1px solid var(--arx-line);
	margin-bottom: 1.25rem;
}

.arx-detail__fact b {
	display: block;
	font-size: 1.05rem;
}

.arx-detail__fact span {
	font-size: 0.78rem;
	color: var(--arx-muted);
}

.arx-detail__desc {
	white-space: pre-line;
	line-height: 1.6;
	color: var(--arx-text);
	margin-top: 1.5rem;
}

/* Lightbox */
.arx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: none;
	flex-direction: column;
	background: rgba(8, 14, 16, 0.96);
}

.arx-lightbox.is-open {
	display: flex;
}

.arx-lightbox__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.25rem;
	color: #fff;
}

.arx-lightbox__close {
	background: none;
	border: 0;
	color: #fff;
	font-size: 1.6rem;
	cursor: pointer;
	line-height: 1;
}

.arx-lightbox__stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0 1rem 1.5rem;
}

.arx-lightbox__img {
	max-width: 92%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
}

.arx-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 1.4rem;
	cursor: pointer;
}

.arx-lightbox__nav--prev {
	left: 1.5rem;
}

.arx-lightbox__nav--next {
	right: 1.5rem;
}

.arx-lightbox__count {
	font-size: 0.85rem;
	font-weight: 600;
}

/* =========================== Profil ================================== */
.arx-profile {
	max-width: 720px;
	margin: 0 auto;
}

.arx-profile__row {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--arx-line);
}

.arx-profile__row > label,
.arx-profile__row > .arx-label {
	font-weight: 700;
	color: var(--arx-text);
	margin: 0;
}

/* Profil görünümü — Zillow "Profile" (Kişisel Bilgiler + Giriş & Güvenlik) */
.arx-section + .arx-section {
	margin-top: 1.5rem;
}

.arx-section__title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--arx-ink);
	margin: 0 0 0.5rem;
}

.arx-setting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--arx-line);
}

.arx-setting:last-child {
	border-bottom: 0;
}

.arx-setting__main {
	min-width: 0;
}

.arx-setting__label {
	margin: 0;
	font-weight: 600;
	color: var(--arx-text);
}

.arx-setting__desc {
	margin: 0.15rem 0 0;
	font-size: 0.82rem;
	color: var(--arx-muted);
}

.arx-setting__right {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.arx-setting__value {
	color: var(--arx-text);
	font-size: 0.9rem;
	text-align: right;
}

.arx-setting__value small {
	display: block;
	font-size: 0.72rem;
	color: var(--arx-muted);
}

.arx-badge-ok {
	color: var(--arx-ok);
	font-weight: 600;
	font-size: 0.82rem;
}

.arx-photo-drop {
	border: 2px dashed var(--arx-line-2);
	border-radius: var(--arx-radius);
	padding: 2rem;
	text-align: center;
	color: var(--arx-muted);
}

.arx-photo-preview {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--arx-teal-soft);
	margin: 0 auto 1rem;
	display: block;
}

/* Edit Photo (Zillow tarzı: dosya seç + önizleme + kaldır) */
.arx-photo-choose {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.4rem;
}

.arx-photo-name {
	font-size: 0.85rem;
	color: var(--arx-muted);
}

.arx-photo-box {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 1.25rem 0;
	padding: 0.5rem;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	background: var(--arx-bg);
}

.arx-photo-box.is-empty {
	display: none;
}

.arx-photo-box__img {
	width: 120px;
	height: 120px;
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
	display: block;
}

.arx-photo-box__remove {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	color: var(--arx-teal);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	cursor: pointer;
}

.arx-photo-box__remove:hover {
	color: var(--arx-teal-dark);
	text-decoration: underline;
}

/* Steps (profil kurulum akışı) */
.arx-steps {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.arx-steps__item {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--arx-muted);
	padding: 0.35rem 0.8rem;
	border-radius: var(--arx-radius-pill);
	background: var(--arx-bg);
	border: 1px solid var(--arx-line);
}

.arx-steps__item.is-active {
	color: #fff;
	background: var(--arx-teal);
	border-color: var(--arx-teal);
}

/* =========================== Sohbet paneli ========================== */
.arx-chat {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 480px;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	box-shadow: var(--arx-shadow);
	overflow: hidden;
}

.arx-chat__head {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--arx-line);
}

.arx-chat__name {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--arx-ink);
}

.arx-chat__sub {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--arx-muted);
}

.arx-chat__body {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	background: var(--arx-bg);
}

.arx-chat__empty {
	margin: auto;
	color: var(--arx-muted);
}

.arx-chat__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 76%;
}

.arx-chat__row--mine {
	align-items: flex-end;
	align-self: flex-end;
}

.arx-chat__bubble {
	padding: 0.6rem 0.9rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--arx-line);
	white-space: pre-wrap;
	word-break: break-word;
}

.arx-chat__row--mine .arx-chat__bubble {
	background: var(--arx-teal);
	border-color: var(--arx-teal);
	color: #fff;
}

.arx-chat__time {
	font-size: 0.72rem;
	color: var(--arx-muted);
	margin-top: 0.15rem;
}

.arx-chat__composer {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	padding: 0.9rem 1rem;
	border-top: 1px solid var(--arx-line);
	background: #fff;
}

.arx-chat__composer .arx-field {
	flex: 1;
	margin: 0;
}

/* Zil okunmamış rozeti (server + canlı SSE güncellemesi aynı stili kullanır) */
.arx-notif-badge {
	position: absolute;
	top: -2px;
	right: -9px;
	background: var(--arx-danger);
	color: #fff;
	font-size: 0.68rem;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 999px;
	padding: 0 4px;
}

/* Gerçek-zamanlı toast bildirimleri (sağ alt) */
.arx-toast-host {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: min(360px, calc(100vw - 2rem));
}

.arx-toast {
	background: var(--arx-ink, #0e1b1d);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: var(--arx-radius-sm, 8px);
	box-shadow: var(--arx-shadow);
	font-size: 0.9rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.arx-toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

/* =========================== Footer ================================== */
.arx-footer {
	background: #0e1b1d;
	color: rgba(255, 255, 255, 0.72);
	padding: 2.5rem 0 2rem;
	font-size: 0.85rem;
}

.arx-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
}

.arx-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.arx-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

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

/* =========================== Dashboard / menu ======================== */
.arx-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.arx-menu-card {
	display: block;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.18s, transform 0.18s;
}

.arx-menu-card:hover {
	box-shadow: var(--arx-shadow);
	transform: translateY(-2px);
}

.arx-menu-card__icon {
	font-size: 1.6rem;
	margin-bottom: 0.5rem;
}

.arx-menu-card__title {
	font-weight: 700;
	margin: 0 0 0.25rem;
}

.arx-menu-card__desc {
	font-size: 0.82rem;
	color: var(--arx-muted);
	margin: 0;
}

.arx-role-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--arx-gold-dark);
	background: rgba(201, 169, 98, 0.16);
	padding: 0.25rem 0.6rem;
	border-radius: var(--arx-radius-pill);
}

/* ============== Dashboard (Zillow Rental Manager düzeni) ============== */
/* Role bazlı vurgu rengi — body'deki role-XXX sınıfından gelir (dinamik marka) */
.role-ADMIN { --role-accent: #1277e1; }
.role-USER { --role-accent: #475569; }
.role-CONSULTANT { --role-accent: #0e9f8f; }
.role-CONTRACTOR { --role-accent: #d97706; }
.role-ARCHITECT { --role-accent: #7c3aed; }
.role-BROKER { --role-accent: #c026d3; }
.role-LEGAL { --role-accent: #b91c1c; }
.role-EDUCATION { --role-accent: #15803d; }

.arx-dash__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	height: var(--arx-header-h);
	padding: 0 clamp(1rem, 4vw, 2rem);
	background: var(--arx-white);
	border-bottom: 1px solid var(--arx-line);
}

.arx-dash__nav {
	display: flex;
	align-items: center;
	gap: 1.4rem;
}

.arx-dash__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.1rem;
}

.arx-dash__navlink {
	color: var(--arx-text);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.arx-dash__navlink:hover,
.arx-dash__navlink.is-active {
	color: var(--arx-teal);
}

/* Dinamik marka — role göre değişen "logo" (Zillow Rental Manager karşılığı) */
.arx-dash__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-self: center;
	text-decoration: none;
	line-height: 1.05;
	padding-top: 3px;
	border-top: 2px solid var(--role-accent, var(--arx-teal));
}

.arx-dash__logo {
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	color: var(--arx-ink);
}

.arx-dash__role {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--role-accent, var(--arx-teal));
}

.arx-dash__bell {
	font-size: 1.05rem;
}

.arx-dash {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

/* Bağlam başlığı (Zillow'daki mülk başlığının yerine kullanıcı) */
.arx-dash__context {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--arx-line);
	margin-bottom: 1.25rem;
}

.arx-dash__context-av {
	width: 56px;
	height: 56px;
	font-size: 1.4rem;
}

.arx-dash__context-main {
	margin-right: auto;
	min-width: 0;
}

.arx-dash__context-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--arx-ink);
}

.arx-dash__context-sub {
	margin: 0.2rem 0 0;
	color: var(--arx-muted);
	font-size: 0.9rem;
}

.arx-dash__role-badge {
	padding: 0.3rem 0.85rem;
	border-radius: var(--arx-radius-pill);
	background: var(--role-accent, var(--arx-teal));
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Sekmeler (Zillow tab bar) */
.arx-dash__tabs {
	display: flex;
	gap: 1.75rem;
	border-bottom: 1px solid var(--arx-line);
	margin-bottom: 1.5rem;
	overflow-x: auto;
}

.arx-dash__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.15rem 0.9rem;
	color: var(--arx-muted);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.arx-dash__tab:hover {
	color: var(--arx-text);
}

.arx-dash__tab.is-active {
	color: var(--role-accent, var(--arx-teal));
	border-bottom-color: var(--role-accent, var(--arx-teal));
}

.arx-dash__tab-ico {
	font-size: 1rem;
}

/* İçerik: 2 kolon (geniş içerik + yan panel) */
.arx-dash__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.arx-dash__panel,
.arx-dash__aside {
	padding: 1.25rem 1.5rem;
}

.arx-dash__panel-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--arx-ink);
}

.arx-dash__step {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 0.25rem;
	border-bottom: 1px solid var(--arx-line);
	text-decoration: none;
	color: var(--arx-text);
	font-weight: 600;
	font-size: 0.9rem;
}

.arx-dash__step:hover {
	color: var(--arx-teal);
}

.arx-dash__step-arrow {
	color: var(--arx-muted);
	font-size: 1.1rem;
}

.arx-dash__logout {
	margin-top: 1rem;
}

/* =========================== Soru Havuzu (Q&A) ====================== */
.arx-qtabs {
	display: flex;
	gap: 1.5rem;
	border-bottom: 1px solid var(--arx-line);
	margin: 0.75rem 0 1.25rem;
	overflow-x: auto;
}

.arx-qtabs a {
	padding: 0.5rem 0.15rem 0.85rem;
	color: var(--arx-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.arx-qtabs a:hover {
	color: var(--arx-text);
}

.arx-qtabs a.is-active {
	color: var(--arx-teal);
	border-bottom-color: var(--arx-teal);
}

.arx-qrow {
	display: block;
	background: #fff;
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.arx-qrow:hover {
	box-shadow: var(--arx-shadow);
	border-color: var(--arx-line-2);
}

.arx-qrow__title {
	font-weight: 700;
	color: var(--arx-ink);
	margin: 0.5rem 0 0.3rem;
}

.arx-qrow__meta {
	font-size: 0.82rem;
	color: var(--arx-muted);
	margin: 0;
}

/* Yanıt kartı (detay sayfası) */
.arx-answer {
	border: 1px solid var(--arx-line);
	border-radius: var(--arx-radius);
	background: #fff;
	padding: 1rem 1.25rem;
	margin-bottom: 0.85rem;
}

.arx-answer__body {
	margin: 0 0 0.5rem;
	white-space: pre-line;
}

.arx-answer__meta {
	font-size: 0.8rem;
	color: var(--arx-muted);
}

/* =========================== Responsive ============================== */
@media (max-width: 960px) {
	.arx-navlink--muted {
		display: none;
	}

	.arx-search {
		grid-template-columns: 1fr;
		height: auto;
	}

	.arx-search__map {
		height: 240px;
		border-right: 0;
		border-bottom: 1px solid var(--arx-line);
	}

	.arx-search__list {
		height: auto;
	}

	.arx-detail {
		grid-template-columns: 1fr;
	}

	.arx-detail__aside {
		position: static;
	}
}

@media (max-width: 760px) {
	.arx-header__group--left {
		display: none;
	}

	.arx-logo__img {
		height: 54px;
	}

	.arx-grid-2,
	.arx-grid-3,
	.arx-profile__row,
	.arx-dash__grid {
		grid-template-columns: 1fr;
	}

	.arx-gallery {
		grid-template-columns: 1fr 1fr;
	}

	.arx-dash__actions .arx-dash__navlink {
		display: none;
	}

	.arx-dash__context-title {
		font-size: 1.25rem;
	}
}
