/* =========================================================
   DIAMOND TOURISM — Ortak stiller & animasyonlar
   Tailwind CDN'i tamamlayan özel sınıflar.
   Palet: ink #0B2341 · teal #55B7E7 · aqua #BFEAFF
          sun #8ED6FF · coral #F69AB0 · sand #F3FAFF
   ========================================================= */

:root {
  --ink: #0B2341;
  --deep: #123B5D;
  --teal: #55B7E7;
  --aqua: #BFEAFF;
  --foam: #E9F8FF;
  --sun: #8ED6FF;
  --coral: #F69AB0;
  --sand: #F3FAFF;
  --shell: #FBFDFF;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body[data-azura-scroll-locked="1"] { touch-action: none; }
[role="dialog"],
.modal-scroll-lock { overscroll-behavior: contain; }

@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

.font-display { font-family: 'Fraunces', serif; }

/* ---------- Mega footer reveal ---------- */
body.has-mega-footer { background: var(--ink); }
.site-content {
  position: relative;
  z-index: 1;
  background: var(--sand);
}
#mv-footer {
  position: relative;
  z-index: 0;
}

.mega-footer {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(70% 58% at 10% 0%, rgba(142, 214, 255, .18), transparent 60%),
    radial-gradient(52% 48% at 92% 12%, rgba(246, 154, 176, .13), transparent 66%),
    linear-gradient(180deg, #0b2748 0%, #07182f 100%);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, .08);
}

.mega-footer__inner {
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  width: min(100%, 1760px);
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.75rem) clamp(1.5rem, 5vw, 5rem) clamp(8.5rem, 14.5vw, 11.75rem);
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.2rem, 2.4vw, 2.25rem);
  transition: opacity .25s ease, transform .25s ease;
}

.mega-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.mega-footer__kicker {
  margin-bottom: .85rem;
  color: var(--sun);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mega-footer__lead h2 {
  max-width: 18ch;
  font-family: 'Fraunces', serif;
  font-size: clamp(2.45rem, 4vw, 5rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: 0;
}

.mega-footer__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .9rem;
}

.mega-footer__button,
.mega-footer__phone {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.mega-footer__button {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 22px 46px rgba(142, 214, 255, .28);
}

.mega-footer__button:hover {
  transform: translateY(-2px);
  background: #bfeaff;
}

.mega-footer__phone {
  border: 1px solid rgba(248, 250, 252, .22);
  color: rgba(248, 250, 252, .82);
}

.mega-footer__phone:hover {
  border-color: var(--sun);
  color: var(--sun);
}

.mega-footer__notes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  color: rgba(248, 250, 252, .68);
  font-size: .9rem;
  font-weight: 750;
}

.mega-footer__notes span,
.mega-footer__service-list span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.mega-footer__notes i,
.mega-footer__service-list i {
  color: var(--sun);
  font-size: 1.05rem;
}

.mega-footer__grid {
  display: grid;
  grid-template-columns: .9fr 1fr 1.18fr;
  gap: clamp(1.75rem, 5vw, 5.25rem);
  align-items: start;
}

.mega-footer__col {
  border-top: 1px solid rgba(248, 250, 252, .13);
  padding-top: .95rem;
}

.mega-footer__col h3 {
  margin-bottom: .75rem;
  color: rgba(248, 250, 252, .48);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mega-footer__col a,
.mega-footer__col p,
.mega-footer__loc {
  color: rgba(248, 250, 252, .72);
  font-size: clamp(.9rem, .98vw, 1rem);
  line-height: 1.38;
}

.mega-footer__col a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .12rem;
  transition: color .2s ease, transform .2s ease;
}

.mega-footer__col a:hover {
  color: #fff;
  transform: translateX(4px);
}

.mega-footer__col a i {
  color: var(--sun);
  font-style: normal;
  font-size: .76rem;
  font-weight: 800;
}

.mega-footer__arrow {
  margin-left: auto;
  color: rgba(248, 250, 252, .38);
}

.mega-footer__loc {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--sun);
  font-weight: 800;
}

.mega-footer__service-list {
  display: grid;
  gap: .28rem;
}

.mega-footer__service-list span {
  color: rgba(248, 250, 252, .72);
  font-size: clamp(.9rem, .98vw, 1rem);
  font-weight: 750;
  line-height: 1.38;
}

.mega-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -.75rem;
  border-top: 1px solid rgba(248, 250, 252, .12);
  padding-top: .9rem;
  color: rgba(248, 250, 252, .62);
  font-size: .86rem;
}

.mega-footer__word {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  opacity: .9;
  pointer-events: none;
}

.mega-footer__word text {
  font-family: 'Fraunces', serif;
  font-size: 168px;
  font-weight: 800;
  letter-spacing: 0;
}

@media (min-width: 881px) {
  body.has-mega-footer .site-content {
    margin-bottom: 100svh;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .24);
  }

  body.has-mega-footer .mega-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 0;
  }
}

@media (max-width: 880px) {
  .mega-footer {
    min-height: auto;
  }

  .mega-footer__inner {
    min-height: auto;
    padding-block: 4rem 2rem;
  }

  .mega-footer__top,
  .mega-footer__grid {
    grid-template-columns: 1fr;
  }

  .mega-footer__cta {
    justify-content: flex-start;
  }

  .mega-footer__lead h2 {
    max-width: 11ch;
  }

  .mega-footer__bottom {
    flex-direction: column;
  }

  .mega-footer__word {
    position: relative;
    bottom: auto;
    margin-top: -1rem;
  }
}

/* ---------- Bölüm etiketi ---------- */
.eyebrow { letter-spacing: 0.34em; text-transform: uppercase; }

/* ---------- Altın gradyan metin ---------- */
.text-gradient {
  background: linear-gradient(120deg, var(--sun) 0%, var(--teal) 50%, var(--coral) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s linear infinite;
}
@keyframes shimmerText { to { background-position: 200% center; } }

/* ---------- Cam efekti ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(11,35,65,0.28) 0%, rgba(11,35,65,0.56) 55%, rgba(11,35,65,0.93) 100%);
}
/* Ken Burns yavaş zoom */
.kenburns { animation: kenburns 18s ease-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1.5%); }
}

/* Yüzen gradyan orblar */
.orb { position: absolute; border-radius: 9999px; filter: blur(60px); pointer-events: none; opacity: 0.5; }
.orb-sun { background: var(--sun); animation: floaty 9s ease-in-out infinite; }
.orb-aqua { background: var(--aqua); animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}

/* ---------- Kart hover ---------- */
.card-lift { position: relative; z-index: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.card-lift:hover { z-index: 40; transform: translateY(-10px); box-shadow: 0 36px 80px rgba(11, 35, 65, .20); }
.card-img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
.card-lift:hover .card-img { transform: scale(1.08); }
.villa-card,
#featuredGrid > .reveal,
#villaGrid > .reveal { height: 100%; }
.villa-card { min-height: 36rem; }
.villa-card-tags,
.similar-slide .mt-4.flex.flex-wrap.gap-2 { padding-bottom: .75rem; }

/* GSAP ScrollTrigger benzeri foto scrub hareketi */
.smooth-media-frame { overflow: hidden; }
.smooth-media-img {
  --smooth-media-y: 0%;
  transform: translate3d(0, var(--smooth-media-y), 0) scale(1.06);
  transform-origin: center center;
  will-change: transform;
}
.card-lift .smooth-media-img {
  height: 116% !important;
  margin-top: -8%;
}
.card-lift:hover .smooth-media-img {
  transform: translate3d(0, var(--smooth-media-y), 0) scale(1.11);
}
.px-layer.smooth-media-img,
.pcard .pphoto img.smooth-media-img {
  transform: translate3d(0, var(--smooth-media-y), 0);
}

/* ---------- Butonlar ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--teal));
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(142, 214, 255, .42); filter: brightness(1.04); }

/* Parıltı geçişi */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-shine:hover::after { left: 130%; }

/* ---------- Nav alt çizgi ---------- */
.nav-underline { position: relative; }
.nav-underline::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sun); border-radius: 2px; transition: width .3s ease;
}
.nav-underline:hover::after, .nav-underline.is-active::after { width: 100%; }

/* ---------- Açılır menü (Villa Türleri) ---------- */
.dropdown::after {
  content: "";
  position: absolute;
  left: -4.5rem;
  top: 100%;
  z-index: 49;
  display: none;
  width: 34rem;
  height: .75rem;
}

.dropdown:is(:hover, :focus-within, .is-open)::after {
  display: block;
}

.dropdown-panel {
  left: -4.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(.96);
  transform-origin: 3rem 0;
  transition:
    opacity .42s ease,
    transform .5s cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear .5s;
}
.dropdown:is(:hover, :focus-within, .is-open) > .dropdown-panel {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition-delay: 0s;
}

/* ---------- Üst bilgi çubuğu / header scroll ---------- */
.az-header { transition: transform .4s ease, background .4s ease, box-shadow .4s ease; }
.az-header.hide { transform: translateY(-100%); }
.az-header.scrolled { box-shadow: 0 12px 40px rgba(11, 35, 65, .16); }

/* İngilizce menü etiketleri Türkçeden biraz uzun → 1280-1535px'te boşluk/yazı
   daraltılınca sığar. */
@media (min-width: 1280px) and (max-width: 1535px) {
  html[lang="en"] #az-header nav.xl\:flex { column-gap: .9rem; }
  html[lang="en"] #az-header nav.xl\:flex a,
  html[lang="en"] #az-header nav.xl\:flex button { font-size: .82rem; }
}
/* Rusça etiketler çok uzun (Аренда автомобилей vb.) → satır içi menü her
   genişlikte taşabiliyor. RU seçiliyken üst menü DAİMA hamburger'a döner;
   tüm bağlantılar sağdan açılan çekmecede. Taşma kesin biter. */
@media (min-width: 1280px) {
  html[lang="ru"] #az-header nav.xl\:flex { display: none !important; }
  html[lang="ru"] #azMenuToggle { display: inline-flex !important; }
  html[lang="ru"] #azOverlay { display: block !important; }
  html[lang="ru"] #azMobile { display: flex !important; }
}

/* ---------- Para birimi switcher ---------- */
.currency-switcher {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(11, 35, 65, .09);
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  padding: .32rem;
  box-shadow: 0 10px 28px rgba(11, 35, 65, .07);
}
.currency-switcher__label {
  padding-left: .55rem;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(11, 35, 65, .42);
}
.currency-switcher__buttons {
  display: inline-flex;
  gap: .18rem;
}
.currency-switcher__button {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(11, 35, 65, .55);
  font-size: .82rem;
  font-weight: 900;
  transition: background .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}
.currency-switcher__button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.currency-switcher__button.is-active {
  background: var(--ink);
  color: var(--shell);
  box-shadow: 0 8px 18px rgba(11, 35, 65, .18);
}
.currency-switcher--compact {
  gap: .35rem;
  padding: .22rem;
}
.currency-switcher--compact .currency-switcher__label {
  padding-left: .45rem;
  font-size: .62rem;
}
.currency-switcher--compact .currency-switcher__button {
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: .75rem;
}
.currency-switcher--dark {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .10);
  box-shadow: none;
}
.currency-switcher--dark .currency-switcher__label {
  color: rgba(248, 250, 252, .55);
}
.currency-switcher--dark .currency-switcher__button {
  color: rgba(248, 250, 252, .75);
}
.currency-switcher--dark .currency-switcher__button.is-active {
  background: var(--sun);
  color: var(--ink);
}

/* ---------- Marquee (kayan şerit) ---------- */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; padding-right: 3.5rem; flex-shrink: 0; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Reveal (stagger) ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1 !important; transform: translateY(0) !important; }
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="zoom"] { transform: scale(.92); }
.reveal.is-visible[data-reveal] { transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Hero rezervasyon sekmeleri ---------- */
.hero-tab {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid transparent;
}
.hero-tab:hover { color: #fff; }
.hero-tab--active {
  color: var(--ink);
  background: var(--sun);
}

/* ---------- Admin grafik çubukları ---------- */
.chart-bar { transition: height .9s cubic-bezier(.16,1,.3,1), width .9s cubic-bezier(.16,1,.3,1); }

/* ---------- Müsaitlik takvimi ---------- */
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0;
  border-radius: 10px; font-size: .82rem; font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cal-date { line-height: 1; }
.cal-price {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .52rem;
  font-weight: 800;
  line-height: 1.05;
  opacity: .72;
}
.cal-free { color: var(--ink); background: #fff; border: 1px solid rgba(11,35,65,.08); cursor: pointer; }
.cal-free:hover { background: var(--sand); transform: translateY(-1px); }
.cal-booked { color: #bf5f76; background: rgba(246,154,176,.16); text-decoration: line-through; cursor: not-allowed; }
.cal-pending { color: #9a6a05; background: rgba(244,196,87,.22); border: 1px solid rgba(154,106,5,.18); cursor: not-allowed; }
/* Yarım gün — çapraz, yarısı dolu (giriş/çıkış geçiş günü) */
.cal-half { color: var(--ink); background: linear-gradient(135deg, rgba(246,154,176,.24) 0 50%, #fff 50% 100%); border: 1px solid rgba(11,35,65,.08); cursor: pointer; }
.cal-half:hover { transform: translateY(-1px); filter: brightness(.98); }
.cal-half-legend { background: linear-gradient(135deg, rgba(246,154,176,.45) 0 50%, #fff 50% 100%) !important; }
.cal-past { color: rgba(11,35,65,.25); cursor: not-allowed; }
.cal-sel { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }
.cal-range { background: rgba(142,214,255,.24); color: var(--ink); }

/* Küçük takvim (4 ay) hücreleri */
.cal-grid-sm .cal-day { font-size: .7rem; border-radius: 7px; }
.cal-grid-sm .cal-price { font-size: .45rem; }

/* ---------- Sayfa-içi sticky nav ---------- */
#sectionNav { transition: box-shadow .24s ease; }
.secnav-active { background: var(--ink) !important; color: var(--sand) !important; }

@media (min-width: 1024px) {
  .detail-reserve-card {
    max-height: calc(100vh - var(--reserve-card-top, 1.5rem) - 1rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.similar-carousel {
  scroll-padding-inline: 0;
}
.similar-slide {
  flex: 0 0 86%;
  display: flex;
}
@media (min-width: 768px) {
  .similar-slide {
    flex-basis: calc((100% - 1.75rem) / 2);
  }
}
.similar-slide > article {
  width: 100%;
  height: 100%;
}
.similar-slide > article > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.similar-slide > article > a > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.similar-slide > article > a > div:last-child > div:last-child {
  margin-top: auto;
}

/* ---------- Galeri & Lightbox ---------- */
.gal-thumb, .gal-main { cursor: pointer; }
.lb-thumb { transition: width .3s ease; }

/* ---------- Admin grafik (bitti) ---------- */

/* ---------- Galeri thumb ---------- */
.thumb.is-active { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- Mobil menü panel ---------- */
.mobile-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(18,59,93,.99), rgba(11,35,65,.99));
  border-left: 1px solid rgba(142,214,255,.22);
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  box-shadow: -30px 0 70px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
/* Mobil menü bağlantı satırı (drawer) */
.mobile-link {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  padding: .8rem 1rem;
  font-size: .9rem;
  font-weight: 700;
  color: #FBFDFF;
  transition: border-color .2s ease, background .2s ease;
}
.mobile-link:hover { border-color: rgba(142,214,255,.4); background: rgba(255,255,255,.08); }

/* Dil seçici segment butonları (header açık zemin + drawer koyu zemin) */
.lang-seg, .lang-seg-d {
  padding: .34rem .6rem; border-radius: 9999px; font-size: .76rem; font-weight: 800;
  line-height: 1; letter-spacing: .02em; cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.lang-seg { color: #0B2341; opacity: .5; }
.lang-seg:hover { opacity: .85; }
.lang-seg.lang-active { background: #0B2341; color: #8ED6FF; opacity: 1; }
.lang-seg-d { color: #FBFDFF; opacity: .55; text-align: center; }
.lang-seg-d:hover { opacity: .9; }
.lang-seg-d.lang-active { background: #8ED6FF; color: #0B2341; opacity: 1; }

/* "Çevriliyor…" göstergesi (ilk çeviri sırasında) */
.az-i18n-busy {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 9999; display: flex; align-items: center; gap: .5rem;
  background: #0B2341; color: #FBFDFF; padding: .5rem .95rem; border-radius: 9999px;
  font-size: .8rem; font-weight: 700; box-shadow: 0 12px 34px rgba(11,35,65,.4);
}
.az-i18n-spin {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.25);
  border-top-color: #8ED6FF; border-radius: 50%; animation: azspin .7s linear infinite;
}
@keyframes azspin { to { transform: rotate(360deg); } }

/* Drawer aç/kapa durumu — ID özgüllüğü Tailwind CDN'in JIT zamanlama sorununu by-pass eder.
   Kapalı: sağda ekran dışı + saydam + tıklanamaz. Açık: içeri kayar. */
#azOverlay { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#azOverlay.is-open { opacity: 1; pointer-events: auto; }
#azMobile {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
#azMobile.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  #azMobile, #azOverlay { transition: opacity .2s ease; }
  #azMobile { transform: none; }
}

/* ---------- Scrollbar gizle ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   EDİTORYAL / PARALLAX (anasayfa — objectandarchive hissi)
   ========================================================= */

/* Lenis yumuşak scroll */
html.lenis, html.lenis-on { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Parallax pencere: resim kabından büyük olur, kayarken kenar boşluğu olmaz */
.px-window { position: relative; overflow: hidden; }
.px-layer { position: absolute; inset: -14% 0; width: 100%; height: 128%; object-fit: cover; will-change: transform; }
[data-parallax] { will-change: transform; }

/* Kelime kelime maskeli yükselme (data-split) */
.rise-word { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.04; padding-bottom: 0.08em; }
.rise-word > span { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
[data-split].is-in .rise-word > span { transform: translateY(0); }

/* Blok yavaş belirme (data-rise) */
[data-rise] { opacity: 0; transform: translateY(46px); transition: opacity 1.05s cubic-bezier(.16, 1, .3, 1), transform 1.15s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
[data-rise].is-in { opacity: 1; transform: none; }
[data-rise][data-rise-d="1"] { transition-delay: .12s; }
[data-rise][data-rise-d="2"] { transition-delay: .24s; }
[data-rise][data-rise-d="3"] { transition-delay: .36s; }

/* =========================================================
   ARŞİV KARTLARI — yapıştırılmış fotoğraf / 3D parallax
   ========================================================= */
.archive-grid {
  perspective: 1600px;
  padding-inline: 1.35rem;
  transform-style: preserve-3d;
}

.archive-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 30rem;
  padding: 1.35rem 1.35rem 7.4rem;
  border: 1px solid rgba(11, 35, 65, .1);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  transform: rotate(var(--rot, -1deg)) translateZ(0);
  transform-style: preserve-3d;
  box-shadow:
    0 34px 68px rgba(11, 35, 65, .18),
    0 12px 22px rgba(11, 35, 65, .09),
    0 2px 0 rgba(255, 255, 255, .9) inset;
  transition:
    transform .58s cubic-bezier(.16, 1, .3, 1),
    box-shadow .42s ease;
}

.archive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,0) 45%),
    repeating-linear-gradient(0deg, rgba(11,35,65,.018) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.archive-card::after {
  content: '';
  position: absolute;
  inset: 1.35rem;
  z-index: 3;
  border: 1px solid rgba(11, 35, 65, .07);
  border-radius: 2px;
  pointer-events: none;
}

.archive-card:hover {
  z-index: 30;
  transform: rotate(0deg) translateY(-10px) translateZ(42px);
  box-shadow:
    0 44px 92px rgba(11, 35, 65, .24),
    0 16px 32px rgba(11, 35, 65, .12),
    0 2px 0 rgba(255, 255, 255, .95) inset;
}

.archive-card.reveal {
  opacity: 0;
  transform: translateY(30px) rotate(var(--rot, -1deg)) translateZ(0);
  transition:
    opacity .8s ease,
    transform .58s cubic-bezier(.16, 1, .3, 1),
    box-shadow .42s ease;
}

.archive-card.reveal.is-visible {
  opacity: 1;
  transform: rotate(var(--rot, -1deg)) translateZ(0);
}

.archive-card.reveal.is-visible:hover {
  transform: rotate(0deg) translateY(-10px) translateZ(42px);
}

.archive-card--type {
  min-height: 28.75rem;
}

.archive-photo {
  position: relative;
  z-index: 2;
  height: 20.2rem;
  overflow: hidden;
  border-radius: 2px;
  background: #dceffa;
  transform: translateZ(38px);
  box-shadow:
    0 18px 28px rgba(11, 35, 65, .14),
    inset 0 0 0 1px rgba(11, 35, 65, .09);
}

.archive-card--type .archive-photo {
  height: 17.85rem;
}

.archive-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.26), transparent 34%, rgba(11,35,65,.08));
  pointer-events: none;
}

.archive-photo-depth {
  width: 100%;
  height: 112%;
  margin-top: -6%;
  will-change: transform;
}

.archive-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.98) contrast(1.03);
  transform: scale(1.035);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1), filter .45s ease;
}

.archive-card:hover .archive-photo img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.08);
}

.archive-copy {
  position: absolute;
  left: 1.7rem;
  right: 1.7rem;
  bottom: 1.28rem;
  z-index: 6;
  transform: translateZ(74px);
  transform-style: preserve-3d;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .95),
    0 12px 24px rgba(11, 35, 65, .12);
}

.archive-copy-depth {
  min-height: 4.75rem;
  will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(11, 35, 65, .12));
}

.archive-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--teal);
  box-shadow:
    0 10px 20px rgba(11, 35, 65, .1),
    inset 0 0 0 1px rgba(11, 35, 65, .06);
}

.archive-icon i {
  font-size: 1.22rem;
  line-height: 1;
}

.archive-copy h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #fff,
    0 12px 24px rgba(11, 35, 65, .16);
}

.archive-copy p {
  margin-top: .38rem;
  color: rgba(11, 35, 65, .6);
  font-size: .94rem;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95);
}

.archive-tape {
  position: absolute;
  z-index: 9;
  top: var(--tape-top, auto);
  right: var(--tape-right, auto);
  bottom: var(--tape-bottom, auto);
  left: var(--tape-left, auto);
  width: 94px;
  height: 28px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .84);
  box-shadow:
    0 9px 18px rgba(11, 35, 65, .13),
    inset 0 0 0 1px rgba(11, 35, 65, .035);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transform: rotate(var(--tape-rot, -10deg));
  transition: transform .58s cubic-bezier(.16, 1, .3, 1);
}

.archive-tape::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(11, 35, 65, .045) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0));
}

.archive-tape-a {
  --tape-top: -13px;
  --tape-left: 1.25rem;
  --tape-rot: -13deg;
  --tape-hover-rot: -9deg;
}

.archive-tape-b {
  --tape-bottom: -11px;
  --tape-right: 1.35rem;
  --tape-rot: 11deg;
  --tape-hover-rot: 7deg;
}

.tape-opposite-b .archive-tape-a {
  --tape-left: auto;
  --tape-right: 1.3rem;
  --tape-rot: 13deg;
  --tape-hover-rot: 9deg;
}

.tape-opposite-b .archive-tape-b {
  --tape-right: auto;
  --tape-left: 1.45rem;
  --tape-rot: -11deg;
  --tape-hover-rot: -7deg;
}

.tape-top-pair .archive-tape-a {
  --tape-top: -12px;
  --tape-left: 1.25rem;
  --tape-bottom: auto;
  --tape-right: auto;
  --tape-rot: -12deg;
  --tape-hover-rot: -8deg;
}

.tape-top-pair .archive-tape-b {
  --tape-top: -12px;
  --tape-right: 1.25rem;
  --tape-bottom: auto;
  --tape-left: auto;
  --tape-rot: 12deg;
  --tape-hover-rot: 8deg;
}

.tape-top-pair-alt .archive-tape-a {
  --tape-top: -12px;
  --tape-left: 1.6rem;
  --tape-bottom: auto;
  --tape-right: auto;
  --tape-rot: 10deg;
  --tape-hover-rot: 7deg;
}

.tape-top-pair-alt .archive-tape-b {
  --tape-top: -14px;
  --tape-right: 1.55rem;
  --tape-bottom: auto;
  --tape-left: auto;
  --tape-rot: -10deg;
  --tape-hover-rot: -7deg;
}

.archive-card:hover .archive-tape {
  transform: rotate(var(--tape-hover-rot, var(--tape-rot, -10deg))) translateY(-2px);
}

@media (max-width: 640px) {
  .archive-grid {
    gap: 2rem;
    padding-inline: .7rem;
  }

  .archive-card {
    width: 100%;
    max-width: 27rem;
    min-height: 26rem;
    margin-inline: auto;
    padding: 1rem 1rem 6.7rem;
  }

  .archive-photo,
  .archive-card--type .archive-photo {
    height: 15.6rem;
  }

  .archive-card::after {
    inset: 1rem;
  }

  .archive-copy {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
  }

  .archive-copy h3 {
    font-size: 1.55rem;
  }

  .archive-tape {
    width: 72px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-card,
  .archive-photo img,
  .archive-tape {
    transition: none;
  }
}

/* =========================================================
   POLAROID KART (villa türleri & lokasyonlar) — vintage,
   köşe beyaz bant, sadece başlık, scroll'da 3D drift
   ========================================================= */
.pcard {
  position: relative;
  display: block;
  width: 16rem;
  max-width: 100%;
  margin-inline: auto;
  background: #fbfdff;
  padding: 11px 11px 13px;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(11, 35, 65, .18), 0 2px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(11, 35, 65, .05);
  transform: rotate(var(--rot, -2deg));
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s ease;
  will-change: transform;
}
.pcard:hover { transform: rotate(0deg) translateY(-9px) scale(1.02); box-shadow: 0 38px 70px rgba(11, 35, 65, .26); z-index: 20; }
.pcard.reveal { opacity: 0; transform: translateY(36px) rotate(var(--rot, -2deg)); transition: opacity .85s ease, transform .65s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease; }
.pcard.reveal.is-visible { opacity: 1 !important; transform: rotate(var(--rot, -2deg)) !important; }
.pcard.reveal.is-visible:hover { transform: rotate(0deg) translateY(-9px) scale(1.02) !important; }

.pcard .pphoto { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; background: #dceffa; }
.pcard .pphoto img {
  position: absolute; inset: -22% 0; width: 100%; height: 144%; object-fit: cover;
  /* makineden yeni çıkmış / eskimiş film filtresi */
  filter: sepia(.34) saturate(.8) contrast(1.06) brightness(1.05) hue-rotate(-6deg);
  will-change: transform;
}
/* sıcak ton + vinyet (eski baskı hissi) */
.pcard .pphoto::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: multiply;
  background:
    radial-gradient(125% 115% at 50% 38%, transparent 52%, rgba(11, 35, 65, .24) 100%),
    linear-gradient(180deg, rgba(191, 234, 255, .15), rgba(85, 183, 231, .14));
}
/* film greni */
.pcard .pphoto::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pcard .ptitle {
  margin-top: 12px; text-align: center;
  font-family: 'Fraunces', serif; font-size: 1.12rem; font-weight: 600; line-height: 1.1; color: var(--ink);
}

/* Beyaz bant — TAM köşelerde, 45° çapraz */
.vtape {
  position: absolute; z-index: 9; width: 88px; height: 26px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 5px 12px rgba(11, 35, 65, .16);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.vtape::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.vtape-tl { top: -13px; left: -13px; transform: rotate(-45deg); }
.vtape-tr { top: -13px; right: -13px; transform: rotate(45deg); }
.vtape-bl { bottom: -13px; left: -13px; transform: rotate(45deg); }
.vtape-br { bottom: -13px; right: -13px; transform: rotate(-45deg); }
@media (max-width: 640px) { .vtape { width: 70px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .pcard, .vtape, .pcard .pphoto img { transition: none; } }

/* Editoryal indeks numarası & detaylar */
.idx-num { font-family: 'Fraunces', serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hairline { height: 1px; background: currentColor; opacity: .25; }
.editorial-quote { font-family: 'Fraunces', serif; line-height: 1.06; letter-spacing: -0.02em; }
.caption { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.68rem; font-weight: 700; }

/* =========================================================
   FİLTRE KONTROLLERİ (villalar) — input / select (özel ok)
   ========================================================= */
.filt-group { border-top: 1px solid rgba(10, 40, 35, .08); padding-top: .95rem; margin-top: .95rem; }
.filt-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.filt-title { font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.filt-input, .filt-select {
  width: 100%; border: 1px solid rgba(10, 40, 35, .12); background: #fff; border-radius: 12px;
  padding: .55rem .8rem; font-size: .85rem; color: var(--ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filt-input:focus, .filt-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 192, 168, .18); }
.filt-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2823' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: .95rem;
}
.filt-caret { transition: transform .3s ease; }
details[open] > summary .filt-caret { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .kenburns, .orb-sun, .orb-aqua, .marquee__track, .text-gradient { animation: none; }
  .px-layer { position: static; inset: auto; height: 100%; transform: none !important; }
  [data-parallax] { transform: none !important; }
  [data-rise], .rise-word > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
