/**
 * Tur Detay — split-view, StoryTerra tarzı scrollytelling + sticky rezervasyon.
 * landing.css'teki değişkenleri devralır.
 */

.iht-tour { background: var(--iht-bg, #f6f3ee); color: var(--iht-ink, #1c1b19); }

.iht-tour__intro { padding: clamp(2.5rem, 7vh, 5rem) var(--iht-pad, 2rem) 1.5rem; max-width: 1300px; margin: 0 auto; }
.iht-tour__intro-inner { max-width: 60ch; }
.iht-tour__title { font-family: var(--iht-serif, Georgia, serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .8rem; line-height: 1.05; }
.iht-tour__lead { color: var(--iht-muted, #6b665e); font-size: 1.1rem; margin: 0; }

/* Tur detay sayfası açık zeminli: kaydırınca menü yazıları koyu kalsın (beyaz okunmuyor). */
.single-italian_tour .iht-header--scrolled .iht-header__brand-mark,
.single-italian_tour .iht-header--scrolled .iht-header__brand-sub,
.single-italian_tour .iht-header--scrolled .iht-nav a,
.single-italian_tour .iht-header--scrolled .iht-nav__lang {
	color: var(--iht-ink, #1c1b19) !important;
	text-shadow: 0 1px 10px rgba(246, 243, 238, .9), 0 0 3px rgba(246, 243, 238, .8) !important;
}
.single-italian_tour .iht-header--scrolled .iht-nav a:hover,
.single-italian_tour .iht-header--scrolled .iht-nav__lang.is-active { color: var(--iht-accent, #7a1f1c) !important; }

.iht-tour__split {
	max-width: 1400px; margin: 0 auto; padding: 0 var(--iht-pad, 2rem) 4rem;
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

/* ---------- Story map (sol) ---------- */
.iht-storymap { position: relative; }
.iht-storymap__map {
	position: sticky; top: 84px;
	height: calc(100svh - 120px);
	min-height: 420px;
	border-radius: 3px;
	overflow: hidden;
	background: #e9e4da;
}
.iht-storymap__audio {
	position: sticky; top: 100px; z-index: 5;
	float: right; margin: -100vh 12px 0 0; /* haritanın üstüne oturur */
	pointer-events: none;
}
.iht-audio-toggle {
	pointer-events: auto;
	display: inline-flex; align-items: center; gap: .5rem;
	background: rgba(18,17,15,.82); color: #fff; border: 0;
	padding: .55rem .9rem; border-radius: 999px; cursor: pointer; font-size: .82rem;
}
.iht-audio-toggle[hidden] { display: none; }

.iht-storymap__panels { position: relative; margin-top: -60vh; }
.iht-panel {
	min-height: 82vh;
	display: flex; align-items: center;
	margin: 0 0 8vh;
}
.iht-panel__card {
	background: var(--iht-surface, #fff);
	border: 1px solid var(--iht-line, #ddd6ca);
	box-shadow: 0 18px 50px rgba(20,17,12,.12);
	max-width: 30rem; width: 100%;
	padding: 1.6rem 1.7rem 1.8rem;
	opacity: .35; transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}
.iht-panel.is-active .iht-panel__card { opacity: 1; transform: none; }
.iht-panel__index { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--iht-accent, #7a1f1c); margin: 0 0 .5rem; }
.iht-panel__title { font-family: var(--iht-serif, Georgia, serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .8rem; }
.iht-panel__img { width: 100%; border-radius: 2px; margin: 0 0 1rem; }
.iht-panel__body { color: var(--iht-ink, #1c1b19); font-size: .98rem; }
.iht-panel__body .iht-wikilink,
.iht-infotabs__panel .iht-wikilink {
	color: var(--iht-accent, #7a1f1c); text-decoration: none;
	border-bottom: 1px dotted currentColor; transition: opacity .2s ease;
}
.iht-panel__body .iht-wikilink:hover,
.iht-infotabs__panel .iht-wikilink:hover { opacity: .7; border-bottom-style: solid; }
.iht-panel__body p { margin: 0 0 .8rem; }
/* Kısaltma: varsayılan 4 satır; açılınca tümü */
.iht-panel__body--clamp {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.iht-panel__body--clamp.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.iht-panel__more {
	background: none; border: 0; padding: .25rem 0; margin-top: .1rem; cursor: pointer;
	color: var(--iht-accent, #7a1f1c); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.iht-panel__more:hover { text-decoration: underline; }

/* Kart-içi ses player */
.iht-panel__audio { width: 100%; height: 34px; margin-top: .6rem; }

/* Hover'da açılan sanatsal galeri */
.iht-panel__gallery { position: relative; margin-top: .8rem; }
.iht-panel__gallery-hint {
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--iht-accent, #7a1f1c);
	cursor: default;
}
.iht-panel__gallery-hint::before { content: "▣"; font-size: .9rem; }
.iht-gal__thumbs {
	display: flex; gap: 8px; margin-top: .5rem; flex-wrap: wrap;
	max-height: 0; overflow: hidden; opacity: 0;
	transition: max-height .45s ease, opacity .35s ease, margin-top .35s ease;
}
.iht-panel__card:hover .iht-gal__thumbs,
.iht-panel__gallery:focus-within .iht-gal__thumbs { max-height: 260px; opacity: 1; }
.iht-gal__thumb {
	width: 62px; height: 62px; border-radius: 4px; border: 2px solid #fff; cursor: pointer;
	background-size: cover; background-position: center; box-shadow: 0 3px 10px rgba(0,0,0,.25);
	transition: transform .25s ease, box-shadow .25s ease;
}
.iht-gal__thumb:nth-child(2n) { transform: rotate(-2.5deg); }
.iht-gal__thumb:nth-child(3n) { transform: rotate(2deg); }
.iht-gal__thumb:hover { transform: scale(1.12) rotate(0); box-shadow: 0 8px 20px rgba(0,0,0,.4); z-index: 2; }

/* Lightbox modal */
.iht-lightbox {
	position: fixed; inset: 0; z-index: 9999; display: none;
	align-items: center; justify-content: center;
	background: rgba(12, 10, 8, .92); backdrop-filter: blur(4px);
}
.iht-lightbox.is-open { display: flex; }
.iht-lightbox__img { max-width: 88vw; max-height: 86vh; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.iht-lightbox__close { position: absolute; top: 20px; right: 24px; }
.iht-lightbox__close, .iht-lightbox__nav {
	background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3);
	width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1;
	display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.iht-lightbox__close:hover, .iht-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.iht-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.iht-lightbox__prev { left: 20px; }
.iht-lightbox__next { right: 20px; }
@media (max-width: 640px) { .iht-lightbox__nav { width: 40px; height: 40px; } .iht-lightbox__prev { left: 8px; } .iht-lightbox__next { right: 8px; } }
.iht-panel--loading { min-height: 40vh; color: var(--iht-muted, #6b665e); }

/* MapTiler marker */
.iht-marker { width: 16px; height: 16px; border-radius: 50%; background: var(--iht-accent, #7a1f1c); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(122,31,28,.35); cursor: pointer; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
/* Bulunulan durak: yeşil + büyütme + halka */
.iht-marker.is-active { transform: scale(1.6); background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46,158,91,.4), 0 0 12px rgba(46,158,91,.7); }

/* ---------- Booking (sağ) ---------- */
.iht-tour__aside { position: relative; align-self: stretch; }
/* Sticky'nin kayabilmesi için kartın gerçek ebeveyni de tam boy olmalı. */
.iht-tour__aside .iht-booking { height: 100%; }
.iht-booking__card {
	position: sticky; top: 84px;
	max-height: calc(100svh - 100px); overflow-y: auto;
	background: var(--iht-surface, #fff);
	border: 1px solid var(--iht-line, #ddd6ca);
	padding: 1.6rem;
}
.iht-booking__head { border-bottom: 1px solid var(--iht-line, #ddd6ca); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.iht-booking__price { font-family: var(--iht-serif, Georgia, serif); font-size: 1.8rem; margin: 0; }
.iht-booking__price span { font-family: var(--iht-sans); font-size: .9rem; color: var(--iht-muted, #6b665e); }
.iht-booking__duration { color: var(--iht-muted, #6b665e); font-size: .9rem; margin: .3rem 0 0; }
.iht-booking__form { display: flex; flex-direction: column; gap: .9rem; }
.iht-booking__label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--iht-muted, #6b665e); }
.iht-booking__label input, .iht-booking__label select {
	font-size: 1rem; padding: .6rem .7rem; border: 1px solid var(--iht-line, #ddd6ca); border-radius: 2px; background: #fff; color: var(--iht-ink, #1c1b19);
}
.iht-booking__submit {
	margin-top: .4rem; padding: .85rem 1rem; border: 0; cursor: pointer;
	background: var(--iht-accent, #7a1f1c); color: #fff; font-size: .92rem; letter-spacing: .04em;
}
.iht-booking__submit:hover { background: #8f2622; }
.iht-booking__submit:disabled { opacity: .6; cursor: progress; }
.iht-booking__status { font-size: .85rem; margin: .3rem 0 0; min-height: 1.2em; }
.iht-booking__status.is-error { color: var(--iht-accent, #7a1f1c); }
.iht-booking__status.is-ok { color: var(--iht-flag-green, #4b7a52); }
.iht-booking__note { margin: 1.1rem 0 0; font-size: .74rem; color: var(--iht-muted, #6b665e); line-height: 1.4; }

/* Rezervasyon sekmeleri */
.iht-book__tabs { display: flex; gap: 4px; margin-bottom: 1.1rem; background: #f2efe8; padding: 4px; border-radius: 4px; }
.iht-book__tab {
	flex: 1; border: 0; background: transparent; cursor: pointer;
	padding: .55rem .6rem; font-size: .88rem; border-radius: 3px; color: var(--iht-muted, #6b665e);
	transition: background .2s ease, color .2s ease;
}
.iht-book__tab.is-active { background: #fff; color: var(--iht-ink, #1c1b19); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.iht-book__panel { margin-bottom: .2rem; }
.iht-booking__hint { font-size: .78rem; color: var(--iht-muted, #6b665e); margin: .3rem 0 0; line-height: 1.4; }

/* Satır içi takvim */
.iht-book__calendar { margin-bottom: 1rem; user-select: none; }
.iht-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.iht-cal__title { font-family: var(--iht-serif, Georgia, serif); font-size: 1.05rem; text-transform: capitalize; color: var(--iht-ink, #1c1b19); }
.iht-cal__nav {
	width: 30px; height: 30px; border: 1px solid var(--iht-line, #ddd6ca); background: #fff; border-radius: 50%;
	cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--iht-ink, #1c1b19);
	display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.iht-cal__nav:hover:not(:disabled) { background: #f2efe8; }
.iht-cal__nav:disabled { opacity: .3; cursor: default; }
.iht-cal__wds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.iht-cal__wd { text-align: center; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--iht-muted, #6b665e); padding: 2px 0; }
.iht-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.iht-cal__cell {
	aspect-ratio: 1; border: 0; background: #f4f1ea; border-radius: 6px; cursor: pointer;
	font-size: .9rem; color: var(--iht-ink, #1c1b19); display: flex; align-items: center; justify-content: center;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.iht-cal__cell--empty { background: transparent; cursor: default; }
.iht-cal__cell:hover:not(.is-off):not(.is-selected) { background: color-mix(in srgb, var(--iht-accent, #7a1f1c) 14%, #fff); }
.iht-cal__cell.is-off { opacity: .28; cursor: default; background: transparent; color: var(--iht-muted, #6b665e); }
.iht-cal__cell.is-selected { background: var(--iht-accent, #7a1f1c); color: #fff; transform: scale(1.04); box-shadow: 0 3px 10px rgba(122,31,28,.35); }

/* Ek hizmetler */
.iht-book__addons { display: flex; flex-direction: column; gap: .5rem; margin: .2rem 0 .4rem; }
.iht-book__addons-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--iht-muted, #6b665e); }
.iht-book__addon {
	display: flex; align-items: center; gap: .5rem; cursor: pointer;
	padding: .55rem .7rem; border: 1px solid var(--iht-line, #ddd6ca); border-radius: 3px; font-size: .92rem;
	transition: border-color .2s ease, background .2s ease;
}
.iht-book__addon:hover { border-color: var(--iht-accent, #7a1f1c); }
.iht-book__addon-label { flex: 1; }
.iht-book__addon-price { color: var(--iht-accent, #7a1f1c); font-weight: 600; font-size: .88rem; }

/* Canlı fiyat */
.iht-book__price {
	margin: .4rem 0 1rem; padding: .8rem 1rem; background: #f7f4ee; border: 1px solid var(--iht-line, #ddd6ca); border-radius: 3px;
	font-family: var(--iht-serif, Georgia, serif); font-size: 1.5rem; color: var(--iht-ink, #1c1b19); text-align: center;
}
.iht-booking__return { margin: 0 0 1rem; padding: .7rem .8rem; border-radius: 2px; font-size: .88rem; background: #f2efe8; }
.iht-booking__return.is-ok { background: color-mix(in srgb, var(--iht-flag-green, #4b7a52) 16%, #fff); color: #2f5236; }
.iht-booking__return.is-error { background: color-mix(in srgb, var(--iht-accent, #7a1f1c) 12%, #fff); color: var(--iht-accent, #7a1f1c); }

.iht-tour__content { max-width: 62ch; margin: 3rem 0 0; }

/* Harita altı bilgi sekmeleri */
.iht-infotabs { margin: 3rem 0 0; max-width: 68ch; }
.iht-infotabs__nav {
	display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--iht-line, #ddd6ca); margin-bottom: 1.4rem;
}
.iht-infotabs__tab {
	background: none; border: 0; cursor: pointer; padding: .7rem 1.1rem; margin-bottom: -1px;
	font-family: var(--iht-serif, Georgia, serif); font-size: 1.02rem; color: var(--iht-muted, #6b665e);
	border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; white-space: nowrap;
}
.iht-infotabs__tab:hover { color: var(--iht-ink, #1c1b19); }
.iht-infotabs__tab.is-active { color: var(--iht-accent, #7a1f1c); border-bottom-color: var(--iht-accent, #7a1f1c); }
.iht-infotabs__panel { display: none; color: var(--iht-ink, #1c1b19); line-height: 1.75; font-size: 1rem; }
.iht-infotabs__panel.is-active { display: block; animation: iht-fade-in .35s ease; }
.iht-infotabs__panel p { margin: 0 0 1rem; }
.iht-infotabs__panel ul, .iht-infotabs__panel ol { margin: 0 0 1rem 1.2rem; }
.iht-infotabs__panel li { margin: 0 0 .4rem; }
@keyframes iht-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* İndirilebilir belgeler */
.iht-downloads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.iht-downloads__item a {
	display: flex; align-items: center; gap: .7rem; text-decoration: none;
	padding: .8rem 1rem; border: 1px solid var(--iht-line, #ddd6ca); border-radius: 4px;
	color: var(--iht-ink, #1c1b19); transition: border-color .2s ease, background .2s ease;
}
.iht-downloads__item a:hover { border-color: var(--iht-accent, #7a1f1c); background: rgba(122,31,28,.04); }
.iht-downloads__icon { font-size: 1.2rem; color: var(--iht-accent, #7a1f1c); }
.iht-downloads__label { flex: 1; font-weight: 500; }
.iht-downloads__hint { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--iht-muted, #6b665e); }

@media (max-width: 940px) {
	.iht-tour__split { grid-template-columns: 1fr; }
	.iht-storymap__map { position: relative; top: 0; height: 60vh; }
	.iht-storymap__panels { margin-top: 2rem; }
	.iht-panel { min-height: auto; margin-bottom: 1.5rem; }
	.iht-panel__card { opacity: 1; transform: none; }
	.iht-booking__card { position: relative; top: 0; }
	.iht-tourgallery { position: relative; top: 0; }
	.iht-tourgallery__frame { aspect-ratio: 4 / 3; }
	.iht-storymap__audio { position: fixed; bottom: 16px; right: 16px; margin: 0; top: auto; float: none; }
}

/* ---------- Takvim kapalı: sticky galeri (aside) ---------- */
.iht-tourgallery { position: sticky; top: 84px; }
.iht-tourgallery__card { display: flex; flex-direction: column; gap: .8rem; }
.iht-tourgallery__frame {
	position: relative; border-radius: 6px; overflow: hidden; background: #e9e4da;
	aspect-ratio: 4 / 5; box-shadow: 0 18px 44px rgba(28,27,25,.14);
}
.iht-tourgallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
.iht-tourgallery__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.1rem .9rem;
	background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.15) 60%, transparent);
	color: #fff;
}
.iht-tourgallery__idx { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: .2rem; }
.iht-tourgallery__title { font-family: var(--iht-serif, Georgia, serif); font-size: 1.15rem; line-height: 1.25; }
.iht-tourgallery__thumbs { display: flex; gap: .45rem; flex-wrap: wrap; }
.iht-tourgallery__thumb {
	width: 46px; height: 46px; border-radius: 4px; border: 2px solid transparent; padding: 0;
	background-size: cover; background-position: center; cursor: pointer; opacity: .68;
	transition: opacity .2s ease, border-color .2s ease;
}
.iht-tourgallery__thumb.is-active, .iht-tourgallery__thumb:hover { opacity: 1; border-color: var(--iht-accent, #7a1f1c); }
.iht-tourgallery__cta {
	margin-top: .3rem; padding: .95rem 1rem; border: 0; border-radius: 4px; cursor: pointer;
	background: var(--iht-accent, #7a1f1c); color: #fff;
	font-family: var(--iht-serif, Georgia, serif); font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase;
	transition: transform .2s ease, filter .2s ease;
}
.iht-tourgallery__cta:hover { transform: translateY(-1px); filter: brightness(1.1); }
