/* City page (v2, 30.09): list on the left, map on the right (desktop); map + bottom sheet opening on the list (phone).
   Loaded after k1.css + city.css (konsept-1) and before ortak.css. */
.v2-city { overflow: hidden; }
.v2-city .mapapp { height: calc(100vh - 65px); height: calc(100svh - 65px); min-height: 480px; }
.city-intro { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2); }
.map-loading { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 16px; background: #fff; border-radius: 999px; box-shadow: var(--float); font-size: .9rem; color: var(--ink-2); }
.map-loading[hidden] { display: none; }

/* desktop: fixed list column + map */
@media (min-width: 900px) {
  .v2-city .sheet { top: 0; left: 0; right: auto; bottom: 0; width: clamp(420px, 38vw, 520px); border-radius: 0; box-shadow: 1px 0 0 var(--line), 10px 0 30px -22px rgb(19 35 63 / .5); }
  .v2-city #citymap, .v2-city .city-fallback { left: clamp(420px, 38vw, 520px); width: auto; right: 0; }
  .v2-city .city-fallback { width: calc(100% - clamp(420px, 38vw, 520px)); }
  .v2-city .map-loading { left: calc(50% + clamp(420px, 38vw, 520px) / 2); }
  .v2-city .bar { left: calc(clamp(420px, 38vw, 520px) + 16px); top: 14px; right: 16px; }
  .v2-city .panel { padding: 6px 24px 24px; }
}
.v2-city .crumbs { padding: 12px 0 2px; width: auto; }
.v2-city .peek-head h1 { font-size: 2.2rem; }
.map-back { background: var(--night) !important; color: #fff; }
.map-back[hidden] { display: none; }

/* tabs */
.ctabs { position: sticky; top: 0; z-index: 3; background: #fff; margin: 14px -4px 10px; padding: 0 4px; }
.v2-city .ctabs button { flex: 1; font-size: 1rem; }
.tp-h { font: 800 1.3rem/1.2 var(--f-display); margin: 14px 0 8px; color: var(--night); }
.tp-h3 { font: 700 1.02rem/1.2 var(--f-display); margin: 18px 0 8px; color: var(--night); }
[data-tabpanel][hidden] { display: none; }

/* sort control */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.sortbar-l { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.sortbar select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 .9rem var(--f-body); color: var(--ink); }
.sortbar .near { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sea) 45%, #fff); background: #fff; color: var(--sea); font-weight: 600; font-size: .9rem; cursor: pointer; }
.sortbar .near[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.v2-city .stay-note { margin: 6px 0 0; font-size: .76rem; }
.now-note { margin: 10px 0 4px; font-size: .76rem; }

/* city routes as small chips-cards */
.croutes-mini { display: flex; gap: 8px; overflow-x: auto; margin: 12px -4px 2px; padding: 2px 4px 6px; scrollbar-width: thin; }
.croute-mini { flex: none; display: grid; gap: 2px; min-width: 170px; max-width: 230px; padding: 9px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; color: var(--ink); text-decoration: none; background: #fff; }
.croute-mini:hover { border-color: var(--c); }
.croute-mini strong { font: 700 .92rem/1.2 var(--f-display); }
.croute-mini em { font: 600 .68rem/1.2 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; color: var(--c); }

/* place cards */
.pcards { list-style: none; margin: 0; padding: 0; }
.pcards li[hidden] { display: none; }
.pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .15s; scroll-margin-top: 60px; }
.pcard:hover, .pcard:focus-within { background: #f6faf9; }
.pcard.is-sel { background: #e8f4f3; box-shadow: inset 4px 0 0 var(--sea); }
.pcard-img { display: block; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .place-ico { display: block; width: 100%; height: 100%; border-radius: 0; }
.pcard-body { min-width: 0; }
.pcard-cat { margin: 0; font: 600 .7rem/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.pcard-cat span { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 600; font-size: .78rem; }
.pcard-cat .pcard-from { font-weight: 400; }
.pcard-name { margin: 3px 0 0; font: 700 1.1rem/1.2 var(--f-display); }
.pcard-name a { color: var(--night); text-decoration: none; }
.pcard-name a:hover { color: var(--sea); text-decoration: underline; }
.pcard-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; font-size: .84rem; }
.pcard-facts .mini { margin: 0; }
.pcard-tk { font-weight: 700; color: var(--ink); }
.pcard-tk small { font-weight: 600; color: #7a5200; font-size: .74rem; }
.pcard-tk--nv, .pcard-tk--range { color: #7a5200; }
.pcard-tk--free { color: #0f6b46; }
.pcard-time { color: var(--ink-2); }
.pcard-act { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.pcard-act .trip-add { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.pcard-map { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 .84rem/1 var(--f-display); color: var(--night); cursor: pointer; }
.pcard-map:hover { border-color: var(--sea); color: var(--sea); }

/* status tags */
.mini { display: inline-block; font: 600 .68rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: #eef1f5; color: var(--ink-2); }
.mini.is-open { background: #e3f4ec; color: #0f6b46; }
.mini.is-closed { background: #fdeceb; color: #a1261b; }
.mini.is-free { background: #e6f3f4; color: #0a5f66; }
.mini.is-unknown { background: #fff4d6; color: #7a5200; }

/* stay / practical tabs */
.stay-links { margin: 6px 0 0; font-size: .88rem; line-height: 1.7; }
.stay-links a { font-weight: 600; white-space: nowrap; }
.stay-links small { color: var(--ink-2); }
.area-links { margin: 8px 0 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.area-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); background: #fff; }
.area-links a:hover { border-color: var(--sea); color: var(--sea); }
.pc-alert { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #fdeceb; color: #7f1d14; font-size: .88rem; font-weight: 600; }
.pc-alert--s { display: inline-block; margin: 4px 0 0; padding: 3px 8px; font-size: .74rem; border-radius: 6px; }
.route-use { margin: 14px 0 0; }
.cstops a { display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 60px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.cstops a:hover strong { color: var(--sea); }

/* phone: map fills the screen under the header, the list is the bottom sheet (opens full) */
@media (max-width: 899px) {
  .v2-city .mapapp { height: calc(100vh - 57px); height: calc(100svh - 57px); }
  .v2-city .bar { top: 10px; left: 10px; right: 10px; flex-wrap: wrap; gap: 8px; }
  .v2-city .chips { order: 3; flex: 1 0 100%; min-width: 0; }
  .v2-city .map-back { order: 1; }
  .v2-city .viewtoggle { order: 2; margin-left: auto; flex: none; }
  .city-intro { display: none; }
  .v2-city .peek-head h1 { font-size: 1.7rem; }
  .v2-city .crumbs { padding-top: 0; font-size: .8rem; }
  .pcard { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .pcard-img { width: 88px; height: 88px; }
  .ctabs { top: 34px; }
  body.has-tripbar .v2-city .panel, body.has-tripbar.v2-city .panel { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }

/* 01.10: Summer / Winter chips on the city map (city.js); a season without places is disabled with a note */
.v2-city .chip-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: rgb(19 35 63 / .18); }
.v2-city .chip--season[aria-pressed="true"][data-mev-filter="summer"] { background: #ffe7b8; color: var(--night); }
.v2-city .chip--season[aria-pressed="true"][data-mev-filter="winter"] { background: #cfe0f5; color: var(--night); }
.v2-city .chip--season:disabled { background: #fff; color: var(--ink-2); opacity: 1; cursor: not-allowed; flex-direction: column; justify-content: center; line-height: 1.1; gap: 1px; }
.v2-city .chip-note { display: block; font: 600 .62rem/1.1 var(--f-mono); letter-spacing: .02em; color: var(--ink-2); }

/* 03.10 (Ali): "← Türkiye map" on the city map — back to the home map with the region opened */
.tr-back { display: inline-flex; align-items: center; flex: none; background: var(--night, #13233f) !important; color: #fff !important; text-decoration: none; white-space: nowrap; }
.tr-back:hover { filter: brightness(1.15); }
