/**
 * Italian Heritage — Anasayfa (scroll-craft).
 * 6 rollü nötr renk sistemi + tek vurgu; en fazla 2 font ailesi; ölçü 45-75ch.
 * İtalyan bayrağı renkleri yalnızca ince vurgu detayı.
 */

:root {
	/* 6 rol */
	--iht-bg:       #f6f3ee;   /* kâğıt zemin */
	--iht-surface:  #ffffff;   /* kart / yüzey */
	--iht-ink:      #1c1b19;   /* ana metin */
	--iht-muted:    #6b665e;   /* ikincil metin */
	--iht-line:     #ddd6ca;   /* ince çizgi */
	--iht-deep:     #12110f;   /* koyu blok zemini (peak) */
	/* tek vurgu */
	--iht-accent:   #7a1f1c;   /* söndürülmüş venedik kırmızısı */
	/* bayrak (yalnız ince şerit) */
	--iht-flag-green: #4b7a52;
	--iht-flag-white: #f4f1ea;
	--iht-flag-red:   #9c3230;

	--iht-serif: Georgia, "Times New Roman", "Noto Serif", serif;
	--iht-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--iht-measure: 68ch;
	--iht-pad:     clamp(1.25rem, 5vw, 6rem);
}

.iht-body {
	margin: 0;
	background: var(--iht-bg);
	color: var(--iht-ink);
	font-family: var(--iht-sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.iht-body img { max-width: 100%; height: auto; display: block; }

/* ---------------- Header / nav ---------------- */
.iht-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(246, 243, 238, var(--iht-header-alpha, .88));
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--iht-line);
	transition: transform .4s ease, background .4s ease;
}
/* Koyu / siyah header */
.iht-header--dark {
	background: rgba(18, 17, 15, var(--iht-header-alpha, .9));
	border-bottom-color: rgba(255, 255, 255, .12);
}
.iht-header--dark .iht-header__brand-mark,
.iht-header--dark .iht-nav a { color: #fff; }
.iht-header--dark .iht-header__brand-sub,
.iht-header--dark .iht-nav__lang { color: rgba(255, 255, 255, .72); }
.iht-header--dark .iht-nav a:hover,
.iht-header--dark .iht-nav__lang.is-active { color: #fff; }
/* Şeffaf header (hero üzerine biner) */
.iht-header--transparent {
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
}
.iht-header--transparent .iht-header__brand-mark,
.iht-header--transparent .iht-nav a { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.iht-header--transparent .iht-header__brand-sub,
.iht-header--transparent .iht-nav__lang { color: rgba(255, 255, 255, .8); }
.iht-header--transparent .iht-nav a:hover,
.iht-header--transparent .iht-nav__lang.is-active { color: #fff; }
/* Kaydırınca: çerçeveyi (arka plan + çizgi + buzlu cam) minimuma indir. */
.iht-header--scrolled { border-bottom-color: transparent; backdrop-filter: none; }
.iht-header.iht-header--scrolled { background: rgba(246, 243, 238, var(--iht-header-alpha-scroll, 0)); }
.iht-header--dark.iht-header--scrolled { background: rgba(18, 17, 15, var(--iht-header-alpha-scroll, 0)); }
.iht-header--transparent.iht-header--scrolled { background: transparent; }
/* Kaydırınca menü yazıları beyaz + gölge (her zemin üzerinde okunur). */
.iht-header--scrolled .iht-header__brand-mark,
.iht-header--scrolled .iht-header__brand-sub,
.iht-header--scrolled .iht-nav a,
.iht-header--scrolled .iht-nav__lang {
	color: #fff !important;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .4);
}
.iht-header--scrolled .iht-nav a:hover,
.iht-header--scrolled .iht-nav__lang.is-active { color: #fff !important; }
.iht-header--scrolled .iht-nav__langs { border-left-color: rgba(255, 255, 255, .35); }

.iht-header__logo { object-fit: contain; }
.iht-header__flag {
	height: 3px;
	background: linear-gradient(to right,
		var(--iht-flag-green) 0 33.3%,
		var(--iht-flag-white) 33.3% 66.6%,
		var(--iht-flag-red)   66.6% 100%);
	opacity: .8;
}
.iht-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: .9rem var(--iht-pad);
}
.iht-header__brand { text-decoration: none; color: var(--iht-ink); line-height: 1.15; }
.iht-header__brand-mark { display: block; font-family: var(--iht-serif); font-size: 1.15rem; letter-spacing: .01em; }
.iht-header__brand-sub  { display: block; font-size: .72rem; color: var(--iht-muted); letter-spacing: .04em; }
.iht-nav { display: flex; align-items: center; gap: 1.6rem; }
.iht-nav a { text-decoration: none; color: var(--iht-ink); font-size: .92rem; letter-spacing: .01em; }
.iht-nav a:hover { color: var(--iht-accent); }
.iht-nav__langs { display: inline-flex; gap: .5rem; padding-left: 1rem; border-left: 1px solid var(--iht-line); }
.iht-nav__lang { font-size: .78rem; color: var(--iht-muted); text-decoration: none; }
.iht-nav__lang.is-active { color: var(--iht-accent); font-weight: 700; }
/* Header partner logoları — menü yanında, yan yana yuvarlak */
.iht-nav__partners { display: inline-flex; align-items: center; gap: 8px; padding-left: 1rem; margin-left: .4rem; border-left: 1px solid var(--iht-line); }
.iht-nav__partner {
	width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
	border: 1px solid var(--iht-line); background: #fff; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	transition: transform .2s ease;
}
a.iht-nav__partner:hover { transform: translateY(-2px) scale(1.08); }
.iht-nav__partner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iht-header--dark .iht-nav__partners,
.iht-header--transparent .iht-nav__partners { border-left-color: rgba(255,255,255,.25); }
.iht-header--hidden { transform: translateY(-100%); }

/* ---------------- Giriş (intro) videosu ---------------- */
body.iht-intro-open { overflow: hidden; }
.iht-intro {
	position: fixed; inset: 0; z-index: 9999;
	background: var(--iht-intro-bg, #12110f);
	display: flex; align-items: center; justify-content: center;
	opacity: 1; transition: opacity .85s ease; cursor: pointer;
}
.iht-intro.is-done { opacity: 0; pointer-events: none; }
.iht-intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iht-intro__logo {
	position: relative; z-index: 2;
	max-width: min(320px, 60vw); height: auto;
	filter: drop-shadow(0 8px 34px rgba(0,0,0,.55));
	animation: iht-intro-logo 1.2s ease both;
}
@keyframes iht-intro-logo {
	from { opacity: 0; transform: scale(.92); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.iht-intro { transition: none; }
	.iht-intro__logo { animation: none; }
}

/* ---------------- Hero ---------------- */
.iht-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.iht-hero__media, .iht-hero__video, .iht-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.iht-hero__video, .iht-hero__img { object-fit: cover; }
.iht-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,.55) 100%);
}

/* Hero sanatsal gölge (vignette): kenarları yumuşakça karartır. */
.iht-hero__vignette {
	position: absolute; inset: 0; pointer-events: none; z-index: 1;
	background: radial-gradient(ellipse at center, transparent var(--iht-vig-soft, 45%), var(--iht-vig, rgba(0,0,0,.5)) 100%);
}

/* Hero bayrak geçişi: İtalyan → Türk renkleri, video gibi loop.
   Renkler @property ile kayıtlı olduğundan keyframe'lerde interpolate edilir. */
@property --iht-fc1 { syntax: "<color>"; inherits: false; initial-value: rgba(0,140,69,0.55); }
@property --iht-fc2 { syntax: "<color>"; inherits: false; initial-value: rgba(244,245,240,0.45); }
@property --iht-fc3 { syntax: "<color>"; inherits: false; initial-value: rgba(205,33,42,0.55); }

.iht-hero__scrim--flag {
	animation: iht-flag-cycle var(--iht-flag-dur, 10s) ease-in-out infinite;
}
/* Klasik çapraz: tek yönlü üç renkli bant (açı adminden). */
.iht-hero__scrim--flag.is-linear {
	background:
		linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.06) 100%),
		linear-gradient(var(--iht-angle, 115deg), var(--iht-fc1) 0%, var(--iht-fc1) 28%, var(--iht-fc2) 50%, var(--iht-fc3) 72%, var(--iht-fc3) 100%);
}
/* Sanatsal mesh: konumları adminden/rastgele gelen renk lekeleri (radial). */
.iht-hero__scrim--flag.is-mesh {
	background:
		linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.06) 100%),
		radial-gradient(var(--iht-soft, 62%) var(--iht-soft, 62%) at var(--p1x, 20%) var(--p1y, 30%), var(--iht-fc1) 0%, transparent 62%),
		radial-gradient(var(--iht-soft, 62%) var(--iht-soft, 62%) at var(--p2x, 78%) var(--p2y, 35%), var(--iht-fc3) 0%, transparent 62%),
		radial-gradient(calc(var(--iht-soft, 62%) - 8%) calc(var(--iht-soft, 62%) - 8%) at var(--p3x, 50%) var(--p3y, 75%), var(--iht-fc2) 0%, transparent 58%),
		linear-gradient(120deg, var(--iht-fc1) 0%, transparent 55%);
}
@keyframes iht-flag-cycle {
	0%, 18%  { --iht-fc1: var(--iht-it-1); --iht-fc2: var(--iht-it-2); --iht-fc3: var(--iht-it-3); }
	50%, 68% { --iht-fc1: var(--iht-tr-1); --iht-fc2: var(--iht-tr-2); --iht-fc3: var(--iht-tr-3); }
	100%     { --iht-fc1: var(--iht-it-1); --iht-fc2: var(--iht-it-2); --iht-fc3: var(--iht-it-3); }
}
@media (prefers-reduced-motion: reduce) {
	.iht-hero__scrim--flag {
		animation: none;
		--iht-fc1: var(--iht-it-1); --iht-fc2: var(--iht-it-2); --iht-fc3: var(--iht-it-3);
	}
}
.iht-hero__content {
	position: absolute; left: 0; right: 0; bottom: clamp(2rem, 8vh, 6rem);
	padding: 0 var(--iht-pad);
	color: #fff;
}
.iht-hero__title {
	font-family: var(--iht-serif);
	font-weight: 400;
	font-size: clamp(2.2rem, 6vw, 4.6rem);
	line-height: 1.05;
	max-width: 20ch;
	margin: 0;
	text-wrap: balance;
}
.iht-hero__location {
	margin: 1rem 0 0;
	font-size: .95rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .9;
}

/* ---------------- Güven bloğu ---------------- */
.iht-trust { background: var(--iht-surface); border-bottom: 1px solid var(--iht-line); }
.iht-trust__inner {
	max-width: 900px; margin: 0 auto; padding: 2.4rem var(--iht-pad);
	display: flex; flex-direction: column; align-items: center; gap: clamp(1.2rem, 3vw, 2rem);
}
/* DOM sırası: crest1, crest2, line. Sıralama order ile kurulur. */
.iht-trust__inner--text-top .iht-trust__line { order: -1; }
.iht-trust__inner--text-middle .iht-trust__crest--1 { order: 0; }
.iht-trust__inner--text-middle .iht-trust__line     { order: 1; }
.iht-trust__inner--text-middle .iht-trust__crest--2 { order: 2; }
/* Armalar yan yana, yazı ayrı satırda (altta / üstte) */
.iht-trust__inner--row-top,
.iht-trust__inner--row-bottom {
	flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 4rem);
}
.iht-trust__inner--row-top .iht-trust__line,
.iht-trust__inner--row-bottom .iht-trust__line { flex-basis: 100%; }
.iht-trust__inner--row-top .iht-trust__line { order: -1; }
.iht-trust__inner img.iht-trust__crest {
	width: auto; max-width: min(92vw, 640px); object-fit: contain; opacity: .97;
	image-rendering: -webkit-optimize-contrast;
	transition: transform .3s ease;
}
.iht-trust__inner img.iht-trust__crest:hover { transform: translateY(-2px) scale(1.03); }
.iht-trust__inner img.iht-trust__crest--1 { height: var(--iht-crest-h1, 150px); }
.iht-trust__inner img.iht-trust__crest--2 { height: var(--iht-crest-h2, 150px); }
.iht-trust__line { margin: 0; text-align: center; font-size: var(--iht-trust-fs, 17px); letter-spacing: .12em; text-transform: uppercase; color: var(--iht-ink); font-weight: 300; }

/* ---------------- Tarihsel bağlam ---------------- */
.iht-context { padding: clamp(3.5rem, 10vh, 8rem) 0; }
.iht-context__inner {
	max-width: 1100px; margin: 0 auto; padding: 0 var(--iht-pad);
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.iht-context__img { border-radius: 2px; }
.iht-context__title { font-family: var(--iht-serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.iht-context__body { max-width: var(--iht-measure); color: var(--iht-ink); }
.iht-context__body p { margin: 0 0 1rem; }

/* ---------------- Engineered peak ---------------- */
.iht-peak {
	position: relative;
	min-height: 100svh;
	display: flex; align-items: center;
	background: var(--iht-deep);
	color: #fff;
	overflow: hidden;
}
.iht-peak__layer {
	position: absolute; inset: 0;
	background-image: var(--iht-peak-bg, none);
	background-size: cover; background-position: center;
	transform: scale(1.12);
	will-change: transform, opacity;
	opacity: .55;
}
.iht-peak::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(120% 90% at 30% 40%, rgba(0,0,0,.25), rgba(0,0,0,.78));
}
.iht-peak__content {
	position: relative; z-index: 2;
	max-width: 760px; margin: 0 auto; padding: 0 var(--iht-pad); text-align: center;
	opacity: 0; transform: translateY(28px);
	transition: opacity .9s ease, transform .9s ease;
}
.iht-peak.is-live .iht-peak__content { opacity: 1; transform: none; }
.iht-peak__eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, #fff 72%, var(--iht-accent)); margin: 0 0 1rem; }
.iht-peak__title { font-family: var(--iht-serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; margin: 0; text-wrap: balance; }
.iht-peak__lead { max-width: 52ch; margin: 1.4rem auto 0; font-size: 1.05rem; opacity: .9; }
.iht-peak__link {
	display: inline-block; margin-top: 2rem; padding: .8rem 1.8rem;
	color: #fff; text-decoration: none; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
	border: 1px solid rgba(255,255,255,.55);
}
.iht-peak__link:hover { background: #fff; color: var(--iht-deep); }

/* ---------------- Enstitü ---------------- */
.iht-institute { padding: clamp(2.4rem, 6vh, 4rem) 0; background: var(--iht-deep); color: #ece7de; }
.iht-institute__inner { max-width: 58ch; margin: 0 auto; padding: 0 var(--iht-pad); font-family: var(--iht-serif); font-size: clamp(1.15rem, 2.3vw, 1.6rem); line-height: 1.5; text-align: center; color: #ece7de; }

/* ---------------- Turlar grid ---------------- */
.iht-tours { padding: clamp(3.5rem, 10vh, 8rem) 0; }
.iht-tours__inner, .iht-archive__inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--iht-pad); }
.iht-tours__title, .iht-archive__title { font-family: var(--iht-serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 2.4rem; }

.iht-tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.iht-tour-card { background: var(--iht-surface); border: 1px solid var(--iht-line); display: flex; flex-direction: column; }
.iht-tour-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.iht-tour-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.iht-tour-card:hover .iht-tour-card__img { transform: scale(1.04); }
.iht-tour-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.iht-tour-card__title { font-family: var(--iht-serif); font-weight: 400; font-size: 1.35rem; margin: 0; }
.iht-tour-card__title a { color: var(--iht-ink); text-decoration: none; }
.iht-tour-card__meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--iht-muted); margin: 0; }
.iht-tour-card__price { color: var(--iht-accent); font-weight: 600; }
.iht-tour-card__cta { margin-top: auto; align-self: flex-start; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--iht-ink); text-decoration: none; border-bottom: 1px solid var(--iht-accent); padding-bottom: 2px; }
.iht-tour-grid__empty { color: var(--iht-muted); }

/* ---------------- Arşiv ---------------- */
.iht-archive__head { padding: clamp(3rem, 8vh, 6rem) 0 1rem; }
.iht-archive__intro { color: var(--iht-muted); max-width: var(--iht-measure); }
.iht-archive .iht-tour-grid { margin-top: 2rem; }

/* ---------------- Reveal (scroll timeline) ---------------- */
[data-iht-chapter] .iht-context__inner,
[data-iht-chapter].iht-institute .iht-institute__inner,
[data-iht-chapter].iht-tours .iht-tour-card {
	opacity: 0; transform: translateY(24px);
	transition: opacity .8s ease, transform .8s ease;
}
.iht-reveal .iht-context__inner,
.iht-reveal .iht-institute__inner,
.iht-reveal .iht-tour-card { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
	[data-iht-chapter] * , .iht-peak__content, .iht-peak__layer { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------------- Zaman Makinesi (tarihsel fotoğraf haritası) ---------------- */
.iht-tm { position: relative; background: var(--iht-deep); color: #fff; }
.iht-tm__layout {
	max-width: 1280px; margin: 0 auto;
	padding: clamp(3rem, 8vh, 5.5rem) var(--iht-pad);
	display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr;
	gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.iht-tm__panel { align-self: center; }
.iht-tm__title { font-family: var(--iht-serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; letter-spacing: -.01em; line-height: 1.05; }
.iht-tm__intro { max-width: 42ch; color: #b7b1a6; font-size: 1.02rem; margin: 1rem 0 0; line-height: 1.6; }

/* Premium dönem kontrolü */
.iht-tm__machine { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.iht-tm__readout {
	font-family: var(--iht-serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: #fff; letter-spacing: .04em; margin-bottom: 1rem; font-variant-numeric: tabular-nums;
}
.iht-tm__range { position: relative; height: 34px; }
.iht-tm__rail { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: rgba(255,255,255,.18); border-radius: 2px; }
.iht-tm__fill { position: absolute; top: 0; height: 100%; background: var(--iht-accent); border-radius: 2px; }
.iht-tm__range input[type="range"] {
	position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0;
	-webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.iht-tm__range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto;
	width: 20px; height: 20px; border-radius: 50%; background: #fff;
	border: 3px solid var(--iht-accent); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.iht-tm__range input[type="range"]::-moz-range-thumb {
	pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff;
	border: 3px solid var(--iht-accent); cursor: pointer;
}
.iht-tm__scale { display: flex; justify-content: space-between; align-items: baseline; margin-top: .7rem; font-size: .8rem; color: #8a857b; }
.iht-tm__count { color: #b7b1a6; letter-spacing: .04em; }

.iht-tm__stage { position: relative; }
.iht-tm__map {
	position: relative;
	width: 100%; height: min(56vh, 520px); background: #e9e4da;
	border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
/* Eski harita (sepya/antika) — yalnızca harita zeminine uygulanır, pinler etkilenmez */
.iht-tm__map.is-vintage canvas {
	filter: sepia(.62) saturate(.7) contrast(1.06) brightness(1.04);
}
.iht-tm__map.is-vintage::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
	box-shadow: inset 0 0 90px rgba(70, 45, 15, .5);
	background: radial-gradient(120% 110% at 50% 45%, transparent 60%, rgba(90, 60, 25, .22));
}
.iht-tm__map .maplibregl-marker { z-index: 2; }

@media (max-width: 860px) {
	.iht-tm__layout { grid-template-columns: 1fr; }
	.iht-tm__map { height: 58vh; }
}

/* Foto-pinler */
.iht-tm-pin {
	width: 46px; height: 46px; border-radius: 50%;
	background-size: cover; background-position: center; background-color: #fff;
	border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4);
	cursor: pointer; position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}
.iht-tm-pin:hover { transform: scale(1.12); box-shadow: 0 8px 22px rgba(0,0,0,.55); z-index: 3; }
.iht-tm-pin--dot { background-color: var(--iht-accent); }
.iht-tm-pin__year {
	position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
	background: var(--iht-accent); color: #fff; font-size: 10px; font-weight: 600;
	padding: 1px 6px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em;
}

/* Popup kartı */
.iht-tm-popup .maplibregl-popup-content,
.iht-tm-popup .mapboxgl-popup-content { padding: 0; border-radius: 4px; overflow: hidden; }
.iht-tm-card { width: 300px; max-width: 78vw; background: #fff; color: var(--iht-ink); }
.iht-tm-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: #e9e4da; }
.iht-tm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iht-tm-card__body { padding: .9rem 1rem 1.1rem; }
.iht-tm-card__year { font-size: .72rem; letter-spacing: .16em; color: var(--iht-accent); font-weight: 600; }
.iht-tm-card__title { font-family: var(--iht-serif); font-weight: 400; font-size: 1.25rem; margin: .2rem 0 .4rem; }
.iht-tm-card__note { font-size: .9rem; line-height: 1.5; color: var(--iht-muted); margin: 0; }

/* Zaman Makinesi — estetik fotoğraf lightbox (yıl ile) */
.iht-tmlb {
	position: fixed; inset: 0; z-index: 9999; display: none;
	align-items: center; justify-content: center;
	background: rgba(12, 10, 8, .93); backdrop-filter: blur(6px);
}
.iht-tmlb.is-open { display: flex; }
.iht-tmlb__fig { margin: 0; position: relative; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; }
.iht-tmlb__img {
	max-width: 90vw; max-height: 72vh; object-fit: contain; display: block;
	border-radius: 3px; box-shadow: 0 24px 70px rgba(0,0,0,.6);
	filter: sepia(.12) contrast(1.02);
}
.iht-tmlb__cap {
	margin-top: 1rem; text-align: center; color: #f2ede4; max-width: 62ch; align-self: center;
}
.iht-tmlb__year {
	display: inline-block; font-family: var(--iht-serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
	color: #fff; letter-spacing: .06em; line-height: 1;
	border-bottom: 2px solid var(--iht-flag-red); padding-bottom: .25rem; margin-bottom: .6rem;
}
.iht-tmlb__title { font-family: var(--iht-serif); font-weight: 400; font-size: 1.4rem; margin: .2rem 0 .4rem; color: #fff; }
.iht-tmlb__note { font-size: .95rem; line-height: 1.55; color: #c9c3b8; margin: 0; }
.iht-tmlb__close { position: absolute; top: 20px; right: 24px; }
.iht-tmlb__close, .iht-tmlb__nav {
	background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
	width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
	display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.iht-tmlb__close:hover, .iht-tmlb__nav:hover { background: rgba(255,255,255,.28); }
.iht-tmlb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.iht-tmlb__prev { left: 24px; }
.iht-tmlb__next { right: 24px; }
@media (max-width: 640px) {
	.iht-tmlb__nav { width: 40px; height: 40px; }
	.iht-tmlb__prev { left: 8px; } .iht-tmlb__next { right: 8px; }
	.iht-tmlb__img { max-height: 62vh; }
}

@media (max-width: 720px) {
	.iht-tm__map { height: 62vh; }
	.iht-tm__head { padding-bottom: 1rem; }
}

/* ---------------- Misyon (La Missione) ---------------- */
.iht-mission { background: var(--iht-bg); padding: clamp(4rem, 12vh, 9rem) var(--iht-pad); }
.iht-mission__article { max-width: 62ch; margin: 0 auto; }
.iht-mission__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.iht-mission__eyebrow {
	font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
	color: var(--iht-accent); margin: 0 0 1.6rem;
}
.iht-mission__title {
	font-family: var(--iht-serif); font-weight: 400;
	font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; margin: 0;
	text-wrap: balance; letter-spacing: -.01em;
}
.iht-mission__lead {
	font-family: var(--iht-serif); font-style: italic;
	font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--iht-muted);
	max-width: 46ch; margin: 1.6rem auto 0; line-height: 1.5;
}
.iht-mission__figure { margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.iht-mission__img { width: 100%; border-radius: 2px; }
.iht-mission__body { font-size: 1.12rem; line-height: 1.85; color: var(--iht-ink); }
.iht-mission__body p { margin: 0 0 1.5rem; }
/* Drop-cap: ilk paragrafın ilk harfi */
.iht-mission__body > p:first-of-type::first-letter {
	font-family: var(--iht-serif);
	float: left; font-size: 4.4rem; line-height: .82;
	padding: .1em .12em 0 0; color: var(--iht-accent);
}
.iht-mission__body > p:first-of-type::first-line { font-variant: small-caps; letter-spacing: .02em; }
.iht-mission__sign {
	margin: clamp(2.5rem, 6vw, 4rem) 0 0; text-align: right;
	font-family: var(--iht-serif); font-style: italic; color: var(--iht-muted);
	border-top: 1px solid var(--iht-line); padding-top: 1.4rem;
}

/* ---------------- Footer (modern) ---------------- */
.iht-footer {
	position: relative;
	background: var(--iht-deep);
	color: #ece7de;
}

/* Bloklar arası ince İtalyan bayrağı ayracı (yalnızca bölüm render olduğunda görünür). */
.iht-flag-top { position: relative; }
.iht-flag-top::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 5;
	background: linear-gradient(to right,
		var(--iht-flag-green) 0 33.3%,
		var(--iht-flag-white) 33.3% 66.6%,
		var(--iht-flag-red)   66.6% 100%);
	opacity: .9;
}
.iht-footer__flag {
	height: 3px;
	background: linear-gradient(to right,
		var(--iht-flag-green) 0 33.3%,
		var(--iht-flag-white) 33.3% 66.6%,
		var(--iht-flag-red)   66.6% 100%);
}
.iht-footer__grid {
	max-width: 1180px; margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--iht-pad) clamp(2rem, 4vw, 3rem);
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr .8fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}
.iht-footer__logo { object-fit: contain; max-width: 240px; max-height: 72px; width: auto; }
.iht-footer__brand { font-family: var(--iht-serif); font-size: 1.5rem; margin: 0 0 .8rem; color: #fff; }
.iht-footer__tagline { max-width: 34ch; color: #a8a297; font-size: .9rem; margin: 1rem 0 0; line-height: 1.6; }
.iht-footer__heading {
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
	color: #8a857b; margin: 0 0 1.1rem; font-weight: 600;
}
.iht-footer__col a {
	display: block; color: #d8d2c8; text-decoration: none;
	font-size: .95rem; padding: .32rem 0; transition: color .2s ease, padding-left .2s ease;
}
.iht-footer__col a:hover { color: #fff; padding-left: 5px; }
.iht-footer__address { font-style: normal; color: #a8a297; font-size: .92rem; line-height: 1.7; }
.iht-footer__social a::before { content: "→ "; color: var(--iht-flag-red); }

/* Partner logoları — küçük, temiz yuvarlak rozet (logo kırpılmadan içine oturur) */
.iht-footer .iht-footer__partners {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center;
	/* Satır başına en çok 3 sabit slot (3×64 + 2×16 = 224), payla 240; taşan alta ortalanır. */
	max-width: 240px; margin-top: .5rem;
}
/* Her partner sabit 64×64 şeffaf slot: genişlikler deterministik → hover düzeni bozmaz. */
.iht-footer .iht-footer__partner {
	flex: 0 0 auto; width: 64px; height: 64px;
	display: inline-flex; align-items: center; justify-content: center;
	transition: transform .2s ease;
}
.iht-footer .iht-footer__partner:hover { transform: scale(1.1); }
/* Özgüllük: .iht-body img { height:auto } kuralını geçmek için .iht-footer öneki. */
.iht-footer .iht-footer__partner-img {
	max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block;
	opacity: .9; transition: opacity .2s ease;
}
.iht-footer .iht-footer__partner:hover .iht-footer__partner-img { opacity: 1; }

.iht-footer__bar {
	max-width: 1180px; margin: 0 auto;
	padding: 1.4rem var(--iht-pad) 2.2rem;
	border-top: 1px solid rgba(255,255,255,.1);
	display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: baseline;
	font-size: .8rem; color: #8a857b;
}
.iht-footer__legal { margin: 0; }
.iht-footer__credit { margin: 0; color: #a8a297; }
.iht-footer__copy { margin: 0 0 0 auto; color: #726d64; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.iht-footer__grid { grid-template-columns: 1fr 1fr; }
	.iht-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.iht-context__inner { grid-template-columns: 1fr; }
	.iht-nav { gap: 1rem; font-size: .85rem; flex-wrap: wrap; }
	.iht-header--transparent .iht-header__brand-sub,
	.iht-header:not(.iht-header--transparent) .iht-header__brand-sub { display: none; }
	.iht-footer__bar { flex-direction: column; }
	.iht-footer__copy { margin-left: 0; }
}
@media (max-width: 560px) {
	.iht-footer__grid { grid-template-columns: 1fr; }
}

/* ================= Hukuki sayfalar (Privacy / Cookie / GDPR) ================= */
.iht-legal-main { background: var(--iht-bg, #f6f3ee); padding: clamp(2rem, 6vw, 5rem) 1.2rem clamp(3rem, 7vw, 6rem); }
.iht-legal {
	max-width: 820px; margin: 0 auto; background: #fff;
	border: 1px solid var(--iht-line, #e6e0d5); border-radius: 8px;
	box-shadow: 0 20px 60px rgba(28,27,25,.06);
	padding: clamp(1.6rem, 4vw, 3.2rem);
	color: var(--iht-ink, #1c1b19); line-height: 1.75;
}
.iht-legal__head { border-bottom: 1px solid var(--iht-line, #e6e0d5); padding-bottom: 1.2rem; margin-bottom: 1.8rem; }
.iht-legal__flag {
	display: block; width: 54px; height: 5px; border-radius: 3px; margin-bottom: 1rem;
	background: linear-gradient(90deg, #008C45 0 33.33%, #F4F5F0 33.33% 66.66%, #CD212A 66.66% 100%);
}
.iht-legal__title { font-family: var(--iht-serif, Georgia, serif); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0; color: var(--iht-ink, #1c1b19); }
.iht-legal__updated { color: var(--iht-muted, #8a857b); font-size: .82rem; letter-spacing: .04em; margin: .6rem 0 0; }
.iht-legal__body h2 {
	font-family: var(--iht-serif, Georgia, serif); font-size: 1.22rem; color: var(--iht-accent, #7a1f1c);
	margin: 2rem 0 .6rem; padding-top: .2rem;
}
.iht-legal__body p { margin: 0 0 1rem; font-size: .98rem; }
.iht-legal__body ul { margin: .3rem 0 1.3rem; padding-left: 1.3rem; }
.iht-legal__body li { margin: 0 0 .5rem; }
.iht-legal__body a { color: var(--iht-accent, #7a1f1c); }
.iht-legal__body strong { color: var(--iht-ink, #1c1b19); }
