/* Özaltın Turizm · Turlar: broşür standı (önek tb-; özel rota cümlesi tn-)
   Üçe katlanan broşür ortada, stant sayfa genişliğinde ve alttaki lacivert bölüme oturur.
   Broşür açılışta bir kez açılır; tur değişince tek yaprak menteşede döner (arkasında yeni sayfa). */

.tb-simgeler { position: absolute; width: 0; height: 0; overflow: hidden; }
.oz-menu a[aria-current="page"] { color: var(--lac); font-weight: 700; }

.tb {
  position: relative; overflow: hidden; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--icerik-ust);
  background: #e6edf4;
}

/* ---------- Broşür ---------- */
.tb-brosur {
  position: relative; z-index: 2;
  width: min(1960px, 100% - 2 * var(--kenar)); margin: auto;
  height: clamp(500px, 100svh - 540px, 820px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 5200px;
}
.tb-sayfa { position: relative; min-width: 0; overflow: hidden; box-shadow: 0 40px 60px -46px rgba(14, 31, 58, .55); }
.tb-giris {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 2.8vw, 72px);
  background: #fff; border-radius: 18px 0 0 18px;
}
.tb-giris h1 {
  font-size: clamp(34px, 2.6vw, 66px); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 800; color: var(--lac); text-wrap: balance;
}
.tb-giris div p { margin-top: 22px; max-width: 24em; font-size: clamp(15px, .92vw, 19px); line-height: 1.6; color: var(--soluk); }
.tb-kunye { display: grid; gap: 4px; font-size: clamp(13px, .72vw, 15px); line-height: 1.45; color: var(--soluk); }
.tb-kunye b { color: var(--lac); font-weight: 800; }
.tb-kunye a { justify-self: start; margin-top: 8px; font-weight: 700; color: var(--lac); text-decoration: none; transition: color .5s var(--e); }
.tb-kunye a:hover { color: var(--altin-koyu); }

.tb-foto { background: #d7e0ea; }
/* Yeni olan üstte belirir, eskisi örtülene kadar altta bekler */
.tb-f {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0; transition: opacity 0s linear .6s;
}
.tb-f.is-on { z-index: 1; opacity: 1; transition: opacity .6s var(--e); }

/* Açılışta katlı duran kanat: menteşe sol kenarında */
.tb-kanat {
  position: relative; z-index: 3; min-width: 0;
  transform-style: preserve-3d; transform-origin: 0 50%;
  transform: rotateY(0deg);
  transition: transform 1.3s cubic-bezier(.42, .06, .18, 1);
}
html.js .tb:not(.is-hazir) .tb-kanat {
  transform: rotateY(-180deg);
  transition: none;
  pointer-events: none;
}
.tb-yuz {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.tb-ic { display: grid; border-radius: 0 18px 18px 0; box-shadow: 0 40px 60px -46px rgba(14, 31, 58, .55); }
.tb-t {
  grid-area: 1 / 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 72px);
  background: var(--r); color: #fff;
  position: relative; z-index: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0s linear .6s, visibility 0s linear .6s;
}
.tb-t.is-on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s var(--e), visibility 0s; }
.tb-t h2 { font-size: clamp(26px, 1.9vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.tb-bolge { margin-top: 6px; font-size: clamp(14px, .8vw, 17px); color: rgba(255, 255, 255, .68); }
.tb-ara { margin-top: auto; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.tb-t ul { display: grid; gap: .45em; margin: 12px 0 0; padding: 0; list-style: none; font-size: clamp(17px, 1.15vw, 26px); line-height: 1.2; font-weight: 600; }
.tb-not { max-width: 26em; margin: auto 0 0; padding-top: 24px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.tb-sor {
  align-self: flex-start; flex: none;
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px;
  height: 54px; padding: 0 22px; border-radius: 14px;
  background: #fff; color: var(--r); text-decoration: none; font-size: 16px; font-weight: 700;
  transition: transform .55s var(--e);
}
.tb-sor:hover { transform: translate3d(0, -2px, 0); }
.tb-sor svg { width: 20px; height: 20px; fill: currentColor; }
.tb-sor:focus-visible { outline-color: #fff; }

.tb-kapak { transform: rotateY(180deg); border-radius: 18px 0 0 18px; }
.tb-k {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--r); color: #fff;
  opacity: 0; transition: opacity .4s ease;
}
.tb-k.is-on { opacity: 1; }
.tb-k b { padding: clamp(26px, 2.6vw, 64px); font-size: clamp(30px, 2.4vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.tb-k img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }

/* Dönen yaprak: yalnız geçiş sürerken sayfada durur */
.tb-yaprak, .tb-golge { position: absolute; top: 0; bottom: 0; width: calc(100% / 3); pointer-events: none; }
.tb-yaprak { z-index: 5; transform-style: preserve-3d; will-change: transform; }
.tb-yaprak.is-ileri { left: calc(200% / 3); transform-origin: 0 50%; }
.tb-yaprak.is-geri { left: calc(100% / 3); transform-origin: 100% 50%; }
.tb-yaprak .tb-yuz { display: grid; }
.tb-arka { transform: rotateY(180deg); }
.is-ileri .tb-on, .is-geri .tb-arka { border-radius: 0 18px 18px 0; }
.tb-yaprak .tb-t, .tb-yaprak .tb-f { opacity: 1; visibility: visible; transition: none; }

.tb-isik { position: absolute; inset: 0; z-index: 2; opacity: 0; }
.is-ileri .tb-on .tb-isik, .is-geri .tb-arka .tb-isik { background: linear-gradient(90deg, rgba(14, 31, 58, .3), rgba(14, 31, 58, .08)); }
.is-ileri .tb-arka .tb-isik, .is-geri .tb-on .tb-isik { background: linear-gradient(270deg, rgba(14, 31, 58, .3), rgba(14, 31, 58, .08)); }

.tb-golge { z-index: 4; opacity: 0; }
.tb-golge-sol { left: calc(100% / 3); background: linear-gradient(270deg, rgba(14, 31, 58, .3), rgba(14, 31, 58, 0) 85%); }
.tb-golge-sag { left: calc(200% / 3); border-radius: 0 18px 18px 0; background: linear-gradient(90deg, rgba(14, 31, 58, .3), rgba(14, 31, 58, 0) 85%); }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .tb-f, .tb-f.is-on, .tb-t, .tb-t.is-on { transition: none; }
}

/* ---------- Stant ---------- */
.tb-stant {
  position: relative; z-index: 1; flex: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: clamp(6px, .7vw, 18px);
  padding: 30px clamp(14px, 1.6vw, 44px) 0;
}
.tb-b {
  height: clamp(160px, 10.5vw, 270px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--r); color: #fff; text-decoration: none;
  translate: 0 36px;
  transition: translate .7s var(--e);
}
.tb-b:hover { translate: 0 20px; }
.tb-b.is-on { translate: 0 0; }
.tb-b b { flex: none; padding: 12px clamp(8px, .7vw, 18px); font-size: clamp(12px, .78vw, 19px); line-height: 1.2; font-weight: 700; white-space: nowrap; }
.tb-b img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.tb-b:focus-visible { translate: 0 0; outline: 3px solid var(--altin); outline-offset: -3px; }

/* ---------- Listede olmayan rota ---------- */
.tn { padding: clamp(80px, 6.5vw, 150px) var(--kenar); background: var(--lac); color: #fff; }
.tn-ic { max-width: 1280px; margin: 0 auto; text-align: center; }
.tn h2 { font-size: clamp(30px, 2.2vw, 52px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.tn-cumle { margin-top: 30px; font-size: clamp(19px, 1.4vw, 32px); line-height: 2.2; color: rgba(255, 255, 255, .78); }
.tn-cumle input {
  height: 1.7em; margin: 0 .2em; padding: 0 .5em; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff;
  font: inherit; line-height: 1; font-weight: 600; text-align: center;
  transition: background-color .5s var(--e);
}
.tn-cumle input:hover, .tn-cumle input:focus { background: rgba(255, 255, 255, .17); }
.tn-cumle input::placeholder { color: rgba(255, 255, 255, .34); }
.tn-cumle .tn-yer { width: 9em; }
.tn-cumle .tn-kisi { width: 3.2em; }
.tn-cumle .tn-tarih { width: 8em; }
.tn-gonder {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  height: 56px; padding: 0 24px; border-radius: 14px;
  background: #fff; color: var(--lac); text-decoration: none; font-size: 16px; font-weight: 700;
  transition: transform .55s var(--e);
}
.tn-gonder:hover { transform: translate3d(0, -2px, 0); }
.tn-gonder svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Tablet: stant yatay kayar ---------- */
@media (max-width: 1280px) {
  .tb-brosur { width: calc(100% - 40px); }
  .tb-stant { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tb-stant::-webkit-scrollbar { display: none; }
}

/* Açılır menü lacivert olduğu için seçili sayfa burada beyaz */
@media (max-width: 1100px) {
  .oz-menu a[aria-current="page"] { color: #fff; }
}

/* ---------- Telefon: kanatlar alt alta, katlanma yerine yumuşak geçiş ---------- */
@media (max-width: 900px) {
  .tb { padding-top: var(--icerik-ust); }
  .tb-brosur { display: block; height: auto; margin: 0 auto; perspective: none; }
  .tb-giris { border-radius: 18px 18px 0 0; padding: 28px 24px; gap: 24px; }
  .tb-foto { height: 62vw; scroll-margin-top: 12px; }
  .tb-kanat,
  html.js .tb:not(.is-hazir) .tb-kanat { transform: none; transition: none; pointer-events: auto; transform-style: flat; }
  .tb-ic { position: relative; border-radius: 0 0 18px 18px; }
  .tb-t { padding: 28px 24px; }
  .tb-kapak, .tb-yaprak, .tb-golge { display: none; }
  .tn { padding: 72px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .tb:not(.is-hazir) .tb-kanat { transform: none; }
  .tb-kanat { transition: none; }
}
