/* ================================================================
   Geziler — liste + detay (geziler.html)
   style.css token'larını kullanır; yalnızca bu sayfaya özel.
   ================================================================ */

.trips-page { overflow-x: clip; position: relative; z-index: 1; }
.trips-page .container { max-width: 1180px; }
:where(.trips-page) section { padding: 0; } /* style.css'teki genel section boşluğunu iptal et */

.tr-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.tr-flags { letter-spacing: 0.12em; }
.tr-hearts { color: #D9667B; letter-spacing: 0.08em; white-space: nowrap; }
.tr-hearts .off { color: var(--border); }

/* ---------- Header ---------- */
.tr-header { text-align: center; margin-bottom: var(--space-xl); }
.tr-header h1 { margin: 6px 0 4px; }
.tr-header p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--text-muted); }

/* ---------- Featured hero ---------- */
.tr-featured {
  position: relative; display: block; color: #fff; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-xl);
  min-height: 460px; background: var(--charcoal); isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.tr-featured img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out); z-index: -2;
}
.tr-featured:hover img { transform: scale(1.03); }
.tr-featured::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,9,0.78) 0%, rgba(10,10,9,0.35) 55%, rgba(10,10,9,0.05) 100%),
              linear-gradient(0deg, rgba(10,10,9,0.55), transparent 50%);
}
.tr-featured-body {
  position: relative; max-width: 560px; padding: var(--space-2xl) var(--space-xl);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
}
.tr-featured .tr-eyebrow { color: var(--gold-light); }
.tr-featured h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; margin: 10px 0 12px;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.tr-featured-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; opacity: 0.88; margin-bottom: 14px; }
.tr-featured p { font-size: 1rem; line-height: 1.65; opacity: 0.92; margin-bottom: 22px; }
.tr-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 11px 22px; border-radius: var(--radius-full);
  background: #fff; color: var(--charcoal); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; transition: gap var(--duration-normal) var(--ease-out);
}
.tr-featured:hover .tr-cta { gap: 14px; }

/* ---------- Stats band ---------- */
.tr-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); margin-bottom: var(--space-2xl); overflow: hidden;
}
.tr-stat { padding: 22px 12px; text-align: center; position: relative; }
.tr-stat + .tr-stat::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border-light);
}
.tr-stat-num {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 600;
  color: var(--text-primary); line-height: 1; font-variant-numeric: lining-nums tabular-nums;
}
.tr-stat-label {
  margin-top: 6px; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
}

/* ---------- Tabs ---------- */
.tr-tabs {
  display: flex; justify-content: center; gap: 4px; margin: 0 auto var(--space-xl);
  padding: 4px; width: max-content; max-width: 100%;
  background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-full);
}
.tr-tab {
  padding: 10px 22px; border: none; background: transparent; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: background var(--duration-normal), color var(--duration-normal); white-space: nowrap;
}
.tr-tab .count {
  display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px;
  border-radius: var(--radius-full); font-size: 0.72rem; background: var(--border-light); color: var(--text-muted);
}
.tr-tab:hover { color: var(--text-primary); }
.tr-tab[aria-selected="true"] { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tr-tab[aria-selected="true"] .count { background: var(--accent); color: #fff; }
.tr-panel[hidden] { display: none; }

/* ---------- Overview map ---------- */
.tr-map-wrap { position: relative; margin-bottom: var(--space-xl); }
.tr-map {
  height: 440px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); background: var(--bg-secondary); z-index: 0;
}
.tr-legend {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center;
}
.tr-legend button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-full);
  background: var(--bg-card); color: var(--text-secondary); font-size: 0.78rem;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.tr-legend button:hover, .tr-legend button.hot { border-color: var(--accent); color: var(--text-primary); }
.tr-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Leaflet overrides */
.tr-map .leaflet-tile-pane, .tr-route-map .leaflet-tile-pane { filter: saturate(0.7) sepia(0.12) brightness(1.02); }
[data-theme="dark"] .tr-map .leaflet-tile-pane,
[data-theme="dark"] .tr-route-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.45); }
[data-theme="dark"] .leaflet-control-zoom a { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); }
[data-theme="dark"] .leaflet-control-attribution { background: rgba(30,28,25,0.8); color: var(--text-secondary); }
[data-theme="dark"] .leaflet-control-attribution a { color: var(--text-secondary); }
.tr-map .leaflet-popup-content-wrapper,
.tr-route-map .leaflet-popup-content-wrapper {
  border-radius: 12px; padding: 0; overflow: hidden;
  background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-lg);
}
.tr-map .leaflet-popup-tip, .tr-route-map .leaflet-popup-tip { background: var(--bg-card); }
.tr-map .leaflet-popup-content, .tr-route-map .leaflet-popup-content { margin: 0; font-family: var(--font-body); }
.tr-map a.leaflet-popup-close-button, .tr-route-map a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.tr-pop { width: 230px; }
.tr-pop img { width: 100%; height: 120px; object-fit: cover; display: block; }
.tr-pop-body { padding: 10px 14px 14px; }
.tr-pop-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.tr-pop-meta { font-size: 0.74rem; color: var(--text-muted); margin: 3px 0 10px; }
.tr-pop a.tr-pop-link {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 600;
}
.tr-pop-simple { padding: 10px 14px; font-size: 0.85rem; }
.tr-pop-simple small { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 2px; }

.tr-pin-photo {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff;
  background-size: cover; background-position: center; background-color: var(--paper);
  box-shadow: 0 3px 12px rgba(0,0,0,0.35); transition: transform var(--duration-normal) var(--ease-spring);
}
.tr-pin-photo:hover, .tr-pin-photo.hot { transform: scale(1.18); }
.tr-pin-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.tr-pin-num {
  width: 28px; height: 28px; border-radius: 50%; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 0.75rem/1 var(--font-body); box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.tr-pin-num.hot { transform: scale(1.25); }

/* ---------- Toolbar ---------- */
.tr-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px;
}
.tr-search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 42px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-card);
}
.tr-search:focus-within { border-color: var(--accent); }
.tr-search svg { flex-shrink: 0; color: var(--text-muted); }
.tr-search input {
  flex: 1; border: none; outline: none; background: none; min-width: 0;
  font: inherit; font-size: 0.88rem; color: var(--text-primary);
}
.tr-select {
  height: 42px; padding: 0 34px 0 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background-color: var(--bg-card); color: var(--text-primary);
  font: inherit; font-size: 0.85rem; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238C8C87' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.tr-select:focus { outline: none; border-color: var(--accent); }
.tr-view {
  display: flex; padding: 3px; gap: 2px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-card);
}
.tr-view button {
  width: 36px; height: 34px; border: none; border-radius: var(--radius-full);
  background: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
}
.tr-view button[aria-pressed="true"] { background: var(--bg-secondary); color: var(--text-primary); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tr-chip {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 0.78rem;
  transition: all var(--duration-fast);
}
.tr-chip:hover { border-color: var(--accent); color: var(--accent); }
.tr-chip[aria-pressed="true"] { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-primary); }
.tr-result-line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px;
}
.tr-reset { background: none; border: none; color: var(--accent); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trip cards grid ---------- */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.tr-card {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-normal);
}
.tr-card:hover, .tr-card.hot { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.tr-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-secondary); }
.tr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out); }
.tr-card:hover .tr-card-media img { transform: scale(1.05); }
.tr-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, var(--paper), var(--amber-glow)); }
.tr-badge {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92); color: var(--charcoal); font-size: 0.72rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tr-badge.left { left: 12px; }
.tr-badge.right { right: 12px; }
.tr-card-color { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.tr-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tr-card-loc { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tr-card-title { font-size: 1.55rem; line-height: 1.12; margin-bottom: 8px; }
.tr-card-excerpt {
  font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tr-tag {
  padding: 3px 9px; border-radius: var(--radius-full); font-size: 0.7rem;
  background: var(--bg-secondary); color: var(--text-secondary);
}
.tr-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 14px; font-size: 0.75rem; color: var(--text-muted);
}
.tr-card-foot .tr-hearts { margin-left: auto; font-size: 0.8rem; }

/* ---------- Timeline view ---------- */
.tr-timeline { position: relative; }
.tr-year { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 18px; }
.tr-year h3 { font-size: 2.4rem; line-height: 1; }
.tr-year span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.tr-tl-list { border-left: 2px solid var(--border-light); margin: 0 0 var(--space-xl) 10px; padding-left: 28px; }
.tr-tl-item {
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center;
  color: inherit; text-decoration: none; padding: 14px 0;
}
.tr-tl-item::before {
  content: ''; position: absolute; left: -36px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--tl-color, var(--accent)); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--border);
}
.tr-tl-item img, .tr-tl-item .tr-card-placeholder { width: 200px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-md); }
.tr-tl-item:hover h4 { color: var(--accent); }
.tr-tl-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }
.tr-tl-item h4 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; margin: 4px 0; transition: color var(--duration-fast); }
.tr-tl-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- Bucket / dreams ---------- */
.tr-dreams { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tr-dream {
  position: relative; padding: 26px 24px 22px; border-radius: var(--radius-lg);
  border: 1px dashed var(--border); background: var(--bg-card);
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out);
}
.tr-dream:hover { border-color: var(--accent); transform: translateY(-3px); }
.tr-dream-flag { font-size: 2rem; line-height: 1; margin-bottom: 14px; min-height: 2rem; }
.tr-dream h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 4px; }
.tr-dream-loc { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.tr-dream p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--text-secondary); line-height: 1.5; }
.tr-dream-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.tr-empty { text-align: center; padding: var(--space-2xl) var(--space-md); color: var(--text-muted); }
.tr-empty .icon { font-size: 2.4rem; opacity: 0.5; margin-bottom: 10px; }

/* ================================================================
   DETAIL
   ================================================================ */
.tr-progress {
  position: fixed; top: var(--nav-height); left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 999;
}

.tr-hero {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--space-xl)); min-height: min(78vh, 720px);
  display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--charcoal);
}
.tr-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tr-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10,10,9,0.82) 0%, rgba(10,10,9,0.25) 55%, rgba(10,10,9,0.35) 100%);
}
.tr-hero.no-photo { min-height: 360px; background: linear-gradient(135deg, var(--amber-deep), var(--lavender)); }
.tr-hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.tr-crumbs { font-size: 0.8rem; opacity: 0.85; margin-bottom: 18px; }
.tr-crumbs a { color: #fff; }
.tr-crumbs a:hover { text-decoration: underline; }
.tr-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tr-hero-tags span {
  padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tr-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; color: #fff; max-width: 900px; text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.tr-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.92rem; opacity: 0.92; }
.tr-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tr-hero-lede { max-width: 640px; margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; opacity: 0.95; }

.tr-detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px;
  margin-top: var(--space-2xl); align-items: start;
}
.tr-aside {
  position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 20px;
  max-height: calc(100vh - var(--nav-height) - 48px); overflow-y: auto; scrollbar-width: none;
}
.tr-aside::-webkit-scrollbar { display: none; }
.tr-facts, .tr-toc {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px;
}
.tr-facts h2, .tr-toc h2 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400; margin-bottom: 14px;
}
.tr-facts dl { display: grid; gap: 12px; }
.tr-fact { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.tr-fact .ico { font-size: 1rem; line-height: 1.4; text-align: center; }
.tr-fact dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.tr-fact dd { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.tr-toc ol { list-style: none; counter-reset: toc; }
.tr-toc li { counter-increment: toc; }
.tr-toc a {
  display: flex; gap: 10px; padding: 7px 0 7px 12px; font-size: 0.86rem; color: var(--text-secondary);
  border-left: 2px solid var(--border-light); transition: color var(--duration-fast), border-color var(--duration-fast);
}
.tr-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); padding-top: 2px; }
.tr-toc a:hover { color: var(--text-primary); }
.tr-toc a.active { color: var(--accent); border-left-color: var(--accent); }

.tr-favs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: var(--space-xl); }
.tr-fav {
  padding: 18px; border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--border-light);
}
.tr-fav .ico { font-size: 1.4rem; }
.tr-fav h3 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; margin: 8px 0 4px; }
.tr-fav p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.35; color: var(--text-primary); }

.tr-section { margin-top: var(--space-2xl); scroll-margin-top: calc(var(--nav-height) + 24px); }
.tr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tr-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.tr-section-head span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; }

/* Article body (admin'den gelen HTML) */
.tr-body { font-size: 1.07rem; line-height: 1.85; color: var(--text-secondary); }
.tr-body.drop > p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.6em; float: left; line-height: 0.82;
  margin: 0.06em 0.12em 0 0; color: var(--accent); font-weight: 700;
}
.tr-body p { margin-bottom: 1.35em; }
.tr-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.05rem); color: var(--text-primary); margin: 1.8em 0 0.6em;
  clear: both; scroll-margin-top: calc(var(--nav-height) + 24px);
}
.tr-body h3 { font-size: 1.3rem; color: var(--text-primary); margin: 1.5em 0 0.5em; clear: both; }
.tr-body strong { color: var(--text-primary); font-weight: 600; }
.tr-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tr-body img { cursor: zoom-in; }
.tr-body > img { width: 100%; border-radius: var(--radius-md); margin: 1.6em 0; }
.tr-body figure { margin: 1.8em 0; }
.tr-body figure img { width: 100%; border-radius: var(--radius-md); display: block; }
.tr-body figcaption { text-align: center; font-size: 0.82rem; color: var(--text-muted); padding-top: 10px; font-style: italic; }
.tr-body figure.photo-left { float: left; width: 46%; margin: 0.4em 2em 1em 0; clear: left; }
.tr-body figure.photo-right { float: right; width: 46%; margin: 0.4em 0 1em 2em; clear: right; }
.tr-body figure.photo-wide { margin-left: -48px; margin-right: -48px; }
.tr-body ul, .tr-body ol { margin: 0 0 1.4em; padding-left: 1.4em; clear: both; }
.tr-body li { margin-bottom: 0.5em; }
.tr-body ul { list-style: disc; }
.tr-body ol { list-style: decimal; }
.tr-body ul li::marker { color: var(--accent); }
.tr-body blockquote {
  margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--accent); clear: both;
  font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--text-primary);
}
.tr-body hr { border: none; text-align: center; margin: 2.4em 0; clear: both; height: auto; }
.tr-body hr::after { content: '✦  ✦  ✦'; color: var(--accent); letter-spacing: 0.4em; font-size: 0.8rem; }
.tr-body .tip-box {
  position: relative; clear: both; margin: 1.8em 0; padding: 18px 20px 18px 56px;
  border-radius: var(--radius-md); background: var(--amber-glow); border: 1px solid rgba(184,149,106,0.3);
  font-size: 0.97rem; line-height: 1.7; color: var(--text-primary);
}
.tr-body .tip-box::before { content: '💡'; position: absolute; left: 20px; top: 17px; font-size: 1.2rem; }
.tr-body::after { content: ''; display: table; clear: both; }

/* Route */
.tr-route { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.tr-route-map { height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); z-index: 0; }
.tr-stops { list-style: none; max-height: 440px; overflow-y: auto; padding-right: 4px; }
.tr-stops button {
  width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: none; text-align: left; color: var(--text-primary); font-size: 0.88rem; line-height: 1.35;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.tr-stops button:hover, .tr-stops button.active { background: var(--bg-card); border-color: var(--border-light); }
.tr-stops .n {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 700; color: #fff;
}
.tr-stops small { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* Gallery */
.tr-gallery { columns: 3 220px; column-gap: 12px; }
.tr-gallery button {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: none; background: var(--bg-secondary);
  border-radius: var(--radius-md); overflow: hidden; break-inside: avoid; cursor: zoom-in;
}
.tr-gallery img { width: 100%; display: block; transition: transform 0.6s var(--ease-out), opacity 0.3s; }
.tr-gallery button:hover img { transform: scale(1.04); opacity: 0.92; }

/* Prev / next */
.tr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--border-light); }
.tr-pager a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px;
  padding: 20px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--charcoal);
}
.tr-pager a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease-out); }
.tr-pager a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.1)); }
.tr-pager a:hover img { transform: scale(1.05); }
.tr-pager small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.tr-pager strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; margin-top: 4px; }
.tr-pager .next { text-align: right; grid-column: 2; }
.tr-back { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-xl); font-size: 0.88rem; color: var(--text-muted); }
.tr-back:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.tr-lb {
  position: fixed; inset: 0; z-index: 10000; background: rgba(8,8,7,0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--duration-normal);
}
.tr-lb.open { opacity: 1; pointer-events: auto; }
.tr-lb figure { max-width: 92vw; display: flex; flex-direction: column; align-items: center; }
.tr-lb img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; user-select: none; }
.tr-lb figcaption { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-top: 14px; text-align: center; min-height: 1.2em; }
.tr-lb-count { position: absolute; top: 22px; left: 24px; color: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 0.8rem; }
.tr-lb button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; transition: background var(--duration-fast);
}
.tr-lb button:hover { background: rgba(255,255,255,0.18); }
.tr-lb .close { top: 14px; right: 16px; }
.tr-lb .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tr-lb .next { right: 20px; top: 50%; transform: translateY(-50%); }
.tr-lb.single .prev, .tr-lb.single .next, .tr-lb.single .tr-lb-count { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tr-detail-grid { grid-template-columns: 1fr; gap: 0; }
  .tr-aside { position: static; order: -1; margin-bottom: var(--space-xl); max-height: none; overflow: visible; }
  .tr-toc { display: none; }
  .tr-facts dl { grid-template-columns: repeat(2, 1fr); }
  .tr-body figure.photo-wide { margin-left: 0; margin-right: 0; }
  .tr-stats { grid-template-columns: repeat(3, 1fr); }
  .tr-stat:nth-child(4)::before { display: none; }
  .tr-stat:nth-child(n+4) { border-top: 1px solid var(--border-light); }
}
@media (max-width: 768px) {
  .tr-featured, .tr-featured-body { min-height: 400px; }
  .tr-featured-body { padding: var(--space-xl) var(--space-lg); }
  .tr-featured::after { background: linear-gradient(0deg, rgba(10,10,9,0.85) 0%, rgba(10,10,9,0.3) 65%, rgba(10,10,9,0.1) 100%); }
  .tr-stat-num { font-size: 1.9rem; }
  .tr-map { height: 320px; }
  .tr-grid { grid-template-columns: 1fr; gap: 22px; }
  .tr-tl-item { grid-template-columns: 110px 1fr; gap: 14px; }
  .tr-tl-item img, .tr-tl-item .tr-card-placeholder { width: 110px; }
  .tr-tl-item h4 { font-size: 1.2rem; }
  .tr-tl-item p { display: none; }
  .tr-route { grid-template-columns: 1fr; }
  .tr-route-map { height: 320px; }
  .tr-stops { max-height: none; }
  .tr-body figure.photo-left, .tr-body figure.photo-right { float: none; width: 100%; margin: 1.6em 0; }
  .tr-pager { grid-template-columns: 1fr; }
  .tr-pager .next { grid-column: 1; }
  .tr-hero-inner { padding-bottom: 36px; }
  .tr-lb .prev, .tr-lb .next { display: none; }
}
@media (max-width: 480px) {
  .tr-stats { grid-template-columns: repeat(2, 1fr); }
  .tr-stat:nth-child(odd)::before { display: none; }
  .tr-stat:nth-child(4)::before { display: block; }
  .tr-stat:nth-child(n+3) { border-top: 1px solid var(--border-light); }
  .tr-tab { padding: 9px 14px; font-size: 0.8rem; }
  .tr-toolbar .tr-select { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-card, .tr-card-media img, .tr-featured img, .tr-gallery img, .tr-pager a img { transition: none !important; }
}

/* ================================================================
   Planlanan geziler + ülke boyama
   ================================================================ */
.tr-upcoming {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center;
  padding: 14px 22px 14px 14px; margin-bottom: 22px; color: inherit; text-decoration: none;
  border: 1px dashed var(--lavender); border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(142,123,184,0.10), rgba(142,123,184,0.02));
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal);
}
.tr-upcoming:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tr-up-media { width: 150px; aspect-ratio: 3/2; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.tr-up-media img { width: 100%; height: 100%; object-fit: cover; }
.tr-upcoming .tr-eyebrow { color: var(--lavender); }
.tr-up-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 4px 0 6px; }
.tr-up-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--text-secondary); }
.tr-up-prog { height: 6px; border-radius: 99px; background: var(--border-light); overflow: hidden; margin-top: 10px; max-width: 320px; }
.tr-up-prog span { display: block; height: 100%; background: var(--lavender); border-radius: inherit; }
.tr-up-prog-txt { font-size: 0.72rem; color: var(--text-muted); }
.tr-up-count { text-align: center; min-width: 110px; }
.tr-up-count strong { display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--lavender); font-variant-numeric: lining-nums; }
.tr-up-count span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.tr-badge.plan { background: var(--lavender); color: #fff; }
.tr-plan-dot { color: var(--lavender); }
.tr-card.planned { border-style: dashed; border-color: var(--lavender-light); }
.tr-pin-photo { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.tr-pin-photo.planned { border-style: dashed !important; }
.tr-map.tr-zoomed-out .tr-pin-dot { display: none; }

.tr-map-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: 0.76rem; color: var(--text-secondary); }
.tr-map-key:empty { display: none; }
.tr-map-key span { display: inline-flex; align-items: center; gap: 7px; }
.tr-map-key .sw { width: 16px; height: 11px; border-radius: 3px; display: inline-block; }
.tr-map-key .sw.visited { background: rgba(184,149,106,0.45); border: 1.5px solid #B8956A; }
.tr-map-key .sw.planned { background: rgba(142,123,184,0.3); border: 1.5px dashed #8E7BB8; }
.tr-map-key .sw.dream { background: rgba(90,138,106,0.08); border: 1.5px dashed #5A8A6A; }
.leaflet-tooltip.tr-tip { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); padding: 8px 12px; font-family: var(--font-body); }
.leaflet-tooltip.tr-tip::before { display: none; }
.tr-country-tip strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.tr-country-tip div { font-size: 0.76rem; color: var(--text-secondary); }

.tr-dream.linked { border-style: solid; }
.tr-dream-link { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.76rem; font-weight: 600; }
.tr-dream-link.plan { background: rgba(142,123,184,0.14); color: var(--lavender); }
.tr-dream-link.done { background: var(--amber-glow); color: var(--accent); }

.tr-hero-tags .plan { background: rgba(142,123,184,0.85) !important; border-color: rgba(255,255,255,0.4) !important; font-weight: 600; }
.tr-countdown, .tr-checklist {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px;
}
.tr-countdown { border-color: var(--lavender-light); background: linear-gradient(160deg, rgba(142,123,184,0.12), var(--bg-card) 70%); }
.tr-countdown h2, .tr-checklist h2 {
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 400; margin-bottom: 14px;
}
.tr-cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.tr-cd-grid strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--lavender); font-variant-numeric: lining-nums tabular-nums; }
.tr-cd-grid span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.tr-checklist .tr-up-prog { margin: 0 0 14px; max-width: none; }
.tr-checklist ul { list-style: none; display: grid; gap: 9px; }
.tr-checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.88rem; line-height: 1.4; color: var(--text-primary); }
.tr-checklist li .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #fff; margin-top: 1px; }
.tr-checklist li.done { color: var(--text-muted); text-decoration: line-through; }
.tr-checklist li.done .box { background: var(--lavender); border-color: var(--lavender); }

@media (max-width: 768px) {
  .tr-upcoming { grid-template-columns: 90px 1fr; padding: 12px; gap: 14px; }
  .tr-up-media { width: 90px; }
  .tr-up-count { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
  .tr-up-count strong { display: inline; font-size: 2.2rem; }
}

.tr-dream-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tr-dream-facts span { padding: 3px 10px; border-radius: 99px; background: var(--bg-secondary); font-size: 0.72rem; color: var(--text-secondary); }
