/*
 * Mercek Haber — Firma Rehberi
 * Yalnızca firmaya özgü (.f-) sınıflar. Renkler tema değişkenlerinden gelir;
 * koyu mod html[data-theme=dark] ile kendiliğinden uyum sağlar.
 */

/* ---------- Ortak ---------- */
.f-section {
	margin-top: 28px;
}

.f-head {
	margin: 0 0 18px;
}

.f-head__t {
	margin: 0;
	color: var(--text);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1.2;
}

.f-head__intro {
	margin-top: 10px;
	max-width: 70ch;
	color: var(--muted);
	line-height: 1.65;
}

.f-head__intro p {
	margin: 0 0 .6em;
}

.f-head__intro p:last-child {
	margin-bottom: 0;
}

.f-count {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: .9rem;
}

/* ---------- Arama formu ---------- */
.f-search {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
}

.f-search__f {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.f-search__f label {
	margin: 0;
	color: var(--muted);
	font-size: .8rem;
	font-weight: 600;
}

.f-search__f input,
.f-search__f select {
	width: 100%;
	min-width: 0;
}

.f-search__f select:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.f-search__f--btn .m-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	white-space: nowrap;
}

.f-search--compact {
	grid-template-columns: minmax(0, 1fr);
}

/* ---------- İlçe çipleri ---------- */
.f-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.f-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}

.f-chip:hover,
.f-chip:focus-visible,
.f-chip[aria-current="true"] {
	border-color: var(--c1);
	color: var(--c1);
}

.f-chip__c {
	color: var(--muted);
	font-size: .78rem;
	font-weight: 500;
}

/* ---------- Kategori kutuları ---------- */
.f-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.f-cat {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	color: var(--text);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.f-cat:hover,
.f-cat:focus-visible {
	border-color: var(--c1);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.f-cat__i {
	display: inline-flex;
	grid-row: span 2;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--bg);
	color: var(--c1);
}

.f-cat__n {
	overflow: hidden;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
}

.f-cat__c {
	grid-column: 2;
	color: var(--muted);
	font-size: .8rem;
}

/* ---------- Firma kartı ---------- */
.f-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	transition: box-shadow .15s, transform .15s, border-color .15s;
}

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

.f-card--one {
	border-color: var(--c1);
}

.f-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg);
}

.f-card__media .m-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f-card__media .m-img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
}

.f-card__flag {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border: 1px solid var(--c1);
	border-radius: 999px;
	background: var(--card);
	color: var(--c1);
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.2;
}

.f-card__flag .m-icon {
	width: 13px;
	height: 13px;
}

.f-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
}

.f-card__cat {
	color: var(--c1);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.f-card__title {
	margin: 0 0 2px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
}

.f-card__title a {
	color: var(--text);
	text-decoration: none;
}

.f-card__title a:hover,
.f-card__title a:focus-visible {
	color: var(--c1);
}

.f-card__row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--muted);
	font-size: .86rem;
	line-height: 1.4;
}

.f-card__row .m-icon {
	flex: none;
	width: 15px;
	height: 15px;
}

.f-card__row a {
	color: inherit;
	text-decoration: none;
}

.f-card__row a:hover,
.f-card__row a:focus-visible {
	color: var(--c1);
}

/* ---------- Tekil firma ---------- */
.f-firma__head {
	margin: 0 0 16px;
}

.f-firma__title {
	margin: 0 0 10px;
	color: var(--text);
	font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
	font-weight: 800;
	line-height: 1.2;
}

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

.f-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--text);
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.f-badge .m-icon {
	width: 14px;
	height: 14px;
	color: var(--c1);
}

a.f-badge:hover,
a.f-badge:focus-visible,
.f-badge--one {
	border-color: var(--c1);
	color: var(--c1);
}

.f-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.f-hero--solo {
	grid-template-columns: minmax(0, 1fr);
}

.f-hero__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}

.f-hero__media .m-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f-hero__media .m-img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
}

.f-contact__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.f-contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--text);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.f-contact__list .m-icon {
	flex: none;
	margin-top: 2px;
	color: var(--c1);
}

.f-contact__list a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.f-contact__list a:hover,
.f-contact__list a:focus-visible {
	color: var(--c1);
}

.f-contact__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.f-contact__btns:empty {
	display: none;
}

.f-contact__btns .m-btn {
	display: inline-flex;
	flex: 1 1 140px;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.f-contact__social {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.f-contact__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text);
	transition: border-color .15s, color .15s;
}

.f-contact__social a:hover,
.f-contact__social a:focus-visible {
	border-color: var(--c1);
	color: var(--c1);
}

.f-hours,
.f-content,
.f-map {
	margin-top: 18px;
}

.f-hours__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.f-hours__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-size: .93rem;
}

.f-hours__d {
	font-weight: 600;
}

.f-hours__t {
	color: var(--muted);
	text-align: right;
}

.f-hours__list .is-today,
.f-hours__list .is-today .f-hours__t {
	color: var(--c1);
	font-weight: 700;
}

.f-content__body {
	color: var(--text);
	line-height: 1.75;
	overflow-wrap: break-word;
}

.f-content__body > :first-child {
	margin-top: 0;
}

.f-content__body > :last-child {
	margin-bottom: 0;
}

.f-content__body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.f-map__frame {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
}

.f-map__frame iframe {
	display: block;
	width: 100%;
	height: 340px;
	border: 0;
}

.f-map__link {
	margin: 12px 0 0;
}

.f-map__link .m-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---------- İl listesi bileşeni ---------- */
.f-ilist {
	margin: 0;
	list-style: none;
}

.f-ilist li + li {
	border-top: 1px solid var(--line);
}

.f-ilist a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.f-ilist li:first-child a {
	padding-top: 0;
}

.f-ilist li:last-child a {
	padding-bottom: 0;
}

.f-ilist .m-icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.f-ilist__n {
	flex: 1;
	min-width: 0;
}

.f-ilist__c {
	min-width: 30px;
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	color: var(--muted);
	font-size: .76rem;
	font-weight: 600;
	text-align: center;
}

.f-ilist a:hover,
.f-ilist a:focus-visible,
.f-ilist a[aria-current="true"],
.f-ilist a:hover .m-icon,
.f-ilist a[aria-current="true"] .m-icon {
	color: var(--c1);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
	.f-search {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.f-search__f--q,
	.f-search__f--btn {
		grid-column: 1 / -1;
	}

	.f-search--compact {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.f-section {
		margin-top: 22px;
	}

	.f-search,
	.f-hero,
	.f-hours__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.f-search__f--q,
	.f-search__f--btn {
		grid-column: auto;
	}

	.f-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.f-chips {
		flex-wrap: nowrap;
		margin-right: -4px;
		padding-bottom: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.f-chip {
		flex: none;
	}

	.f-map__frame iframe {
		height: 260px;
	}
}

@media (max-width: 420px) {
	.f-cats {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.f-card,
	.f-cat,
	.f-chip,
	.f-contact__social a {
		transition: none;
	}

	.f-card:hover,
	.f-cat:hover {
		transform: none;
	}
}
