/* Seyahat profilim sayfası */
.tp { --tp-panel-w: 380px; }

/* ---------------------------------------------------------------- Kahraman */
.tp-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); margin-bottom: 26px; border-radius: 28px; color: #fff; background: radial-gradient(760px 340px at 105% -15%, rgba(247, 97, 38, .5), transparent 60%), radial-gradient(500px 300px at -10% 120%, rgba(60, 120, 255, .28), transparent 60%), linear-gradient(135deg, #021536 0%, #0a2458 58%, #16356e 100%); box-shadow: var(--shadow-lg); }
.tp-hero .fu-eyebrow { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.tp-hero h1 { color: #fff; margin-bottom: 14px; max-width: 760px; }
.tp-hero h1 em { font-style: normal; color: var(--sun); }
.tp-hero .fu-lead { color: rgba(255, 255, 255, .88); max-width: 680px; }
.tp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tp-hero-actions .fu-btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.tp-hero-actions .fu-btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.tp-hero-actions [hidden] { display: none; }

.tp-meter { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.tp-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sun) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); transition: background .3s; }
.tp-ring > div { width: 74px; height: 74px; border-radius: 50%; background: #0a2458; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; gap: 1px; }
.tp-ring strong { font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }
.tp-ring small { font-size: .8rem; opacity: .8; }
.tp-meter-text b { display: block; font-size: 1.05rem; }
.tp-meter-text span { font-size: .84rem; color: rgba(255, 255, 255, .82); line-height: 1.35; display: block; margin-top: 2px; }
.tp-meter-big { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.tp-meter-big strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; color: var(--sun); }
.tp-meter-big span { font-size: .9rem; color: rgba(255, 255, 255, .9); }

/* ---------------------------------------------------------------- Yerleşim */
.tp-layout { display: grid; grid-template-columns: var(--tp-panel-w) minmax(0, 1fr); gap: 26px; align-items: start; }
.tp-results { min-width: 0; }

/* ---------------------------------------------------------------- Filtre paneli */
.tp-panel { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.tp-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.tp-panel-head h2 { margin: 0; font-size: 1.15rem; }
.tp-panel-close { display: none; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--line-2); font-size: 1.4rem; cursor: pointer; }
.tp-form { overflow: auto; padding: 0 12px 6px; scrollbar-width: thin; flex: 1; }
.tp-sec { border-top: 1px solid var(--line-2); }
.tp-sec > summary { display: flex; align-items: center; gap: 10px; padding: 14px 8px; cursor: pointer; list-style: none; font-weight: 750; color: var(--ink); user-select: none; }
.tp-sec > summary::-webkit-details-marker { display: none; }
.tp-sec > summary::after { content: ""; margin-left: 4px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.tp-sec[open] > summary::after { transform: rotate(-135deg); }
.tp-sec-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); font-size: 1.05rem; flex: none; }
.tp-sec-t { flex: 1; }
.tp-sec-n { order: 3; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .78rem; font-weight: 800; display: none; place-items: center; align-items: center; justify-content: center; }
.tp-sec-n.is-on { display: inline-flex; }
.tp-sec-b { padding: 0 8px 18px; }
.tp-note { margin: 0 0 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.tp-sub { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 8px; font-weight: 750; }
.tp-sec-b > .tp-sub:first-child { margin-top: 0; }
.tp-panel-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.tp-panel-foot .fu-btn-block { flex: 1; }
.tp-legal { margin: 0; padding: 0 18px 14px; font-size: .74rem; color: var(--muted); line-height: 1.4; }

.tp-search { width: 100%; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; background: var(--bg); }
.tp-search:focus { outline: 0; border-color: var(--brand); background: #fff; }
.tp .fu-chips.is-scroll { max-height: 188px; overflow: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.tp .fu-chip[hidden] { display: none; }
.tp-preset { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .86rem; font-weight: 650; color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.tp-preset small { font-weight: 500; opacity: .8; }
.tp-preset:hover { border-color: #c5d2e6; }
.tp-preset.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tp-quick { margin: 10px 0 12px; }

.tp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-card { position: relative; }
.tp-card input { position: absolute; opacity: 0; }
.tp-card span { display: flex; flex-direction: column; gap: 1px; height: 100%; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.tp-card i { font-style: normal; font-size: 1.3rem; }
.tp-card b { font-size: .88rem; }
.tp-card small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.tp-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(2, 21, 54, .08); }
.tp-card.is-green input:checked + span { border-color: #1aaa6a; background: #e8f8ef; box-shadow: 0 0 0 3px rgba(26, 170, 106, .15); }
.tp-card.is-bordo input:checked + span { border-color: #a3324a; background: var(--rose-soft); box-shadow: 0 0 0 3px rgba(163, 50, 74, .12); }
.tp-card input:focus-visible + span { outline: 3px solid rgba(247, 97, 38, .4); outline-offset: 1px; }
.tp-visas { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg); }
.tp-visas[hidden] { display: none; }

.tp-ticks { display: grid; gap: 8px; }
.tp-ticks.is-row { display: flex; flex-wrap: wrap; margin-bottom: 4px; }
.tp-tick { position: relative; }
.tp-tick input { position: absolute; opacity: 0; }
.tp-tick span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; width: 100%; background: var(--surface); }
.tp-tick span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #b8c4d6; flex: none; background: #fff; transition: background .12s, border-color .12s; }
.tp-tick small { color: var(--muted); font-weight: 500; }
.tp-tick input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.tp-tick input:checked + span::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--brand); }
.tp-tick input:focus-visible + span { outline: 3px solid rgba(247, 97, 38, .4); outline-offset: 1px; }
.tp-ticks.is-row .tp-tick span { width: auto; }

.tp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tp-two label { display: grid; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.tp-two input { width: 100%; padding: 10px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--surface); }
.tp-two input:focus { outline: 0; border-color: var(--brand); }
.tp-range-out { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.tp-range-out b { color: var(--brand-2); font-size: 1.05rem; }
.tp input[type=range].fu-range { width: 100%; accent-color: #c5d0d8; }
.tp input[type=range].fu-range.is-set { accent-color: var(--accent); }

.tp-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 4px; background: var(--line-2); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.tp-seg label { position: relative; }
.tp-seg input { position: absolute; opacity: 0; }
.tp-seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 10px; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; line-height: 1.2; }
.tp-seg input:checked + span { background: #fff; color: var(--brand-2); box-shadow: 0 1px 4px rgba(16, 24, 40, .14); }
.tp-seg input:focus-visible + span { outline: 3px solid rgba(247, 97, 38, .4); }

/* ---------------------------------------------------------------- Sonuç çubuğu */
.tp-bar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; margin-bottom: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line-2); }
.tp-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 750; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.tp-tab b { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .78rem; text-align: center; }
.tp-tab.is-on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(2, 21, 54, .25); }
.tp-tab.is-on b { background: var(--sun); color: var(--ink); }
.tp-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.tp-sort[hidden] { display: none; }
.tp-sort select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; color: var(--ink); }
.tp-open-filters { display: none; }
.tp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .72rem; font-weight: 800; }
.tp-badge[hidden] { display: none; }

.tp-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tp-active[hidden], .tp-summary[hidden], .tp-empty[hidden], .tp-more[hidden] { display: none; }
.tp-active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid #cfdaf0; background: var(--brand-soft); color: var(--brand-2); font-size: .84rem; font-weight: 650; cursor: pointer; }
.tp-active-chip span { opacity: .6; font-size: .72rem; }
.tp-active-chip:hover { background: #d5e0f2; }
.tp-active-chip:hover span { opacity: 1; }
.tp-link { background: none; border: 0; padding: 4px 6px; color: var(--accent-2); font-weight: 700; font-size: .86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tp-summary { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-ink); font-size: .95rem; }
.tp-summary b { color: var(--ink); }

.tp-grid { transition: opacity .15s; }
.tp-grid.is-loading { opacity: .45; pointer-events: none; }
.tp-empty { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px dashed #c5d2e6; text-align: center; }
.tp-empty b { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.tp-empty p { margin: 0; color: var(--muted); }
.tp-more { display: flex; justify-content: center; margin: 22px 0 6px; }
.tp-flnote { margin-bottom: 14px; }
.tp-dealonly { padding: 8px 12px; border-radius: 10px; background: var(--sun-soft); color: var(--sun-ink); font-weight: 600; }
.tp-dealonly[hidden] { display: none; }
.tp .fu-app-band { margin-top: 36px; }
.tp-sheetbar, .tp-backdrop { display: none; }

/* ---------------------------------------------------------------- Duyarlı: filtre paneli alt çekmece olur */
@media (max-width: 991.98px) {
  .tp-hero { grid-template-columns: minmax(0, 1fr); }
  .tp-layout { grid-template-columns: minmax(0, 1fr); }
  .tp-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -20px 50px rgba(2, 21, 54, .35); }
  body.tp-panel-open .tp-panel { transform: none; }
  body.tp-panel-open { overflow: hidden; }
  body.tp-panel-open .tp-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(2, 21, 54, .5); }
  .tp-panel-close { display: grid; place-items: center; }
  .tp-open-filters { display: inline-flex; align-items: center; gap: 6px; }
  .tp-bar { top: calc(var(--header-h) + 4px); }
  .tp-sort { margin-left: 0; }
  .tp-sheetbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(244, 246, 250, 1) 55%, rgba(244, 246, 250, 0)); }
  body.tp-panel-open .tp-sheetbar { display: none; }
  .tp { padding-bottom: 84px; }
  .tp-open-filters { display: none; }
}
@media (max-width: 575.98px) {
  .tp-meter { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .tp-ring { width: 76px; height: 76px; }
  .tp-ring > div { width: 60px; height: 60px; padding-top: 17px; }
  .tp-ring strong { font-size: 1.4rem; }
  .tp-tab { padding: 8px 12px; font-size: .88rem; }
  .tp-cards { grid-template-columns: 1fr 1fr; }
  .tp-sort { width: 100%; }
  .tp-sort select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-panel, .tp-ring, .tp-grid { transition: none; }
}

/* ---------------------------------------------------------------- Kompakt sol panel (önceki kalın stilleri ezer) */
.tp { --tp-panel-w: 330px; }
.tp-layout { gap: 18px; }
.tp-panel { border-radius: 16px; }
.tp-panel-head { padding: 10px 14px 6px; }
.tp-panel-head h2 { font-size: 1rem; }
.tp-form { padding: 0 6px 2px; }
.tp-sec > summary { padding: 9px 8px; gap: 8px; font-size: .92rem; }
.tp-sec-t { display: flex; align-items: baseline; gap: 6px; }
.tp-sec-t small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.tp-sec-n { min-width: 20px; height: 20px; font-size: .7rem; }
.tp-sec-b { padding: 0 8px 12px; display: grid; gap: 8px; }
.tp-note { margin: 0; font-size: .76rem; }
.tp .fu-chips { gap: 4px; }
.tp .fu-chip span { padding: 4px 9px; font-size: .78rem; }
.tp .fu-chips.is-scroll { max-height: 120px; }
.tp-search { padding: 7px 10px; margin-bottom: 6px; font-size: .84rem; border-radius: 10px; }
.tp-preset { padding: 4px 10px; font-size: .78rem; }
.tp-quick { margin: 6px 0 0; }
.tp-two { margin-top: 0; gap: 8px; }
.tp-two label { font-size: .7rem; }
.tp-two input { padding: 6px 8px; font-size: .84rem; border-radius: 10px; }
.tp-seg { margin-bottom: 0; padding: 3px; border-radius: 12px; }
.tp-seg span { padding: 6px 2px; font-size: .76rem; }
.tp-visas { margin-top: 0; padding: 8px; border-radius: 10px; display: grid; gap: 6px; }
.tp-range-out { margin-bottom: 2px; font-size: .82rem; }
.tp-panel-foot { padding: 8px 12px; }
.tp-panel-foot .fu-btn { padding: 9px 14px; font-size: .88rem; }
.tp-sec[open] > summary { color: var(--accent-2); }
@media (max-width: 991.98px) { .tp-panel { border-radius: 20px 20px 0 0; } }
.tp .fu-chip { border: 0; background: none; padding: 0; border-radius: 0; box-shadow: none; }
.tp .fu-chip > span { border-radius: 999px; }
.tp-panel-foot [data-tp-panel-close] { display: none; }
@media (max-width: 991.98px) { .tp-panel-foot [data-tp-panel-close] { display: inline-flex; } }
.tp .fu-sup-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tp-sec > summary::after { transition: transform .3s ease; }
.tp-sec-b { overflow: hidden; }

/* ---------------------------------------------------------------- Mobil iyileştirmeleri */
.tp { overflow-x: clip; }
.tp-two label, .tp-two input { min-width: 0; }
.tp-two input[type=date] { appearance: none; -webkit-appearance: none; min-height: 38px; }

@media (max-width: 991.98px) {
  /* Çekmece: görünür alana göre boyutlanır, alt boşluk ve çentik payı bırakır */
  .tp-panel { max-height: 90vh; max-height: 90dvh; height: auto; z-index: 80; overscroll-behavior: contain; }
  .tp-panel::before { content: ""; align-self: center; width: 42px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--line); flex: none; }
  .tp-panel-head { padding: 8px 16px 6px; }
  .tp-panel-head h2 { font-size: 1.1rem; }
  .tp-form { padding: 0 10px 8px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .tp-panel-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 16px rgba(2, 21, 54, .08); }
  .tp-panel-foot .fu-btn { min-height: 46px; font-size: .95rem; }
  .tp-backdrop { z-index: 75; }
  body.tp-panel-open .tp-backdrop { z-index: 75; }
  .tp-sheetbar { z-index: 60; pointer-events: none; }
  .tp-sheetbar .fu-btn { pointer-events: auto; box-shadow: 0 10px 26px rgba(2, 21, 54, .3); }

  /* Dokunmatik hedefler ve iOS yakınlaştırmasını önleyen 16px yazı */
  .tp-sec > summary { padding: 13px 8px; font-size: 1rem; min-height: 48px; }
  .tp-sec-b { padding: 0 8px 16px; }
  .tp .fu-chips { gap: 6px; }
  .tp .fu-chip span { padding: 8px 13px; font-size: .88rem; min-height: 38px; }
  .tp-preset { padding: 8px 14px; font-size: .88rem; min-height: 38px; }
  .tp-search, .tp-two input, .tp-sort select { font-size: 16px; }
  .tp-search { padding: 11px 12px; }
  .tp-two input { padding: 9px 10px; }
  .tp-two label { font-size: .76rem; }
  .tp-seg span { padding: 10px 4px; font-size: .84rem; }
  .tp .fu-chips.is-scroll { max-height: 170px; }
  .tp input[type=range].fu-range { height: 28px; }

  /* Sonuç çubuğu: akışta kalır, üst üste binmez */
  .tp-bar { position: static; flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; }
  .tp-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tp-tab { justify-content: center; padding: 10px 8px; }
  .tp-sort { width: 100%; margin-left: 0; justify-content: space-between; }
  .tp-sort select { flex: 1; min-width: 0; max-width: 62%; }
  .tp-bar .tp-open-filters { display: none; }
}

@media (max-width: 575.98px) {
  .tp-hero { padding: 20px 16px; gap: 18px; border-radius: 20px; margin-bottom: 16px; }
  .tp-hero h1 { font-size: 1.55rem; line-height: 1.2; }
  .tp-hero .fu-lead { font-size: .94rem; }
  .tp-hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .tp-hero-actions .fu-btn { width: 100%; justify-content: center; }
  .tp-meter { padding: 14px; gap: 12px 14px; border-radius: 18px; }
  .tp-meter-big strong { font-size: 2rem; }
  .tp-tab { font-size: .88rem; gap: 6px; }
  .tp-tab b { min-width: 22px; padding: 1px 6px; }
  .tp .fu-sup-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-summary { padding: 10px 12px; font-size: .9rem; }
  .tp-active { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -4px; }
  .tp-active::-webkit-scrollbar { display: none; }
  .tp-active > * { flex: none; }
  .tp-empty { padding: 20px 14px; }
  .tp-more .fu-btn { width: 100%; justify-content: center; }
  .tp .fu-app-band { margin-top: 24px; }
  .tp { padding-bottom: 92px; }
}
