/* =========================================================
   Şebeke — Şeki şebeke camı ve halı geometrisinden gelen görsel dil.
   Motif süs değil çerçevedir: az ve ölçülü kullanılır.
   ========================================================= */
:root {
  /* Şebeke camı: ceviz çerçeve + kök boya, safran, firuze camlar */
  --shebeke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%230B2E3F'/%3E%3Cg stroke='%23C9A24B' stroke-width='1'%3E%3Cpath d='M24 0 48 24 24 48 0 24Z' fill='%230A5560'/%3E%3Cpath d='M14 14H34V34H14Z' fill='%230B2E3F'/%3E%3Cpath d='M24 10 38 24 24 38 10 24Z' fill='%230E7C86'/%3E%3Cpath d='M24 17 31 24 24 31 17 24Z' fill='%23C8502F'/%3E%3C/g%3E%3C/svg%3E");
  /* Halı kenar şeridi: sıralı baklava */
  --bordur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 10 0 20 4 10 8Z' fill='%23C9A24B'/%3E%3C/svg%3E");
}

.btn { border-radius: 10px; }

/* Teklif butonları WhatsApp'a gider; simge bunu önceden söyler. */
.btn[data-quote]::before {
  content: ''; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2a9.8 9.8 0 0 0-8.4 14.9L2.3 21.8l4.8-1.3A9.8 9.8 0 1 0 12 2.2zm0 1.8a8 8 0 1 1-4.2 14.8l-.3-.2-2.8.8.8-2.7-.2-.3A8 8 0 0 1 12 4zM8.7 7.3c-.2 0-.5 0-.8.4-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 5 4.4 2.5 1 3 .8 3.5.7.5 0 1.7-.7 2-1.4.2-.7.2-1.3.1-1.4l-.4-.3-2-1c-.3-.1-.5-.1-.7.2l-.9 1.1c-.2.2-.3.2-.6.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2a9.8 9.8 0 0 0-8.4 14.9L2.3 21.8l4.8-1.3A9.8 9.8 0 1 0 12 2.2zm0 1.8a8 8 0 1 1-4.2 14.8l-.3-.2-2.8.8.8-2.7-.2-.3A8 8 0 0 1 12 4zM8.7 7.3c-.2 0-.5 0-.8.4-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 5 4.4 2.5 1 3 .8 3.5.7.5 0 1.7-.7 2-1.4.2-.7.2-1.3.1-1.4l-.4-.3-2-1c-.3-.1-.5-.1-.7.2l-.9 1.1c-.2.2-.3.2-.6.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer__fx a { text-decoration: underline; }

/* ---------- hero: gecede yanan bir şebeke penceresi; her cam bir bölgeye açılır ---------- */
.hero {
  --win-w: min(44%, calc((min(100svh, 860px) - var(--header-h) - 28px) / 1.3), 600px);
  --glow: rgba(200, 80, 47, .62); --glow-2: rgba(201, 162, 75, .2);
  min-height: min(calc(100svh - var(--header-h)), 820px);
  border-radius: 16px; background: #0B2E3F;
}
body[data-mode="outbound"] .hero { --glow: rgba(14, 124, 134, .7); --glow-2: rgba(191, 230, 232, .14); }
.hero__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
/* Pencerenin arkasından taşan ateş ışığı */
.hero__sky::before {
  content: ''; position: absolute; right: -14%; bottom: -24%; width: 84%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow) 35%, var(--glow-2) 72%, transparent);
  transition: background .8s var(--ease);
}
/* Seçilen camın fotoğrafı fonda soluk belirir */
.hero__ghost, .hero__ghost-img { position: absolute; inset: 0; }
.hero__ghost-img {
  background-size: cover; background-position: center; opacity: 0; filter: saturate(.7);
  transition: opacity .7s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero__ghost-img.is-on { opacity: .13; }
/* Uçak ve rotası: pencerenin arkasından geçer */
.hero__flight { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hero__flight svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flight__line { stroke: #E3C87E; stroke-width: 1.5; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .9; }
.flight__plane { position: absolute; left: 0; top: 0; width: 30px; height: 30px; color: #fff; offset-rotate: auto 90deg; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.win-rings { position: absolute; right: 40px; bottom: 0; width: var(--win-w); overflow: visible; }
.win-rings path { stroke: #C9A24B; stroke-width: .25; vector-effect: none; }
.win-rings path:nth-child(1) { opacity: .4; } .win-rings path:nth-child(2) { opacity: .24; } .win-rings path:nth-child(3) { opacity: .12; }

.win { position: absolute; right: 40px; bottom: 0; z-index: 1; width: var(--win-w); aspect-ratio: 100 / 130; }
.win__defs { position: absolute; }
.win__panes { position: absolute; inset: 0; overflow: hidden; clip-path: url(#winArch); background: #0A5560; }
.pane {
  position: absolute; width: 50%; height: 38.4615%; padding: 0; border: 0; overflow: hidden; background: #0A5560;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); cursor: pointer;
  transition: filter .35s var(--ease);
  animation: paneIn .8s var(--ease) calc(.25s + var(--i, 0) * 70ms) both;
}
.pane img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; translate: 0 calc(var(--sy, 0px) * -.04); transition: scale .6s var(--ease); }
.pane--glass { cursor: default; background: #0A5560; }
.pane--glass[data-tone="1"] { background: #C8502F; }
.pane--glass[data-tone="2"] { background: #C9A24B; }
.win__panes:has(button.pane:focus-visible) .pane:not(:focus-visible) { filter: saturate(.45) brightness(.55); }
button.pane:focus-visible img { scale: 1.2; }
button.pane:focus-visible { outline: 0; filter: brightness(1.15); }
@media (hover: hover) {
  .win__panes:has(button.pane:hover) .pane:not(:hover) { filter: saturate(.45) brightness(.55); }
  button.pane:hover img { scale: 1.2; }
}
.win__lattice { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.win__lines path { stroke-width: .7; stroke: #C9A24B; stroke-dasharray: 1; animation: latticeDraw 1.5s var(--ease) both; }
.win__stars { fill: #E3C87E; animation: fadeIn .6s var(--ease) 1.1s both; }
.win__frame { stroke: #C9A24B; stroke-width: 1; }
.win__cap {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px);
  padding: 8px 16px; border-radius: 10px; pointer-events: none;
  background: #fff; color: #0B2E3F; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(11, 46, 63, .35);
}
.win__cap .ic { width: 16px; height: 16px; color: #AD4225; flex: none; }
.win__cap.is-named { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
@keyframes paneIn { from { opacity: 0; scale: .82; } to { opacity: 1; scale: 1; } }
@keyframes latticeDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero__content { padding: 56px 0; }
.hero__content > * { max-width: min(600px, 50vw - 64px); }
.hero__title { font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1.04; }
.hero .eyebrow--light { padding: 0; background: none; border: 0; backdrop-filter: none; color: #E3C87E; }
.hero .mode-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.hero .mode-card { border-radius: 12px; backdrop-filter: none; background: transparent; }
.hero .mode-card:hover { background: rgba(255, 255, 255, .08); }
.hero .mode-card[aria-pressed="true"] { background: #fff; }
.hero .mode-card__ic { width: 40px; height: 40px; border-radius: 10px; }
.hero .mode-card { gap: 12px; }
.hero .mode-card strong { font-size: 1.05rem; }
.hero .search { border-radius: 14px; background: #fff; }
.hero .search__field { color: #1F2D3A; --muted: #5F6E7B; }
.hero .search__field input::placeholder { color: #5F6E7B; opacity: 1; }

@media (max-width: 980px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__sky::before { right: -30%; width: 160%; }
  .win-rings { display: none; }
  .win { position: relative; right: auto; width: min(100% - 48px, 460px); margin: 8px auto 0; }
  .hero__content { padding: 48px 0 24px; }
  .hero__content > * { max-width: none; }
  .hero__title { font-size: clamp(2.6rem, 6.4vw, 4.2rem); }
}

/* ---------- tur kartı: fotoğraf, kenar şeridi, az bilgi ---------- */
.tour-card { border-radius: 12px; box-shadow: none; }
.tour-card .card__media { aspect-ratio: 3 / 2; }
.tour-card .card__media::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--night) var(--bordur) center / 20px 8px repeat-x;
}
.tour-card .rec-tag {
  position: absolute; top: 12px; left: 12px; margin: 0; padding: 4px 10px; border-radius: 6px;
  background: #fff; color: #AD4225;
}
.tour-card .card__body { padding: 20px 22px 20px; }
.tour-card .card__loc { letter-spacing: .02em; }
.tour-card .card__title { margin: 6px 0 8px; }
.tour-card .card__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tour-card .card__facts { margin: 12px 0 18px; }
.tour-card .card__foot { border-top-style: solid; }
.tour-card .price strong { font-size: 1.4rem; }

/* ---------- Tarihi Yerler: kemerli şebeke çerçevesi ---------- */
.story__media { border-radius: 0; overflow: visible; box-shadow: none; background: none; }
.story__arch { position: absolute; inset: 0; display: block; overflow: hidden; clip-path: url(#storyArch); background: var(--soft); }
.story__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V30C0 15 30 8 50 0 70 8 100 15 100 30V100Z' fill='none' stroke='%23C9A24B' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.story-card__media::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--night) var(--bordur) center / 20px 8px repeat-x;
}
.story-card .story__era { bottom: 20px; }

/* ---------- bölge şeridi: pencerenin küçük baklava camları ---------- */
.region-rail { grid-auto-columns: minmax(118px, 1fr); }
.region-rail .region {
  height: auto; padding: 4px 0 0; display: grid; justify-items: center; align-content: start; gap: 10px;
  overflow: visible; background: none; box-shadow: none; color: var(--text); text-align: center;
}
.region-rail .region:hover { box-shadow: none; }
.region-rail .region::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 116px; height: 116px; margin-left: -58px;
  background: #C9A24B; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: background-color .3s var(--ease);
}
.region-rail .region::after { display: none; }
.region-rail .region img, .region-rail .region__buta {
  position: relative; inset: auto; width: 108px; height: 108px; flex: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.region-rail .region__buta { background-color: #0E7C86; background-size: 36px; }
.region-rail .region__label { position: relative; inset: auto; }
.region-rail .region__label small { color: var(--muted); opacity: 1; }
.region-rail .region[aria-pressed="true"] { box-shadow: none; }
.region-rail .region[aria-pressed="true"]::before { background: var(--accent); }
.region-rail .region[aria-pressed="true"] strong { color: var(--accent-600); }
[data-theme="dark"] .region-rail .region[aria-pressed="true"] strong { color: var(--accent); }

/* ---------- İlham Al: altta ince halı şeridi ---------- */
.insp::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none;
  background: var(--night) var(--bordur) center / 20px 8px repeat-x;
}

/* ---------- footer: üst kenarda tek şebeke bandı ---------- */
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px;
  background: var(--shebeke) center top / 24px 24px repeat-x;
  border-bottom: 1px solid #C9A24B;
}

/* Çok dar telefonlarda büyüyen logo üst şeridi taşırmasın. */
@media (max-width: 360px) {
  .logo { gap: 6px; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__text { font-size: 19px; }
  .btn--quote { margin-left: 0; padding-inline: 10px; font-size: 13px; }
}

/* ---------- hareket: açılışta bir kez, sonrası ziyaretçinin kaydırmasıyla.
   Sürekli dönen animasyon yok; style.css'teki reduced-motion kuralı hepsini kapatır. ---------- */

/* Üst şerit: sayfada ilerledikçe halı kenarı dokunur. */
.weave {
  position: absolute; left: 0; right: 0; bottom: -5px; height: 8px; pointer-events: none;
  background: var(--bordur) left center / 20px 8px repeat-x;
  clip-path: inset(0 calc(100% - var(--weave, 0%)) 0 0);
}

/* Başlık altı şeridi, başlık görününce dokunur. */
.section-head .section-title::after {
  content: ''; display: block; width: 100px; height: 8px; margin-top: 16px;
  background: var(--bordur) left center / 20px 8px repeat-x;
  transition: clip-path .9s var(--ease) .3s;
}
.section-head--center .section-title::after { margin-inline: auto; }
.js .section-head.reveal:not(.is-visible) .section-title::after { clip-path: inset(0 100% 0 0); }

/* Fotoğraflar kaydırdıkça perde gibi açılır. */
.tour-card .card__media { transition: clip-path .9s var(--ease) var(--d, 0ms); }
.js .tour-card.reveal:not(.is-visible) .card__media { clip-path: inset(0 0 100% 0); }
.story__media { transition: clip-path 1.1s var(--ease); }
.js .story.reveal:not(.is-visible) .story__media { clip-path: inset(0 100% 0 0); }
.js .story--rev.reveal:not(.is-visible) .story__media { clip-path: inset(0 0 0 100%); }
.story__media img { scale: 1.14; translate: 0 var(--py, 0%); }

/* Kartın üstüne gelince şerit akar, fotoğraf yaklaşır. */
.tour-card:hover .card__media::after { animation: bordurFlow 1.4s linear infinite; }
@keyframes bordurFlow { to { background-position-x: 20px; } }

@media (max-width: 980px) {
  .pane img { translate: none; }
  .story__media img { scale: 1; translate: none; }
}

/* Biniş kartının dar bölümünde buton kenarlara değmesin. */
.ticket .btn[data-quote] { padding-inline: 12px; font-size: 13px; gap: 6px; }
.ticket .btn[data-quote]::before { width: 15px; height: 15px; }
