/* ==========================================================================
   En Kolay Adres — header (TT-MİM referans, sadeleştirilmiş)
   ========================================================================== */

:root {
	--eka-blue: #0066CC;
	--eka-orange: #FF6600;
	--eka-teal: #14b8a6;
	--eka-ink: #1a1a1a;
	--eka-head-h: 72px;
}

/* --------------------------------------------------------------------------
   Light header bar
   -------------------------------------------------------------------------- */
.smart-head-legacy .smart-head-mid.is-light,
.smart-head .smart-head-mid.is-light {
	--head-h: var(--eka-head-h);
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.smart-head-legacy .smart-head-mid.is-light > .inner,
.smart-head .smart-head-mid.is-light > .inner {
	min-height: var(--eka-head-h);
	align-items: center;
}

.smart-head-legacy .smart-head-mid.is-light .items,
.smart-head .smart-head-mid.is-light .items {
	align-items: center;
	gap: 10px;
}

/* Hide empty top bar leftover space if present */
.smart-head-legacy .smart-head-top:not(:has(.items-left > *:not(.empty))):not(:has(.items-right > *:not(.empty))) {
	display: none;
}

/* --------------------------------------------------------------------------
   Logo — only one visible (CRITICAL: do not force-show dark logo)
   -------------------------------------------------------------------------- */
.logo-link.ts-logo,
.logo-link.logo-is-image {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	max-width: min(100%, 240px);
}

.smart-head .logo-link > h1,
.smart-head .logo-link > span {
	display: flex;
	align-items: center;
	margin: 0;
	gap: 0;
}

/* Default: color logo only */
.ts-logo .logo-image {
	display: block;
	height: 40px;
	width: auto;
	max-width: 100%;
	max-height: 40px;
	padding: 0 !important;
	object-fit: contain;
}

.ts-logo .logo-image-dark {
	display: none !important;
}

/* Dark scheme rows: white logo only */
.s-dark .ts-logo .logo-image-dark {
	display: block !important;
}

.s-dark .ts-logo .logo-image-dark ~ .logo-image {
	display: none !important;
}

.smart-head-main.is-sticky .ts-logo .logo-image:not(.logo-image-dark) {
	height: 34px;
	max-height: 34px;
}

/* Text fallback */
.logo-link.text-logo {
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	color: var(--eka-blue);
	text-decoration: none;
	line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.smart-head .smart-head-mid.is-light .navigation-main > .menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
}

.smart-head .smart-head-mid.is-light .navigation-main > .menu > .menu-item > a {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.06em;
	font-size: 13px;
	color: var(--eka-ink);
	padding: 0.55em 0.85em;
	line-height: 1.2;
}

.smart-head .smart-head-mid.is-light .navigation-main > .menu > .menu-item > a:hover,
.smart-head .smart-head-mid.is-light .navigation-main > .menu > .menu-item.current-menu-item > a {
	color: var(--eka-teal);
}

/* --------------------------------------------------------------------------
   Right actions: Telefon + search
   -------------------------------------------------------------------------- */
.smart-head .smart-head-mid.is-light .items-right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.smart-head .ts-button1.ts-button-a,
.smart-head a.ts-button1.ts-button-a {
	background: var(--eka-teal) !important;
	color: #fff !important;
	border: none !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 1;
	padding: 0.85em 1.35em;
	border-radius: 6px;
	box-shadow: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.smart-head .ts-button1.ts-button-a:hover {
	background: #0f9f94 !important;
	filter: none;
	transform: translateY(-1px);
}

.smart-head .smart-head-mid.is-light .search-icon {
	color: var(--eka-ink);
	opacity: 0.85;
	font-size: 18px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.smart-head .smart-head-mid.is-light .search-icon:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   Mobile header (.smart-head-mobile)
   -------------------------------------------------------------------------- */
.smart-head-mobile {
	--eka-head-h: 60px;
}

.smart-head-mobile .smart-head-mid {
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.smart-head-mobile .smart-head-mid > .inner {
	min-height: var(--eka-head-h);
	align-items: center;
	padding-left: 12px;
	padding-right: 12px;
}

.smart-head-mobile .items {
	align-items: center;
	gap: 8px;
}

.smart-head-mobile .items-left {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
}

.smart-head-mobile .logo-link.ts-logo,
.smart-head-mobile .logo-link.logo-is-image {
	max-width: calc(100vw - 108px);
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* Mobile: yalnız renkli logo — .logo-image dark'ı da eşleştirir, :not şart */
.smart-head-mobile .ts-logo .logo-image-dark {
	display: none !important;
}

.smart-head-mobile .ts-logo .logo-image:not(.logo-image-dark) {
	display: block !important;
	height: 36px !important;
	max-height: 36px !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 0 !important;
	object-fit: contain;
}

.smart-head-mobile .items-right {
	flex: 0 0 auto;
}

.smart-head-mobile .items-center {
	flex: 0 0 auto;
	width: 0;
	min-width: 0;
	padding: 0;
	overflow: hidden;
}

.smart-head-mobile .search-icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--eka-ink);
	flex-shrink: 0;
}

.smart-head-mobile .offcanvas-toggle,
.smart-head-mobile .hamburger {
	flex-shrink: 0;
}

/* Eski “BUTTON” / telefon satırını mobilde gizle (yer kaplamasın) */
.smart-head-mobile .ts-button,
.smart-head-mobile a.ts-button {
	display: none !important;
}

@media (max-width: 940px) {
	.smart-head-main .ts-logo .logo-image:not(.logo-image-dark) {
		height: 40px;
		max-height: 40px;
	}
}

/* Mobile drawer */
.ttmim-mobile-drawer .off-canvas-head .ts-logo {
	display: flex;
	align-items: center;
	min-height: 48px;
}

.ttmim-mobile-drawer .off-canvas-head .ts-logo .logo-image-dark {
	display: none !important;
}

.ttmim-mobile-drawer .off-canvas-head .ts-logo .logo-image:not(.logo-image-dark) {
	display: block !important;
	height: 40px !important;
	max-width: 200px;
}
