/* =========================================================
   INBOUND / OUTBOUND — iki ayrı alan tasarımı
   ========================================================= */
/* menü: tek satır, biraz daha geniş başlık alanı */
.header .container { width: min(1320px, 100% - 48px); }
.nav__links a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1320px) {
  .nav__links a { padding: 8px 9px; font-size: 14px; }
  .user-chip span { display: none; }
  .user-chip { padding: 8px 10px; }
}

/* ---------- sakin tasarım: arka plan, işaretler, kart içi bilgiler ---------- */
.pin-wrap.is-active .pin::after { animation: ring 2.8s var(--ease) infinite; }
.rec-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--accent-600); }
[data-theme="dark"] .rec-tag { color: var(--accent); }
.rec-tag .ic { width: 13px; height: 13px; }
.wx-inline { color: var(--muted); font-size: 13px; }
.ticket__meta .wx-inline { align-self: flex-end; }

/* ---------- harita: "tümünü gör" ---------- */
.map-reset {
  position: absolute; top: 14px; right: 14px; z-index: 500; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s, color .25s;
}
.map-reset.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.map-reset:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .map-reset:hover { color: #052129; }
.map-reset .ic { width: 18px; height: 18px; }

body[data-mode="inbound"] #outbound,
body[data-mode="outbound"] #inbound { display: none; }
.zone { animation: fadeUp .6s var(--ease) both; }

/* ---------- hero mode switch ---------- */
.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 12px; margin-top: 36px; }
.mode-switch + .search { margin-top: 16px; }
.mode-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); text-align: left; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mode-card:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.mode-card__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .18); transition: background-color .35s; }
.mode-card__txt { display: grid; line-height: 1.25; min-width: 0; }
.mode-card small { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.mode-card strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.mode-card__txt > span { font-size: 12.5px; opacity: .75; }
.mode-card[aria-pressed="true"] { background: #fff; color: #0B2E3F; border-color: #fff; box-shadow: var(--shadow-lg); }
.mode-card--inbound[aria-pressed="true"] .mode-card__ic { background: #0E7C86; color: #fff; }
.mode-card--outbound[aria-pressed="true"] .mode-card__ic { background: var(--accent); color: #fff; }

/* ---------- INBOUND: kum zemin + buta (badem) motifi ---------- */
.region-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 14px;
  overflow-x: auto; padding: 8px 6px 16px; margin: 0 -6px 30px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.region {
  position: relative; height: 176px; border-radius: var(--radius); overflow: hidden; text-align: left; color: #fff;
  background: #0B2E3F; scroll-snap-align: start; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.region::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11, 46, 63, .88)); }
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region:hover img { transform: scale(1.04); }
.region__label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; line-height: 1.25; }
.region__label strong { font-size: 15px; font-weight: 600; }
.region__label small { font-size: 12px; opacity: .8; }
.region[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--primary); }
.region--all { background: linear-gradient(140deg, #0E7C86, #0B2E3F); }
.region--all::after { display: none; }
.region__buta {
  position: absolute; inset: 0; background-size: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.25' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M22 8c11 3 18 13 18 24 0 12-9 21-20 21-7 0-12-5-12-11 0-6 4-10 9-10 4 0 7 3 7 7'/%3E%3C/g%3E%3C/svg%3E");
}
.ribbon {
  position: absolute; left: 14px; top: 48px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.ribbon .ic { width: 12px; height: 12px; }

/* ---------- OUTBOUND: gece mavisi + biniş kartı ---------- */
.zone--outbound { margin: 0 16px; border-radius: var(--radius-lg); background: #0B2E3F; color: #E6EEF2; overflow: hidden; isolation: isolate; }
[data-theme="dark"] .zone--outbound { background: #05141d; }
.zone--outbound::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.6px); background-size: 48px 48px;
}
.zone--outbound::after {
  content: ''; position: absolute; z-index: -1; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%;
  border: 2px dashed rgba(200, 80, 47, .25);
}
.zone--outbound .section-title { color: #fff; }
.zone--outbound .section-text, .zone--outbound .search-note, .zone--outbound .empty { color: rgba(230, 238, 242, .72); }
.chips--left { justify-content: flex-start; margin-bottom: 36px; }
.chip--dark { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.chip--dark small { font-size: 11.5px; padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.chip--dark:hover { border-color: var(--accent); color: #fff; }
.chip.chip--dark[aria-pressed="true"], [data-theme="dark"] .chip.chip--dark[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 26px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) 150px; border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  transition: transform .45s var(--ease), opacity .8s var(--ease) var(--d, 0ms);
}
.js .ticket.reveal.is-visible:hover, .ticket:hover { transform: translateY(-5px) rotate(-.3deg); transition-delay: 0ms; }
.ticket__media { position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); background: var(--soft); min-height: 220px; }
.ticket__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ticket:hover .ticket__media img { transform: scale(1.04); }
.ticket__media .pill { top: auto; bottom: 12px; left: 12px; }
.ticket__media .wx-chip { top: 12px; bottom: auto; left: 12px; }
.ticket__media .heart { width: 36px; height: 36px; top: 10px; right: 10px; }
.ticket__media .heart .ic { width: 18px; height: 18px; }
.ticket__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.ticket__route { display: flex; align-items: center; gap: 12px; }
.ticket__route > div { display: grid; line-height: 1.15; }
.ticket__route small, .ticket__meta small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket__route strong { font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; }
.ticket__route span { font-size: 12px; color: var(--muted); }
.ticket__to { text-align: right; }
.ticket__path { position: relative; flex: 1; height: 22px; display: grid; place-items: center; color: var(--accent); }
.ticket__path::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
.ticket__path .ic { position: relative; width: 22px; height: 22px; padding: 0 2px; background: var(--surface); transform: rotate(90deg); transition: transform .6s var(--ease); }
.ticket:hover .ticket__path .ic { transform: translateX(14px) rotate(90deg); }
.ticket h3 { font-size: 1.25rem; margin-top: 4px; }
.ticket__body > p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket__meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; margin-top: auto; padding-top: 8px; }
.ticket__meta strong { display: block; font-size: 13.5px; font-weight: 600; }
.ticket__stub {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 20px 14px;
  text-align: center; border-left: 2px dashed var(--border); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
}
.ticket__stub::before, .ticket__stub::after { content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: #0B2E3F; }
[data-theme="dark"] .ticket__stub::before, [data-theme="dark"] .ticket__stub::after { background: #05141d; }
.ticket__stub::before { top: -11px; }
.ticket__stub::after { bottom: -11px; }
.ticket__stub small { color: var(--muted); font-size: 12px; }
.ticket__stub strong { font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.ticket__barcode {
  width: 88%; height: 26px; margin-top: 6px; border-radius: 2px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px);
}

/* ---------- map legend as mode toggle ---------- */
.map-legend__btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 999px; font-size: 13px; opacity: .55; transition: opacity .25s; }
.map-legend__btn:hover { opacity: .85; }
.map-legend__btn[aria-pressed="true"] { opacity: 1; font-weight: 600; }

/* ---------- heritage: more places ---------- */
.subhead { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-align: center; margin: 110px 0 36px; }
.story__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.story-card {
  display: flex; flex-direction: column; text-align: left; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease) var(--d, 0ms);
}
.js .story-card.reveal.is-visible:hover, .story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); transition-delay: 0ms; }
.story-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card .story__era { left: 14px; bottom: 14px; padding: 6px 12px; font-size: 13px; }
.story-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.story-card__body small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.story-card__body small .ic { width: 14px; height: 14px; }
.story-card__body strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.story-card__lead { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .link-btn { margin-top: auto; padding-top: 6px; }
/* Son satırı dolduran geniş kart: fotoğraf solda, metin sağda */
.story-card--wide { flex-direction: row; }
.story-card--wide .story-card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 240px; }
.story-card--wide .story-card__body { justify-content: center; padding: 28px 32px; }
.story-card--wide .story-card__body strong { font-size: 1.5rem; }
.story-card--wide .story-card__lead { -webkit-line-clamp: 4; max-width: 60ch; }
.story-card--wide .link-btn { margin-top: 10px; }

.credit {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; max-width: 62%; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; color: #fff; background: rgba(0, 0, 0, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8;
}
.credit:hover { opacity: 1; }

.modal--wide .modal__dialog { width: min(860px, 100%); padding: 0; }
.modal--wide .modal__close { z-index: 2; background: var(--surface); box-shadow: var(--shadow-sm); }
.story-modal__media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.story-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.story-modal__body { padding: 28px 32px 32px; }
.story-modal__body h3 { margin: 10px 0 14px; }
.story-modal__body > p { color: var(--muted); }
.story-modal__body > p + p { margin-top: 12px; }
.story-modal__tour { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 4px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.story-modal__tour img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.story-modal__tour small { display: block; color: var(--muted); font-size: 12px; }
.story-modal__tour strong { display: block; font-size: 15px; line-height: 1.3; }
.story-modal__tour span { font-size: 12.5px; color: var(--muted); }
.credit-list { display: grid; gap: 12px; margin-top: 18px; font-size: 13.5px; }
.credit-list li { display: grid; gap: 2px; }
.credit-list a { color: var(--primary); word-break: break-word; }
.credit-list small { color: var(--muted); }

@media (max-width: 720px) {
  .zone--outbound { margin: 0 8px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__media { min-height: 0; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; }
  .ticket__stub { flex-direction: row; flex-wrap: wrap; justify-content: space-between; border-left: 0; border-top: 2px dashed var(--border); border-radius: 0 0 var(--radius) var(--radius); }
  .ticket__stub::before { top: -12px; left: -11px; }
  .ticket__stub::after { top: -12px; bottom: auto; left: auto; right: -11px; }
  .ticket__barcode { display: none; }
  .subhead { margin-top: 80px; }
  .story-modal__body { padding: 22px 20px 24px; }
  .story-modal__tour { grid-template-columns: 56px minmax(0, 1fr); }
  .story-modal__tour .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .mode-switch { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mode-card { padding: 12px; gap: 10px; }
  .mode-card__ic { width: 36px; height: 36px; border-radius: 12px; }
  .mode-card strong { font-size: .98rem; }
  .mode-card__txt > span { display: none; }
  .ticket__route strong { font-size: 1.3rem; }
}
