/* JimGO Taxis: local and long-distance taxis page. Surfaces square, buttons pill. */

/* ---------- opener device: the journey sign ---------- */
.so-device.jt { top: clamp(14px, 2.6vh, 30px); bottom: auto; width: min(620px, 88%); padding: 14px 20px 16px; }
.jt-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(251, 229, 193, .1); }
.jt-sign { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; background: var(--amber); color: var(--ink); font: 700 .875rem/1 var(--body); letter-spacing: .12em; box-shadow: 0 0 18px rgba(232, 169, 65, .55); }
.jt-title { font: 760 1.15rem/1 var(--display); font-stretch: 92%; color: var(--cream); }
.jt-book { margin-left: auto; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; color: var(--amber); font-weight: 600; font-size: .95rem; text-decoration: none; }
.jt-book .ic { transition: transform .3s var(--ease); }
.jt-book:hover .ic { transform: translateX(4px); }
.jt-lines { margin: 8px 0 10px; }
.jt-line { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; padding: 4px 0; border-bottom: 1px dashed rgba(251, 229, 193, .12); }
.jt-lbl { color: var(--fog); font-size: .95rem; }
.jt-slot { position: relative; display: block; height: 1.34em; overflow: clip; font: 820 clamp(1.45rem, 2.15vw, 2.1rem)/1.3 var(--display); font-stretch: 80%; color: var(--cream); }
.jt-slot.is-to { color: var(--amber); }
.jt-w { position: absolute; left: 0; top: 0; white-space: nowrap; }
.jt-w i { display: inline-block; font-style: normal; white-space: pre; will-change: transform; }
.jt-timer { height: 2px; background: rgba(251, 229, 193, .1); overflow: hidden; }
.jt-timer i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.jt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.jt-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 2px solid rgba(251, 229, 193, .22); background: transparent; color: var(--text); font: 500 .92rem/1 var(--body); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.jt-chip .ic { width: 18px; height: 18px; color: var(--amber); transition: color .3s; }
.jt-chip:hover { border-color: var(--amber); color: var(--cream); }
.jt-chip.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }
.jt-chip.is-on .ic { color: var(--ink); }

/* ---------- everyday journeys: a bento of photo and pictogram tiles ---------- */
.ej { overflow: clip; padding-block: clamp(64px, 8vh, 110px); }
.ej-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(220px, 28vh, 264px), auto); gap: 16px; }
.ej-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 1.6vw, 24px); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--cream); background: var(--asphalt); transform-style: preserve-3d; }
.ej-tile.is-wide { grid-column: span 2; }
.ej-tile::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.ej-tile:hover::after, .ej-tile:focus-visible::after { transform: scaleX(1); }
.ej-img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ej-img img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.ej-tile.is-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 17, 16, .94) 0%, rgba(18, 17, 16, .5) 46%, rgba(18, 17, 16, 0) 75%); }
.ej-art { margin-bottom: auto; width: min(104px, 50%); }
.ej-pic { width: 100%; height: auto; overflow: visible; }
.ep { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ep-g { opacity: .35; }
.ep-a { stroke: var(--amber); }
.ej-copy { display: block; }
.ej-tile h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.1; margin-bottom: .35em; color: inherit; }
.ej-line { display: block; margin: 0 0 8px; font-size: .98rem; line-height: 1.45; color: var(--text); }
.ej-tile .go { display: inline-flex; align-items: center; gap: .5em; color: var(--amber); font-weight: 600; }
.ej-tile .go .ic { transition: transform .35s var(--ease); }
.ej-tile:hover .go .ic { transform: translateX(6px); }
/* pictogram tiles take the brand's three surfaces */
.ej-school { background: var(--paper); color: var(--ink); }
.ej-hospital { background: var(--amber); color: var(--ink); }
.ej-hospital .ep-a { stroke: #FFF8EC; }
.ej-hospital::after { background: var(--ink); }
.ej-events { background: #2E2C28; color: var(--cream); }
.ej-nights { background: radial-gradient(90% 120% at 85% 0%, #2A3358 0%, #182039 50%, #11162A 100%); color: var(--cream); }
.ej-tile.is-wide .ej-art { width: min(228px, 50%); }
.ej-school .ej-line, .ej-hospital .ej-line { color: #3E3A33; }
.ej-school .go { color: #8A5A0E; }
.ej-hospital .go { color: var(--ink); }
.ej-school::after { background: var(--ink); }
.ej-tile.is-pic::before { content: ''; position: absolute; right: -30%; top: -40%; width: 90%; height: 120%; z-index: -1; border-radius: 50%; background: repeating-radial-gradient(circle, currentColor 0 1px, transparent 1px 26px); opacity: .07; pointer-events: none; }

/* ---------- set piece: 24 hours on the road. Static by default; .is-live pins it ---------- */
.dn { --night: .85; position: relative; overflow: clip; isolation: isolate; padding-top: clamp(80px, 11vh, 140px); background: #10131F; }
.dn-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #121830 0%, #2B2643 52%, #6B4351 78%); overflow: hidden; }
.dn-stars { position: absolute; left: 0; right: 0; top: 0; height: 62%; opacity: var(--night); background-image: radial-gradient(1.4px 1.4px at 22px 34px, #FFF4DA 60%, transparent), radial-gradient(1px 1px at 120px 80px, #FFF4DA 60%, transparent), radial-gradient(1.6px 1.6px at 190px 22px, #FFF4DA 60%, transparent), radial-gradient(1px 1px at 70px 130px, #FBE5C1 60%, transparent), radial-gradient(1.2px 1.2px at 160px 150px, #FFF4DA 60%, transparent), radial-gradient(1px 1px at 250px 110px, #FBE5C1 60%, transparent); background-size: 280px 180px; }
.dn-stars::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.8px 1.8px at 90px 50px, #FFF8E6 60%, transparent), radial-gradient(1.5px 1.5px at 230px 140px, #FFF8E6 60%, transparent); background-size: 340px 210px; animation: dn-twinkle 3.4s ease-in-out infinite alternate; }
@keyframes dn-twinkle { to { opacity: .25; } }
.dn-clouds { position: absolute; left: 0; right: 0; top: 18%; height: 34%; opacity: calc(.2 + (1 - var(--night)) * .55); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 240'%3E%3Cg fill='%23FFF6E6'%3E%3Cellipse cx='120' cy='70' rx='90' ry='18'/%3E%3Cellipse cx='160' cy='56' rx='50' ry='20'/%3E%3Cellipse cx='520' cy='170' rx='120' ry='16'/%3E%3Cellipse cx='560' cy='156' rx='60' ry='18'/%3E%3Cellipse cx='780' cy='90' rx='70' ry='12'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 900px 100% repeat-x; filter: blur(3px); will-change: background-position; }
.dn-sun, .dn-moon { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.dn-sun { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: radial-gradient(circle, #FFE9A8 0 34%, #F6B94A 46%, rgba(246, 185, 74, .35) 58%, rgba(246, 185, 74, 0) 72%); transform: translate(-200px, -200px); }
.dn-moon { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: radial-gradient(circle at 36% 36%, #FFF6E2, #E9D7B4 62%, #CDB893); box-shadow: 0 0 40px 12px rgba(251, 229, 193, .16); transform: translate(78vw, 16vh); }

.dn-top { position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.dn-panel { flex: 1 1 auto; }
.dn-lede { color: var(--text); margin: 12px 0 22px; }
.dn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dn-item { padding: 20px 22px; background: rgba(16, 15, 14, .82); border-top: 3px solid var(--amber); backdrop-filter: blur(6px); }
.dn-time { display: flex; align-items: baseline; gap: 10px; font: 820 1.7rem/1 var(--display); font-stretch: 80%; color: var(--amber); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.dn-time small { font: 500 .92rem/1.2 var(--body); color: var(--fog); }
.dn-item h3 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.15; margin-bottom: .3em; }
.dn-item p { color: var(--text); margin: 0 0 6px; font-size: 1rem; }
.dn-clock { flex: none; display: none; flex-direction: column; align-items: center; gap: 8px; }
.dn-clock svg { width: clamp(120px, 12vw, 176px); height: auto; overflow: visible; }
.dc-face { fill: rgba(14, 13, 12, .78); stroke: rgba(251, 229, 193, .3); stroke-width: 2; }
.dc-ticks { fill: none; stroke: rgba(251, 229, 193, .7); stroke-width: 3; stroke-linecap: round; }
.dc-hour { stroke: var(--cream); stroke-width: 7; stroke-linecap: round; }
.dc-min { stroke: var(--amber); stroke-width: 4; stroke-linecap: round; }
.dc-pin { fill: var(--amber); }
.dc-read { display: grid; justify-items: center; padding: 6px 14px 8px; background: rgba(14, 13, 12, .78); }
.dc-read b { font: 820 1.9rem/1 var(--display); font-stretch: 78%; color: var(--cream); font-variant-numeric: tabular-nums; }
.dc-read span { color: var(--fog); font-size: .92rem; }

.dn-land { position: relative; z-index: 2; height: clamp(220px, 34vh, 320px); margin-top: 40px; }
.dn-hills { position: absolute; left: 0; right: 0; background-repeat: repeat-x; will-change: background-position; }
.dn-h1 { bottom: 26%; height: 62%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath fill='%23262A33' d='M0 200V120C80 90 160 70 240 96S400 140 480 100 640 60 720 90 800 120 800 120V200Z'/%3E%3C/svg%3E"); background-size: 900px 100%; }
.dn-h2 { bottom: 26%; height: 40%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath fill='%23171A1E' d='M0 200V150C100 130 180 120 260 140S420 170 520 140 700 118 800 150V200Z'/%3E%3C/svg%3E"); background-size: 1100px 100%; }
.dn-lamps { position: absolute; left: 0; right: 0; bottom: 26%; height: 46%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'%3E%3Cpath fill='none' stroke='%2333363A' stroke-width='3' d='M130 120V22H112'/%3E%3Crect x='104' y='20' width='12' height='5' fill='%2333363A'/%3E%3C/svg%3E") 0 100% / 260px 100% repeat-x; }
.dn-lamps::after { content: ''; position: absolute; inset: 0; opacity: var(--night); background: radial-gradient(circle at 110px 24%, rgba(255, 226, 160, .95) 0 3px, rgba(255, 205, 120, .3) 5px, rgba(255, 205, 120, 0) 40px) 0 0 / 260px 100% repeat-x; background-position: inherit; }
.dn-road { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: #141312; }
.dn-road::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(251, 229, 193, .22); }
.dn-lane { position: absolute; left: 0; right: 0; top: 48%; height: 5px; background: repeating-linear-gradient(90deg, var(--amber) 0 80px, transparent 80px 150px); background-size: 150px 5px; opacity: .85; }
.dn-car { position: absolute; z-index: 2; left: 50%; bottom: 12%; width: clamp(240px, 30vw, 500px); margin-left: calc(clamp(240px, 30vw, 500px) / -2); will-change: transform; }
.dn-car > img { width: 100%; height: auto; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .6)); }
.dn-wheel { position: absolute; width: 10.5%; aspect-ratio: 1; margin: -5.25% 0 0 -5.25%; will-change: transform; }
.dn-wheel img { width: 100%; height: 100%; }
.dn-wheel.w-rear { left: 21.43%; top: 79.8%; }
.dn-wheel.w-front { left: 80.7%; top: 76.4%; }
.dn-beam { position: absolute; left: 95%; top: 50%; width: 70%; height: 36%; opacity: var(--night); background: radial-gradient(ellipse at 0 50%, rgba(251, 229, 193, .42), rgba(251, 229, 193, 0) 70%); pointer-events: none; mix-blend-mode: screen; }

/* live */
.dn.is-live { height: 100svh; min-height: 600px; padding: 0; }
.dn.is-live .dn-top { position: absolute; left: 0; right: 0; top: calc(var(--head-h) * .6 + 3.5vh); margin: 0 auto; }
.dn.is-live .dn-panel { flex: 0 1 540px; padding: 24px 28px 18px; background: rgba(16, 15, 14, .84); border-left: 3px solid var(--amber); backdrop-filter: blur(8px); }
.dn.is-live .dn-lede { margin: 10px 0 16px; }
.dn.is-live .dn-list { display: block; position: relative; height: 166px; border-top: 1px solid rgba(251, 229, 193, .12); padding-top: 14px; }
.dn.is-live .dn-item { position: absolute; left: 0; right: 0; top: 14px; padding: 0; background: none; border: 0; backdrop-filter: none; }
.dn.is-live .dn-item:not(.is-on) { visibility: hidden; }
.dn.is-live .dn-clock { display: flex; }
.dn.is-live .dn-land { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; margin: 0; }

@media (prefers-reduced-motion: reduce) { .dn-stars::after { animation: none; } }

@media (max-width: 1080px) {
  .ej-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .so-device.jt { top: 16px; }
}
@media (max-width: 760px) {
  .so-device.jt { padding: 10px 14px 12px; }
  .jt-title { display: none; }
  .jt-sign { height: 24px; }
  .jt-line { grid-template-columns: 48px minmax(0, 1fr); }
  .jt-slot { font-size: 1.22rem; }
  .jt-chips { gap: 6px; padding-top: 10px; }
  .jt-chip { padding: 0 11px; font-size: .88rem; gap: 5px; }
  .jt-chip .ic { width: 16px; height: 16px; }
  .ej-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(240px, auto); }
  .ej-tile.is-wide { grid-column: auto; }
  .ej-art { width: 120px; margin-bottom: 18px; }
  .dn-list { grid-template-columns: 1fr; }
  .dn.is-live .dn-top { flex-direction: column; gap: 12px; top: calc(var(--head-h) + 10px); }
  .dn.is-live .dn-panel { flex: none; width: 100%; padding: 16px 18px 12px; }
  .dn-panel .h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .dn.is-live .dn-lede { font-size: .95rem; margin: 6px 0 10px; }
  .dn.is-live .dn-list { height: 206px; padding-top: 10px; }
  .dn.is-live .dn-item { top: 10px; }
  .dn-item p { font-size: .95rem; }
  .dn.is-live .dn-clock { flex-direction: row; gap: 12px; }
  .dn-clock svg { width: 76px; }
  .dc-read { justify-items: start; }
  .dc-read b { font-size: 1.5rem; }
  .dn.is-live .dn-land { height: 26%; }
  .dn-car { width: 66vw; margin-left: -33vw; }
  .dn-sun { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
