/*
 * All ways card, "Clean photo" layout (15 Nov 2026, combined run 2, part 1; Shereef 22:46 to 22:49: no colour layer over the photo, the photo is
 * city based, never one picture for all cities). Loaded only when the switch "All ways card photo layout" is Clean; Today = this file is not loaded.
 *
 * Markup (TGCore_Ways_Card::open_photo): .tgw--clean on the section; on every card either .has-tp (a <div class="tgw-tpw"> with the place's own
 * airport / station / bus station / port photo and a small plain credit strip, before the panel) or .no-tp (no real photo of that place and way:
 * the solid panel full width with our own mode icon, NO stock photo and no other city's photo).
 * Desktop (from 900 px): photo clean and full colour on the left (35 %, full height); text, tabs and map on the SOLID teal panel #0F5257; no
 * gradient, no tint. Phone: a clean photo band on top, then the solid panel (chip, figure, pills), then the white body as before.
 * Heights, equal-height tabs (590 px from 1100 px, 650 px for 900 to 1099 px), badges and tap targets are kept.
 */
.tgw--clean{--tgw-panel:#0F5257}
html body .tgw--clean .tgw-ph::after{display:none!important;content:none!important;background:none!important}
html body .tgw--clean .tgw-ph{background:var(--tgw-panel)}
html body .tgw--clean .tgw-pl{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.38)}

/* the photo area: photo in its own colours, with a small plain credit strip (solid ink bar, white text) */
.tgw--clean .tgw-tpw{position:relative;flex:none;height:116px;overflow:hidden;background:var(--tgw-panel)}
.tgw--clean .tgw-tp{display:block;width:100%;height:100%}
.tgw--clean .tgw-tp img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.tgw--clean .tgw-pc{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;margin:0;padding:5px 12px;background:#16222E;color:#fff!important;
  font-size:11px;line-height:1.35;text-decoration:none!important}
/* phone: one line (author and licence); the tap area of the link is 44 px high */
.tgw--clean .tgw-pc>span:first-child{display:none}
.tgw--clean a.tgw-pc::after{content:"";position:absolute;left:0;right:0;bottom:0;height:44px}
.tgw--clean .tgw-pc span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgw--clean .tgw-pc span:first-child{font-weight:700}
.tgw--clean p.tgw-pc{display:block;overflow:hidden}
.tgw--clean .tgw-pc a{color:#fff!important;text-decoration:underline}

/* 16 Nov 2026 (combined run 3, part 1): the credit is a small (i) at the photo's bottom right (tg-credits.js; the line itself is hidden once it
   has moved). The dark strip above stays only for a visitor without JavaScript and with the switch "Image credits: (i) icon" Off. */
.tgw--clean .tgw-tpw>.tgcr-i{top:auto;bottom:0;right:0}
.tgcr-on .tgw--clean .tgw-tpw .tgw-pc{display:none}

/* on-demand photo slot (16 Nov 2026, part 2): the band is drawn at the photo's size in the panel colour with our mode icon while tg-photo.js asks for
   the place's photo, so nothing jumps; the photo then fades in. No photo found: tg-photo.js turns the card into the plain panel (.no-tp). */
.tgw--clean .tgw-tpw.tgp-slot{display:flex;align-items:center;justify-content:center;background:var(--tgw-panel)}
.tgw--clean .tgp-ico{display:block;width:64px;height:64px;color:#fff;opacity:.85}
.tgw--clean .tgp-ico .tgw-ico{width:100%;height:100%}
.tgw--clean .tgp-in{animation:tgpIn .4s ease-out}
@keyframes tgpIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.tgw--clean .tgp-in{animation:none}}

/* phone: the solid panel under the band holds what used to sit on the photo */
.tgw--clean .tgw-ph{height:auto;min-height:0;padding:10px 12px 12px;justify-content:flex-start;gap:6px}
.tgw--clean .tgw-pills{margin-top:7px}
.tgw--clean .tgw-big>span{margin-top:3px}
.tgw--clean .tgw-c.no-tp .tgw-ph{padding-right:70px}
.tgw--clean .tgw-mi{display:none}
.tgw--clean .tgw-c.no-tp .tgw-mi{display:flex;position:absolute;right:14px;bottom:14px;width:44px;height:44px;align-items:center;justify-content:center;color:#fff;opacity:.92;z-index:1}
.tgw--clean .tgw-mi .tgw-ico{width:100%;height:100%}

/* phone (16 Nov 2026, Shereef 02:15 / 02:23): the photo band is taller (190 px) and the small chips (mode, Best way, Estimated / Night trips) sit on its
   top left as plain solid chips: no colour layer, nothing over the middle of the photo, never over the (i) at the bottom right. The panel below is
   shorter. A card with no photo (.no-tp) keeps its chips on the panel as before. */
@media (max-width:899px){
  .tgw--clean .tgw-c.has-tp .tgw-tpw{height:190px}
  .tgw--clean .tgw-c.has-tp .tgw-ph{position:static;padding-top:12px}
  .tgw--clean .tgw-c.has-tp .tgw-ph-top{position:absolute;top:10px;left:10px;right:10px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;pointer-events:none}
  .tgw--clean .tgw-c.has-tp .tgw-chip{min-height:28px;max-width:none;padding:0 10px;background:#16222E;border:1px solid #16222E;color:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;font-size:11.5px}
  .tgw--clean .tgw-c.has-tp .tgw-badges{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px}
  .tgw--clean .tgw-c.has-tp .tgw-badge{height:28px;padding:0 10px;font-size:11.5px}
  .tgw--clean .tgw-c.has-tp .tgw-trust .tg-trust{height:28px;padding:0 10px;font-size:11px}
}
@media (min-width:900px){
  html body .tgw--clean .tgw-c{background:var(--tgw-panel)}
  /* tabs sit on the panel: when the open card has a photo they start where the panel starts */
  .tgw--clean:has(.tgw-c.is-on.has-tp) .tgw-jump{margin-left:calc(35% + 28px);max-width:calc(65% - 56px)}
  .tgw--clean .tgw-c.has-tp{padding-left:calc(35% + 28px);grid-template-columns:minmax(0,1fr) minmax(220px,31%);column-gap:28px}
  .tgw--clean .tgw-c.has-tp .tgw-tpw{position:absolute;left:0;top:0;bottom:0;width:35%;height:auto;z-index:0}
  .tgw--clean .tgw-c.has-tp .tgw-pc{min-height:52px;padding:6px 14px;font-size:11.5px}
  .tgw--clean .tgw-pc>span:first-child{display:block}
  .tgw--clean a.tgw-pc::after{display:none}
  /* the tab strip is narrower (it starts on the panel): only the open tab shows its figure, so it stays on one row */
  .tgw--clean:has(.tgw-c.is-on.has-tp) .tgw-jump .tgw-jp:not([aria-selected="true"]) .tgw-jp-t{display:none}
  .tgw--clean:has(.tgw-c.is-on.has-tp) .tgw-jump .tgw-jp{padding:10px 14px}
  .tgw--clean .tgw-ph{padding:0;gap:0;min-height:0}
  .tgw--clean .tgw-c.no-tp .tgw-ph{padding-right:0}
  .tgw--clean .tgw-c.no-tp .tgw-mi{top:98px;right:48px;bottom:auto;width:72px;height:72px}
}
@media (min-width:1100px) and (max-width:1279px){
  .tgw--clean .tgw-c.has-tp{grid-template-columns:minmax(0,1fr) minmax(200px,30%);column-gap:20px}
}
@media (min-width:900px) and (max-width:1099px){
  .tgw--clean:has(.tgw-c.is-on.has-tp) .tgw-jump{margin-left:calc(35% + 24px);max-width:calc(65% - 48px)}
  .tgw--clean .tgw-c.has-tp{padding-left:calc(35% + 24px);padding-right:22px;grid-template-columns:minmax(0,1fr) minmax(190px,32%);column-gap:16px}
}

/* 16 Nov 2026 (combined run 4, part C5), phone: (1) the mode chip ("TRAIN . SNCF VOYAGEURS") is no longer cut off beside "Night trips": the badges wrap to the next row;
   (2) the card is lower: tighter map minimum and paddings (a flight card with a photo was 735 to 741 px at 390 px, the budget is 700 px). Numbers and facts are unchanged. */
@media (max-width:899px){
  .tgw--clean .tgw-c.no-tp .tgw-ph-top{flex-wrap:wrap;justify-content:flex-start;gap:6px}
  .tgw--clean .tgw-c.no-tp .tgw-chip{max-width:100%}
  .tgw--clean .tgw-map{min-height:76px}
  .tgw--clean .tgw-b{padding-top:8px;padding-bottom:6px;gap:6px}
  .tgw--clean .tgw-ph{padding-bottom:10px}
  .tgw--clean .tgw-pills{margin-top:5px}
  .tgw--clean .tgw-f{padding-bottom:10px}
  .tgw--clean .tgw-facts>div{padding-top:6px;padding-bottom:6px}
}
