
/* My Travel Atlas · Trips V1. Fully isolated from the globe and tickets UI. */
.atlas-trips-screen {
  display:none;
  position:fixed;
  z-index:1150;
  top:var(--atlas-topbar,146px);
  left:0;right:0;
  bottom:var(--atlas-footer-height,76px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,#061d2a 0%,#081e2c 38%,#061623 100%);
  color:#eefaf9;
}
body.show-trips .atlas-trips-screen {display:block}
body.atlas-public-view .atlas-trips-screen,body.atlas-public-view #tripsTab {display:none!important}
#tripsTab[hidden] {display:none!important}
#atlasTripsRoot {
  min-height:100%;
  isolation:isolate;
  font-family:inherit;
  --trip-bg:#081d2a;
  --trip-panel:#102f3d;
  --trip-border:#285566;
  --trip-muted:#a0bdc9;
  --trip-green:#62f5b4;
  --trip-pink:#f7a4d4;
  color:#edf9fa;
}
#atlasTripsRoot *,#atlasTripsRoot *::before,#atlasTripsRoot *::after {box-sizing:border-box}
#atlasTripsRoot button,#atlasTripsRoot input,#atlasTripsRoot textarea,#atlasTripsRoot select {font:inherit}
#atlasTripsRoot button {cursor:pointer}
#atlasTripsRoot button:disabled {opacity:.6;cursor:wait}
#atlasTripsRoot button:focus-visible,#atlasTripsRoot input:focus-visible,#atlasTripsRoot textarea:focus-visible,
#atlasTripsRoot select:focus-visible,#atlasTripsRoot a:focus-visible {
  outline:2px solid var(--trip-green);outline-offset:2px;
}
#atlasTripsRoot svg {width:20px;height:20px;flex:none}
#atlasTripsRoot p {margin:0;line-height:1.55}
#atlasTripsRoot h1,#atlasTripsRoot h2,#atlasTripsRoot h3 {color:#effffc;margin:0;line-height:1.22}
#atlasTripsRoot h1 {font-size:clamp(23px,4vw,31px);font-weight:800}
#atlasTripsRoot h2 {font-size:17px;font-weight:750}
#atlasTripsRoot h3 {font-size:14px;font-weight:750}
#atlasTripsRoot small {font-size:12px}
#atlasTripsRoot a {color:#92ffcc}
#atlasTripsRoot .trips-page {
  width:min(100%,990px);
  margin:0 auto;
  padding:clamp(18px,4vw,32px) clamp(14px,3.7vw,27px) 75px;
  min-width:0;
}
#atlasTripsRoot .trips-eyebrow {
  display:block;color:#75e8b5;font-size:10px;letter-spacing:.15em;
  font-weight:800;margin:0 0 9px;
}
#atlasTripsRoot .trips-page-intro .trips-eyebrow {color:#E6C08B}
#atlasTripsRoot .trips-page-intro {
  display:flex;justify-content:space-between;align-items:center;gap:13px;flex-wrap:wrap;
  margin-bottom:22px;
}
#atlasTripsRoot .trips-page-intro h1 {display:flex;align-items:center;gap:10px}
#atlasTripsRoot .trips-page-intro h1 small {
  font-size:13px;background:#213e4c;border-radius:999px;color:#bed9df;
  padding:5px 10px;font-weight:750;
}
#atlasTripsRoot .trips-page-intro p {
  font-size:13px;color:var(--trip-muted);margin-top:7px;
}
#atlasTripsRoot .trips-btn-primary {
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  background:linear-gradient(115deg,#6bffc0,#4ceda9);color:#052b21;
  border:1px solid #9affe0;border-radius:13px;
  min-height:43px;padding:10px 15px;font-size:13px;font-weight:800;
  box-shadow:0 5px 17px #0a453344;
  text-align:center;
}
#atlasTripsRoot .trips-btn-primary:hover {background:linear-gradient(115deg,#8dffce,#69ffb7)}
#atlasTripsRoot .trips-btn-primary svg {width:19px;height:19px}
#atlasTripsRoot .trips-filters {
  display:flex;align-items:center;gap:7px;padding:4px;
  margin-bottom:18px;border:1px solid #284b5e;
  background:#0a2a39;border-radius:14px;width:max-content;max-width:100%;
}
#atlasTripsRoot .trips-filters button {
  border:0;background:transparent;color:#bed0da;
  display:flex;gap:6px;align-items:center;justify-content:center;
  border-radius:11px;padding:9px 13px;min-height:39px;white-space:nowrap;
  font-size:12px;font-weight:700;
}
#atlasTripsRoot .trips-filters button.is-active {background:#69f6b7;color:#052e22}
#atlasTripsRoot .trips-filters small {
  color:inherit;opacity:.75;font-size:11px;font-weight:800;
}
#atlasTripsRoot .trips-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#atlasTripsRoot .trips-card {
  display:flex;align-items:stretch;min-width:0;position:relative;
  padding:0;text-align:left;min-height:150px;
  color:#f1fbff;background:linear-gradient(120deg,#15394a,#0b2937);
  border:1px solid #2a5969;border-radius:17px;
  overflow:hidden;transition:transform .16s ease,border-color .16s ease;
}
#atlasTripsRoot .trips-card:hover {transform:translateY(-2px);border-color:#69c5b1}
#atlasTripsRoot .trips-card-cover {
  width:37%;max-width:164px;min-width:112px;flex:none;
  position:relative;overflow:hidden;
  background:linear-gradient(140deg,#1d5860,#125367 45%,#25335d);
}
#atlasTripsRoot .trips-card-cover img,#atlasTripsRoot .trips-hero-cover img,
#atlasTripsRoot .trips-photo img {
  width:100%;height:100%;display:block;object-fit:cover;
}
#atlasTripsRoot .trips-cover-default {
  width:100%;height:100%;display:grid;place-items:center;
  background:radial-gradient(ellipse at 20% 15%,#4d9e9a,#174657 60%,#142d47);
}
#atlasTripsRoot .trips-cover-default span {font-size:68px;color:#9effdb;opacity:.68}
#atlasTripsRoot .trips-card-details {padding:13px 22px 12px 14px;min-width:0;flex:1;display:flex;flex-direction:column;gap:7px}
#atlasTripsRoot .trips-card-top {margin-bottom:3px}
#atlasTripsRoot .trips-state {
  border-radius:999px;padding:4px 8px;
  display:inline-flex;align-items:center;width:max-content;
  font-size:10px;font-weight:800;line-height:1.3;
  background:#273f4c;color:#d3e7ef;
}
#atlasTripsRoot .trips-state-planning {background:#21495d;color:#a9e5fa}
#atlasTripsRoot .trips-state-planned {background:#3f2c45;color:#f7b8d8}
#atlasTripsRoot .trips-state-active {background:#153f49;color:#7de9ff}
#atlasTripsRoot .trips-state-completed {background:#1b483e;color:#86ffd0}
#atlasTripsRoot .trips-card-details strong {font-size:16px;color:#fff;overflow-wrap:anywhere}
#atlasTripsRoot .trips-card-location,#atlasTripsRoot .trips-card-dates,
#atlasTripsRoot .trips-card-bottom {
  color:#b6cfdb;font-size:12px;display:flex;align-items:center;gap:6px;
  line-height:1.4;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-card-location svg,#atlasTripsRoot .trips-card-dates svg {width:15px;height:15px;color:#7ff1c1}
#atlasTripsRoot .trips-card-bottom {font-size:11px;opacity:.8;margin-top:auto}
#atlasTripsRoot .trips-card-arrow {position:absolute;right:6px;top:50%;transform:translateY(-50%);color:#86adc0}
#atlasTripsRoot .trips-card-arrow svg {width:16px}
#atlasTripsRoot .trips-private-hint {
  margin-top:22px;color:#7ea5b3;font-size:11px;text-align:center;
}
#atlasTripsRoot .trips-empty {
  text-align:center;display:flex;flex-direction:column;align-items:center;
  border:1px dashed #376777;border-radius:18px;
  padding:34px 15px;gap:13px;background:linear-gradient(160deg,#10313f,#0a2735);
}
#atlasTripsRoot .trips-empty-symbol {
  width:62px;height:62px;display:grid;place-items:center;border-radius:18px;
  font-size:36px;color:#7dffd3;background:#184d4e;transform:rotate(-7deg);
}
#atlasTripsRoot .trips-empty h3 {font-size:17px}
#atlasTripsRoot .trips-empty p {color:var(--trip-muted);font-size:13px;max-width:360px}
#atlasTripsRoot .trips-loading {padding:50px 15px;text-align:center}
#atlasTripsRoot .trips-loading span {
  font-size:36px;display:block;margin-bottom:12px;animation:trips-plane 1.3s ease-in-out infinite;
}
#atlasTripsRoot .trips-loading h2 {font-size:19px}
#atlasTripsRoot .trips-loading p {color:var(--trip-muted);font-size:12px;margin-top:8px}
@keyframes trips-plane {0%,100%{transform:translate(-4px,3px)}50%{transform:translate(4px,-5px)}}

/* Trip details */
#atlasTripsRoot .trips-detail-page {padding-top:14px}
#atlasTripsRoot .trips-detail-top {display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}
#atlasTripsRoot .trips-detail-actions {display:flex;align-items:center;gap:8px;min-width:0}
#atlasTripsRoot .trips-detail-pdf {
  display:inline-grid;place-items:center;flex:0 0 38px;
  width:38px;height:38px;padding:8px;
  color:#b4ffdf;background:rgba(8,35,46,.93);
  border:1px solid #3b7e80;border-radius:10px;cursor:pointer;
}
#atlasTripsRoot .trips-detail-pdf svg {display:block;width:20px;height:20px}
#atlasTripsRoot .trips-detail-pdf:hover {background:#1b5756;border-color:#72edbf}
#atlasTripsRoot .trips-detail-pdf:focus-visible {outline:2px solid #9cffd6;outline-offset:2px}
#atlasTripsRoot .trips-detail-pdf:disabled {opacity:.55;cursor:wait}
#atlasTripsRoot .trips-back,#atlasTripsRoot .trips-gear {
  display:inline-flex;gap:7px;align-items:center;
  min-height:38px;padding:8px 10px;
  color:#d9edf3;border-radius:10px;background:#123747;border:1px solid #315766;
  font-size:12px;font-weight:750;
}
#atlasTripsRoot .trips-back svg,#atlasTripsRoot .trips-gear svg {width:17px;height:17px}
#atlasTripsRoot .trips-gear {justify-content:center;min-width:40px;width:40px;padding:8px;}
#atlasTripsRoot .trips-hero {
  position:relative;min-height:215px;max-height:370px;
  display:flex;flex-direction:column;justify-content:flex-end;
  border:1px solid #3b6677;border-radius:19px;overflow:hidden;
  background:linear-gradient(115deg,#20565a,#123449 55%,#3c3362);
}
#atlasTripsRoot .trips-hero-cover {position:absolute;inset:0}
#atlasTripsRoot .trips-hero-cover::after {
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(3,16,25,.98),rgba(5,22,32,.23) 70%,rgba(5,22,32,.07));
}
#atlasTripsRoot .trips-hero-content {position:relative;padding:22px 18px 18px;z-index:1}
#atlasTripsRoot .trips-hero-content h1 {
  font-size:clamp(24px,5vw,36px);margin:8px 0;
  text-shadow:0 3px 11px #001b2e8a;
}
#atlasTripsRoot .trips-hero-content p {
  display:flex;align-items:center;gap:8px;color:#e5eff6;
  font-size:12px;margin:6px 0 0;
}
#atlasTripsRoot .trips-hero-content p svg {width:16px;height:16px;color:#78ffc0}
#atlasTripsRoot .trips-detail-tabs {
  display:flex;align-items:stretch;gap:0;
  overflow-x:auto;scrollbar-width:none;
  margin:15px 0;padding:4px;border-radius:12px;
  border:1px solid #2c5564;background:#102c39;
}
#atlasTripsRoot .trips-detail-tabs::-webkit-scrollbar {display:none}
#atlasTripsRoot .trips-detail-tabs button {
  color:#b3cad3;border:0;border-radius:9px;
  background:transparent;padding:11px 15px;
  min-height:40px;white-space:nowrap;
  font-size:12px;font-weight:750;flex:1;
}
#atlasTripsRoot .trips-detail-tabs button.is-active {background:#5ff3af;color:#042d21}
#atlasTripsRoot .trips-detail-panels {display:flex;flex-direction:column;gap:12px;min-width:0}
#atlasTripsRoot .trips-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#atlasTripsRoot .trips-metric {
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:7px;padding:15px 7px;
  min-width:0;background:#123442;border:1px solid #315769;border-radius:13px;
}
#atlasTripsRoot .trips-metric svg {color:#5df1b3;width:22px;height:22px}
#atlasTripsRoot .trips-metric strong {font-size:clamp(11px,1.7vw,17px);font-weight:800;text-align:center;overflow-wrap:anywhere}
#atlasTripsRoot .trips-metric small {color:#b0cbd4;text-align:center;font-size:10px}
#atlasTripsRoot .trips-card-panel {
  padding:17px;background:linear-gradient(160deg,#10313e,#0b2937);
  border:1px solid #2f5969;border-radius:16px;
}
#atlasTripsRoot .trips-panel-title,#atlasTripsRoot .trips-section-heading {
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;
}
#atlasTripsRoot .trips-icon-action,#atlasTripsRoot .trips-inline-add,#atlasTripsRoot .trips-mini-icon {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  background:#1b4650;color:#a6ffd2;border:1px solid #3a7275;
  border-radius:9px;padding:7px 9px;min-height:31px;
  font-size:11px;font-weight:750;
}
#atlasTripsRoot .trips-icon-action svg,#atlasTripsRoot .trips-inline-add svg,#atlasTripsRoot .trips-mini-icon svg {width:15px;height:15px}
#atlasTripsRoot .trips-body-copy {font-size:13px;color:#d9e7eb;white-space:pre-wrap;overflow-wrap:anywhere}
#atlasTripsRoot .trips-subnote {display:inline-block;margin-top:10px;color:#9dc3cc;font-size:12px}
#atlasTripsRoot .trips-budget-big {font-weight:850;font-size:clamp(20px,4vw,27px);color:#7cffc6;margin:4px 0 14px}
#atlasTripsRoot .trips-budget-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#atlasTripsRoot .trips-budget-grid>.trips-budget-item {
  display:flex;flex-direction:column;align-items:stretch;gap:7px;
  padding:12px;border-radius:11px;background:#092735;border:1px solid #274c59;
  text-align:left;min-width:0;cursor:pointer;color:#f3fbf6;
}
#atlasTripsRoot .trips-budget-item:hover {border-color:#5aae9b;background:#113745}
#atlasTripsRoot .trips-budget-item:focus-visible {outline:2px solid #82fac9;outline-offset:2px}
#atlasTripsRoot .trips-budget-item span {
  display:flex;justify-content:space-between;align-items:center;gap:5px;
  font-size:12px;color:#bad1d9;min-width:0;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-budget-item span svg {width:13px;height:13px;flex:none;color:#7df0be;margin-left:auto}
#atlasTripsRoot .trips-budget-item strong {font-size:15px;color:#f3fbf6}
#atlasTripsRoot .trips-budget-item small {font-size:10px;color:#a9c7d0}
#atlasTripsRoot .trips-budget-limit {
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;
  font-size:12px;color:#bfd6df;margin-top:14px;
}
#atlasTripsRoot .trips-muted {color:#98b8c5;font-size:12px}
#atlasTripsRoot .trips-compact-route {display:flex;flex-direction:column;gap:14px;margin:15px 0}
#atlasTripsRoot .trips-compact-route>div {display:flex;align-items:center;gap:12px;font-size:13px}
#atlasTripsRoot .trips-route-entity {
  display:grid;place-items:center;flex:none;
  width:34px;height:34px;border-radius:11px;
  font-size:19px;background:#194d48;border:1px solid #347869;
}
#atlasTripsRoot .trips-compact-route strong {display:block;font-size:13px}
#atlasTripsRoot .trips-compact-route small {display:block;color:#a1bdc6;margin-top:3px}
#atlasTripsRoot .trips-text-link {
  display:inline-flex;align-items:center;gap:7px;color:#73f6b5;
  border:0;background:none;padding:9px 0;font-size:12px;font-weight:750;
}
#atlasTripsRoot .trips-text-link svg {width:17px;height:17px}
#atlasTripsRoot .trips-quick-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#atlasTripsRoot .trips-quick {
  min-height:85px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;
  color:#c2fbe3;background:#123542;border:1px solid #30606b;border-radius:13px;
  padding:10px 6px;font-size:11px;font-weight:750;text-align:center;
}
#atlasTripsRoot .trips-quick svg {width:25px;height:25px;color:#68f0b4}

/* Timeline, services, accommodation */
#atlasTripsRoot .trips-description-row {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  padding:4px 0 2px;
}
#atlasTripsRoot .trips-description-row p {font-size:12px;color:#a2c2cc;max-width:420px}
#atlasTripsRoot .trips-timeline {padding-left:13px}
#atlasTripsRoot .trips-day-label {
  font-size:13px;color:#71ffc0;margin:18px 0 12px 8px;
}
#atlasTripsRoot .trips-timeline-item {
  position:relative;margin-left:0;padding:14px;
  border-radius:13px;border:1px solid #305765;
  border-left:3px solid #60f3ae;background:#11313f;
  margin-bottom:9px;
}
#atlasTripsRoot .trips-timeline-dot {
  position:absolute;left:-20px;top:20px;width:9px;height:9px;
  border:2px solid #0d3540;border-radius:50%;background:#70ffbd;
  box-shadow:0 0 0 3px #6affc244;
}
#atlasTripsRoot .trips-item-head {
  display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:5px;
}
#atlasTripsRoot .trips-item-head strong {font-size:14px;overflow-wrap:anywhere;min-width:0}
#atlasTripsRoot .trips-item-info {
  display:flex;gap:5px;align-items:center;color:#b0d1d8;
  font-size:12px;margin-bottom:8px;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-item-info svg {width:15px;height:15px;color:#7cf8bf}
#atlasTripsRoot .trips-timeline-item p {color:#c4d8df;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
#atlasTripsRoot .trips-item-footer {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:wrap;margin-top:12px;color:#e6fbf1;font-size:12px;font-weight:750;
}
#atlasTripsRoot .trips-mini-link {
  background:none;border:0;color:#e5a5b9;
  display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:4px;
}
#atlasTripsRoot .trips-mini-link svg {width:14px;height:14px}
#atlasTripsRoot .trips-pins {
  display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:13px 0;
}
#atlasTripsRoot .trips-pins span {
  display:flex;align-items:center;gap:4px;background:#1a4149;border:1px solid #38656a;
  border-radius:20px;padding:7px 9px;color:#e2f4ef;font-size:11px;
}
#atlasTripsRoot .trips-pins svg {width:14px;height:14px;color:#8affc4}
#atlasTripsRoot .trips-pins .trips-pins-dash {border:0;background:none;color:#8bbfc1;padding:0}
#atlasTripsRoot .trips-ext {
  display:inline-flex;gap:5px;align-items:center;color:#79f6be;
  font-size:11px;font-weight:750;text-decoration:none;max-width:100%;
}
#atlasTripsRoot .trips-ext svg {width:15px;height:15px}
#atlasTripsRoot .trips-stack {display:flex;flex-direction:column;gap:11px}
#atlasTripsRoot .trips-service-card {
  display:flex;gap:12px;padding:14px;
  background:linear-gradient(150deg,#123746,#0b2b39);
  border:1px solid #305c6b;border-radius:15px;
}
#atlasTripsRoot .trips-service-symbol {
  flex:none;width:44px;height:44px;display:grid;place-items:center;
  border-radius:12px;background:#174a4a;font-size:22px;
}
#atlasTripsRoot .trips-service-body {min-width:0;flex:1}
#atlasTripsRoot .trips-service-body small {
  display:flex;gap:5px;align-items:center;color:#a6c8d0;font-size:11px;line-height:1.4;
}
#atlasTripsRoot .trips-service-body small svg {width:14px;height:14px}
#atlasTripsRoot .trips-service-body p {
  display:flex;align-items:center;gap:6px;font-size:12px;margin-top:8px;color:#daeef1;
}
#atlasTripsRoot .trips-service-body p svg {width:16px;height:16px;color:#72f6bb}
#atlasTripsRoot .trips-service-body .trips-secondary-text {white-space:pre-wrap;color:#a3bec7}
#atlasTripsRoot .trips-stay-rate {
  background:#0b2936;border-radius:10px;padding:10px 9px;
  margin-top:12px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;
  color:#d2e5e9;font-size:12px;
}
#atlasTripsRoot .trips-stay-rate strong {color:#70f5b8}

/* Diaries and checklists */
#atlasTripsRoot .trips-rating {color:#f8a0d5;font-size:20px;margin:12px 0}
#atlasTripsRoot .trips-rating small {font-size:12px;color:#c4d9e1}
#atlasTripsRoot .trips-photos {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#atlasTripsRoot .trips-photo {
  position:relative;aspect-ratio:1/1;background:#184255;border:1px solid #3b6371;
  border-radius:12px;overflow:hidden;
}
#atlasTripsRoot .trips-photo-empty {height:100%;display:grid;place-items:center;color:#b8d0d8}
/* Captions stay at the lower left; delete is pinned independently at the
   lower-right corner on every photo, even with lengthy captions. */
#atlasTripsRoot .trips-photo-caption {
  position:absolute;left:7px;bottom:7px;z-index:1;
  max-width:calc(100% - 56px);box-sizing:border-box;
  padding:5px 6px;border-radius:6px;
  background:#061d29c7;color:#f7fafb;font-size:10px;line-height:1.25;
  overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-photo-delete {
  position:absolute;right:7px;bottom:7px;z-index:2;
  display:grid;place-items:center;flex:none;
  width:34px;height:34px;min-width:34px;min-height:34px;
  padding:7px;margin:0;box-sizing:border-box;
  border:1px solid var(--trip-visited,#c45f64);border-radius:9px;
  background:#49242dec;color:var(--trip-visited,#c45f64);
  cursor:pointer;box-shadow:0 2px 8px #08172299;
}
#atlasTripsRoot .trips-photo-delete span {display:none}
#atlasTripsRoot .trips-photo-delete svg {
  display:block;width:18px;height:18px;pointer-events:none;
}
#atlasTripsRoot .trips-photo-delete:hover,
#atlasTripsRoot .trips-photo-delete:focus-visible {
  background:#743039;border-color:#e47a80;color:#f29da1;
}
#atlasTripsRoot .trips-photo-delete:focus-visible {
  outline:2px solid var(--trip-visited,#c45f64);outline-offset:2px;
}
#atlasTripsRoot .trips-checklist {display:flex;flex-direction:column;gap:6px}
#atlasTripsRoot .trips-check-row {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border:1px solid #294e5a;background:#0b2938;border-radius:10px;padding:7px 9px;
}
#atlasTripsRoot .trips-check-row label {display:flex;gap:9px;align-items:center;flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
#atlasTripsRoot .trips-check-row input {width:18px;height:18px;accent-color:#69f0b3;flex:none}
#atlasTripsRoot .trips-check-row span.done {text-decoration:line-through;color:#81a9b2}

/* Bottom-sheet editor. Its classes are all scoped to trips. */
#atlasTripsRoot .trips-overlay {
  position:fixed;z-index:2400;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(1,12,20,.86);
  padding:12px;
  backdrop-filter:blur(8px);
}
/* Gallery images shouldn't show through while editing diary fields. */
#atlasTripsRoot .trips-diary-editor-overlay {
  background:rgba(1,12,20,.985);
  backdrop-filter:blur(14px);
}
#atlasTripsRoot .trips-editor {
  width:min(100%,640px);max-height:min(92dvh,950px);
  border:1px solid #477b7d;border-radius:22px;
  background:linear-gradient(160deg,#0f303c,#071f2d);
  box-shadow:0 15px 75px #000a;
  display:flex;flex-direction:column;overflow:hidden;
  min-width:0;
}
#atlasTripsRoot .trips-editor-title {
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex:none;padding:18px 18px 13px;
  border-bottom:1px solid #244e5d;
}
#atlasTripsRoot .trips-editor-title h2 {font-size:19px}
#atlasTripsRoot .trips-editor-title h2 {min-width:0;flex:1}
#atlasTripsRoot .trips-editor-close {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;min-width:38px;min-height:38px;flex:0 0 38px;
  margin:0;padding:0;line-height:0;
  color:#c1dbe5;border:1px solid #436676;background:#19404e;border-radius:10px;
}
#atlasTripsRoot .trips-editor-close svg {
  box-sizing:border-box;display:block;width:18px;height:18px;
  min-width:18px;min-height:18px;flex:none;margin:0;padding:0;pointer-events:none;
}
#atlasTripsRoot .trips-editor-body {
  padding:17px;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:14px;
}
#atlasTripsRoot .trips-editor-lead {font-size:12px;color:#acd1d7;line-height:1.6}
#atlasTripsRoot .trips-field {display:flex;flex-direction:column;gap:6px;min-width:0}
#atlasTripsRoot .trips-field>span {font-size:12px;font-weight:750;color:#e1f2f3}
#atlasTripsRoot .trips-field>small {color:#90b5c0;font-size:11px;line-height:1.4}
#atlasTripsRoot .trips-field input,#atlasTripsRoot .trips-field select,
#atlasTripsRoot .trips-field textarea {
  display:block;width:100%;max-width:100%;min-width:0;
  min-height:44px;margin:0;padding:10px 11px;
  color:#effcfa;background:#0a2432;border:1px solid #355a6c;
  border-radius:11px;outline:none;
  font-size:14px;font-weight:500;
}
#atlasTripsRoot .trips-field textarea {min-height:83px;resize:vertical}
#atlasTripsRoot .trips-field select {appearance:auto;color-scheme:dark}
#atlasTripsRoot .trips-field input[type="date"],#atlasTripsRoot .trips-field input[type="time"] {color-scheme:dark}
#atlasTripsRoot .trips-field input:focus,#atlasTripsRoot .trips-field textarea:focus,#atlasTripsRoot .trips-field select:focus {
  border-color:#65d4ac;box-shadow:0 0 0 2px #6bffa51a;
}
#atlasTripsRoot .trips-field input::placeholder,#atlasTripsRoot .trips-field textarea::placeholder {color:#7396a6}
/* Native file pickers show system-language text that cannot be translated.
   Keep the real input over a localized label so Telegram's picker still works. */
#atlasTripsRoot .trips-field .trips-file-chooser {
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  position:relative;min-width:0;min-height:44px;
  color:#d5e9ed;font-size:12px;font-weight:500;
}
#atlasTripsRoot .trips-field .trips-file-chooser input[type="file"] {
  position:absolute;inset:0;z-index:1;opacity:0;
  display:block;width:100%;height:100%;min-height:0;
  margin:0;padding:0;cursor:pointer;
}
#atlasTripsRoot .trips-file-pick {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:8px 12px;border-radius:10px;
  border:1px solid #477b7d;background:#193f4c;
  color:#e8f9f3;font-weight:700;white-space:nowrap;
}
#atlasTripsRoot .trips-file-name {
  flex:1 1 110px;min-width:0;overflow-wrap:anywhere;
  font-size:12px;font-weight:400;color:#b4ccd4;
}
#atlasTripsRoot .trips-file-chooser:focus-within .trips-file-pick {
  border-color:#65d4ac;box-shadow:0 0 0 2px #6bffa533;
}
#atlasTripsRoot .trips-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#atlasTripsRoot .trips-form-note,#atlasTripsRoot .trips-form-error {font-size:11px;color:#adc7d1;line-height:1.5}
#atlasTripsRoot .trips-form-error {color:#ffc2ca;font-weight:700}
#atlasTripsRoot .trips-editor-footer {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:10px;
  border-top:1px solid #275160;padding:13px 17px 15px;background:#0b2836;
}
#atlasTripsRoot .trips-editor-footer button {min-height:46px;font-weight:800;font-size:13px}
#atlasTripsRoot .trips-btn-ghost {
  color:#d7e8ed;background:#1c4351;border:1px solid #466979;border-radius:12px;
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  padding:10px;font-size:13px;font-weight:750;
}
#atlasTripsRoot .trips-editor-extra {padding:12px 0 0}
#atlasTripsRoot .trips-delete-link {
  background:none;border:0;color:#efa9b7;padding:7px 0;display:flex;gap:8px;
  align-items:center;font-size:12px;
}
#atlasTripsRoot .trips-delete-link svg {width:17px;height:17px}
#atlasTripsRoot .trips-confirm {
  background:linear-gradient(140deg,#123644,#082330);
  border:1px solid #54717e;border-radius:18px;
  padding:24px;max-width:420px;width:100%;
  box-shadow:0 20px 60px #000b;
}
#atlasTripsRoot .trips-confirm p {color:#bed0d9;font-size:13px;margin:12px 0 19px}
#atlasTripsRoot .trips-editor-actions {display:grid;grid-template-columns:1fr 1fr;gap:10px}
#atlasTripsRoot .trips-editor-actions button {display:flex;gap:7px;justify-content:center;align-items:center;min-height:42px}
#atlasTripsRoot .trips-btn-danger {
  color:#fff0f3;background:#9b3d59;border:1px solid #c96a89;
  border-radius:12px;font-size:13px;font-weight:800;
}
#atlasTripsRoot .trips-btn-danger svg {width:17px;height:17px}
#atlasTripsRoot .trips-toast {
  position:fixed;left:50%;bottom:calc(var(--atlas-footer-height,76px) + 18px);
  transform:translateX(-50%);padding:0;z-index:2500;
  max-width:min(90vw,400px);background:#154435;color:#e9fff2;
  border-radius:12px;box-shadow:0 8px 30px #0008;font-size:12px;
  text-align:center;pointer-events:none;
}
#atlasTripsRoot .trips-toast:not(:empty) {padding:12px;border:1px solid #61f7ae}
@media(max-width:760px) {
  #atlasTripsRoot .trips-page {padding:16px 13px 65px}
  #atlasTripsRoot .trips-grid {grid-template-columns:minmax(0,1fr)}
  #atlasTripsRoot .trips-card {min-height:124px}
  #atlasTripsRoot .trips-card-cover {width:34%;min-width:105px}
  #atlasTripsRoot .trips-card-details {padding:10px 20px 10px 11px;gap:5px}
  #atlasTripsRoot .trips-card-details strong {font-size:15px}
  #atlasTripsRoot .trips-metric {padding:12px 3px}
  #atlasTripsRoot .trips-metric strong {font-size:12px}
  #atlasTripsRoot .trips-metric svg {width:19px;height:19px}
  #atlasTripsRoot .trips-card-panel {padding:14px}
  #atlasTripsRoot .trips-hero {min-height:200px}
  #atlasTripsRoot .trips-editor {max-height:calc(100dvh - 16px)}
  #atlasTripsRoot .trips-overlay {padding:8px}
  #atlasTripsRoot .trips-editor-body {padding:13px}
  #atlasTripsRoot .trips-editor-title {padding:14px}
  #atlasTripsRoot .trips-editor-footer {padding:12px}
}
@media(max-width:390px) {
  #atlasTripsRoot .trips-page-intro {gap:9px}
  #atlasTripsRoot .trips-page-intro h1 {font-size:23px}
  #atlasTripsRoot .trips-add-header {font-size:12px;padding:9px 12px}
  #atlasTripsRoot .trips-filters {width:100%;justify-content:space-between;gap:2px}
  #atlasTripsRoot .trips-filters button {flex:1;padding:8px 6px;font-size:11px}
  #atlasTripsRoot .trips-metric small {font-size:9px}
  #atlasTripsRoot .trips-metric {gap:5px}
  #atlasTripsRoot .trips-detail-tabs button {padding:9px 11px}
  #atlasTripsRoot .trips-quick {font-size:10px}
  #atlasTripsRoot .trips-form-grid {gap:7px}
}
@media(prefers-reduced-motion:reduce) {
  #atlasTripsRoot *,#atlasTripsRoot *::before,#atlasTripsRoot *::after {
    transition:none!important;animation:none!important;scroll-behavior:auto!important;
  }
}

/* Raise the entire Trips stacking context only while its editor is open,
   otherwise fixed app chrome (header/footer) stays in its normal order. */
body.trips-modal-open .atlas-trips-screen {
  z-index:2500;
  overflow:visible;
}

/* Compact owner navigation stays legible in a narrow Telegram WebView. */
@media(max-width:390px) {
  body:not(.atlas-public-view) .bottom-nav .nav-button {
    font-size:11px;
    gap:2px;
    padding-inline:1px;
  }
  body:not(.atlas-public-view) .bottom-nav .nav-icon svg {
    width:22px;
    height:22px;
  }
}


/* Usability pass: a clear first-run choice instead of an empty generic card. */
#atlasTripsRoot .trips-first-steps {
  display:grid;gap:17px;
  background:linear-gradient(135deg,#113844,#0b2839 75%);
  border:1px solid #356370;border-radius:20px;
  padding:clamp(16px,4vw,28px);
}
#atlasTripsRoot .trips-first-steps-intro h2 {font-size:clamp(18px,4.2vw,23px);margin:5px 0 9px}
#atlasTripsRoot .trips-first-steps-intro p {font-size:13px;color:#b1d0d8;max-width:540px}
#atlasTripsRoot .trips-first-steps-options {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
}
#atlasTripsRoot .trips-start-option {
  position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;
  text-align:left;min-width:0;min-height:132px;padding:17px 42px 17px 16px;
  color:#eafff7;background:linear-gradient(150deg,#19474b,#103c4b);
  border:1px solid #4c7c7a;border-radius:15px;
}
#atlasTripsRoot .trips-start-option:nth-child(2) {
  background:linear-gradient(150deg,#3f304f,#1a354b);
  border-color:#775775;
}
#atlasTripsRoot .trips-start-option:hover {border-color:#82e9c2;background-color:#1d5154}
#atlasTripsRoot .trips-start-emoji {font-size:31px;line-height:1.1}
#atlasTripsRoot .trips-start-option strong {font-size:15px;font-weight:800;line-height:1.3}
#atlasTripsRoot .trips-start-option small {font-size:12px;line-height:1.4;color:#b6d5dc}
#atlasTripsRoot .trips-start-option>svg {position:absolute;right:14px;bottom:18px;color:#8ceec3;width:17px;height:17px}
#atlasTripsRoot .trips-budget-notice {
  padding:10px 12px;margin:8px 0 14px!important;
  font-size:12px;color:#ffe5bd;background:#483a2a;border:1px solid #806746;
  border-radius:10px;line-height:1.5;
}
#atlasTripsRoot .trips-stay-rate .trips-unpriced {color:#ffc9a8;font-weight:650}

/* Editing only what matters first; advanced controls are still available. */
#atlasTripsRoot .trips-extra-details {
  margin:0;background:#0e2e3c;border:1px solid #345b68;
  border-radius:12px;overflow:hidden;
}
#atlasTripsRoot .trips-extra-details summary {
  cursor:pointer;padding:13px 12px;font-size:12px;font-weight:800;
  color:#9dedd0;list-style-position:inside;
}
#atlasTripsRoot .trips-extra-details summary:focus-visible {outline:2px solid #69f0b3;outline-offset:-3px}
#atlasTripsRoot .trips-extra-content {
  display:flex;flex-direction:column;gap:14px;
  padding:13px 12px 15px;border-top:1px solid #355665;
}
#atlasTripsRoot .trips-currency-warning {
  padding:10px;border:1px solid #ba795a;background:#4a342d;
  color:#ffe5cf;border-radius:9px;font-size:12px;line-height:1.5;
}
#atlasTripsRoot .trips-currency-warning label {display:flex;align-items:flex-start;gap:9px}
#atlasTripsRoot .trips-currency-warning input {width:19px;height:19px;flex:none;accent-color:#69f0b3;margin-top:2px}
#atlasTripsRoot .trips-currency-warning[hidden],
#atlasTripsRoot .trips-discard-prompt[hidden] {display:none!important}
#atlasTripsRoot .trips-form-error:not(:empty) {
  background:#492e39;color:#ffdbe0;border:1px solid #a86175;
  padding:10px 12px;border-radius:10px;
  font-size:12px;line-height:1.5;
}
#atlasTripsRoot .trips-discard-prompt {
  display:flex;flex-direction:column;gap:8px;
  padding:12px 17px;background:#422f35;border-bottom:1px solid #865a67;
  color:#ffe8e5;font-size:12px;line-height:1.45;
}
#atlasTripsRoot .trips-discard-prompt strong {font-size:13px;color:#fff1ee}
#atlasTripsRoot .trips-discard-prompt>div {display:flex;flex-wrap:wrap;gap:9px}
#atlasTripsRoot .trips-discard-prompt button {
  display:flex;align-items:center;gap:6px;
  padding:8px 10px;min-height:37px;background:#2c4c57;
  color:#dff2f1;border:1px solid #65818a;border-radius:9px;
  font-size:12px;font-weight:800;
}
#atlasTripsRoot .trips-discard-prompt button:last-child {background:#8b3d50;border-color:#b65a73;color:#fff}
#atlasTripsRoot .trips-discard-prompt svg {width:16px;height:16px}
#atlasTripsRoot .trips-status-edit {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:12px;padding:10px 13px;
  color:#9fc3cd;background:#0f3140;border:1px solid #305c69;
  border-radius:12px;font-size:12px;font-weight:700;
}
#atlasTripsRoot .trips-status-edit select {
  min-width:0;max-width:60%;padding:8px 28px 8px 10px;
  color:#89f8c4;background:#123d46;border:1px solid #457e75;
  border-radius:9px;font-size:12px;font-weight:800;color-scheme:dark;
}
@media(max-width:760px) {
  #atlasTripsRoot .trips-first-steps-options {grid-template-columns:minmax(0,1fr)}
  #atlasTripsRoot .trips-start-option {
    min-height:104px;padding:14px 36px 14px 14px;gap:5px;
  }
  #atlasTripsRoot .trips-start-emoji {font-size:25px}
  /* Four equal sections, including the unified route. */
  #atlasTripsRoot .trips-detail-tabs {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;overflow:visible;
  }
  #atlasTripsRoot .trips-detail-tabs button {
    grid-column:auto;min-width:0;padding:10px 3px;font-size:11px;
    border-radius:8px;line-height:1.3;
  }
}
@media(max-width:390px) {
  #atlasTripsRoot .trips-filters {gap:0;padding:3px}
  #atlasTripsRoot .trips-filters button {font-size:10px;padding:8px 3px;gap:3px}
  #atlasTripsRoot .trips-filters small {font-size:10px}
  #atlasTripsRoot .trips-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  #atlasTripsRoot .trips-metric strong {font-size:15px}
  #atlasTripsRoot .trips-start-option strong {font-size:14px}
}


/* Trips have their own title, hero and overview. The global atlas header
   (logo + country/city/wishlist counters) only belongs to the map screens.
   Reclaim its height without affecting Map, Search, Tickets or public view. */
body.show-trips:not(.atlas-public-view) > .topbar {
  display:none!important;
}
body.show-trips:not(.atlas-public-view) #tripsScreen {
  top:env(safe-area-inset-top,0px);
}

/* The preparation checklist now lives immediately below route highlights
   on the trip overview, with concise completion feedback. */
#atlasTripsRoot .trips-checklist-panel .trips-panel-title {
  align-items:center;
}
#atlasTripsRoot .trips-check-progress {
  display:block;
  margin-top:5px;
  font-size:11px;
  font-weight:600;
  color:#9ac8c8;
}
#atlasTripsRoot .trips-checklist-panel .trips-check-row {
  min-height:40px;
}
#atlasTripsRoot .trips-checklist-panel .trips-check-row:has(input:checked) {
  background:#10352f;
  border-color:#2d6855;
}
#atlasTripsRoot .trips-checklist-panel .trips-check-row label {
  cursor:pointer;
}


/* One ordered route for transport, accommodation and attractions. */
#atlasTripsRoot .trips-route-header h2 {font-size:19px;line-height:1.3}
#atlasTripsRoot .trips-route-header p {font-size:12px;color:#a2c2cc;margin-top:6px;line-height:1.5}
#atlasTripsRoot .trips-route-add {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#atlasTripsRoot .trips-route-add-btn {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  min-width:0;min-height:82px;padding:10px 5px;border-radius:13px;
  color:#d9fff0;background:#123b47;border:1px solid #397668;
  font-size:11px;font-weight:750;text-align:center;line-height:1.4;
}
#atlasTripsRoot .trips-route-add-btn svg {width:25px;height:25px;flex:none;color:#77f6bb}
#atlasTripsRoot .trips-route-add-btn span {
  display:block;width:100%;min-width:0;
  white-space:normal;overflow-wrap:anywhere;hyphens:auto;
}
#atlasTripsRoot .trips-route-timeline {padding-left:15px;border-left:2px solid #2d5e61;margin:5px 0 0 13px}
#atlasTripsRoot .trips-route-timeline .trips-day-label {margin:18px 0 12px 15px}
#atlasTripsRoot .trips-route-step-wrap {position:relative;margin:0 0 12px 15px}
#atlasTripsRoot .trips-route-number {
  position:absolute;left:-45px;top:15px;z-index:1;
  display:grid;place-items:center;width:33px;height:33px;border-radius:50%;
  color:#f1fff9;background:#155443;border:3px solid #0e303e;
  font-size:17px;line-height:1;
}
#atlasTripsRoot .trips-route-step {border-left:3px solid #72f1b8}
#atlasTripsRoot .trips-route-kind {
  display:inline-flex;margin-bottom:7px;padding:3px 8px;border-radius:30px;
  background:#1c514c;color:#a9ffd7;font-size:10px;font-weight:800;
}
#atlasTripsRoot .trips-route-step .trips-item-head strong {font-size:14px;line-height:1.35}
#atlasTripsRoot .trips-route-controls {
  display:flex;align-items:center;justify-content:flex-end;gap:7px;
  flex-wrap:wrap;margin-top:12px;padding-top:9px;border-top:1px solid #31545c;
}
#atlasTripsRoot .trips-route-move {
  display:inline-flex;align-items:center;gap:4px;
  min-height:32px;padding:5px 8px;border-radius:8px;
  background:#194955;border:1px solid #396c73;color:#c1f5e4;
  font-size:11px;font-weight:700;
}
#atlasTripsRoot .trips-route-move svg {width:15px;height:15px}
#atlasTripsRoot .trips-route-move:disabled {opacity:.35;cursor:default}
@media(max-width:390px) {
  #atlasTripsRoot .trips-route-add-btn {font-size:10px;min-height:78px;padding:9px 3px}
  #atlasTripsRoot .trips-route-step {gap:8px;padding:10px}
  #atlasTripsRoot .trips-route-step .trips-service-symbol {width:34px;height:34px;font-size:18px}
}


/* Flat trip settings, unified date range picker, and country ticket cover. */
#atlasTripsRoot .trips-settings-section {
  display:flex;flex-direction:column;gap:12px;
  padding:14px 13px;border-radius:14px;
  background:#0d2d3b;border:1px solid #355a68;min-width:0;
}
#atlasTripsRoot .trips-settings-section h3 {font-size:14px;font-weight:850;color:#c5ffdf;margin:0}
#atlasTripsRoot .trips-range-picker {display:flex;flex-direction:column;gap:7px;min-width:0}
#atlasTripsRoot .trips-range-label {font-size:12px;font-weight:750;color:#e1f2f3}
#atlasTripsRoot .trips-range-trigger {
  box-sizing:border-box;display:flex;align-items:center;gap:9px;
  width:100%;min-height:48px;padding:10px 20px 10px 12px;min-width:0;
  text-align:left;color:#eafff5;background:#0c3040;
  border:1px solid #488678;border-radius:11px;font-size:13px;font-weight:750;
}
#atlasTripsRoot .trips-range-trigger svg {width:18px;height:18px;flex:none;color:#8cf0c1}
#atlasTripsRoot .trips-range-trigger svg:last-child {margin-left:auto;width:14px;height:14px}
#atlasTripsRoot .trips-range-trigger span {flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}
#atlasTripsRoot .trips-range-trigger:focus-visible,
#atlasTripsRoot .trips-range-nav:focus-visible,
#atlasTripsRoot .trips-range-day:focus-visible {outline:2px solid #7cfac6;outline-offset:2px}
#atlasTripsRoot .trips-range-popover {
  display:flex;flex-direction:column;gap:9px;min-width:0;
  padding:12px;border:1px solid #457267;border-radius:13px;
  background:#092b36;
}
#atlasTripsRoot .trips-range-popover[hidden] {display:none!important}
#atlasTripsRoot .trips-range-nav-row {display:flex;justify-content:space-between;align-items:center;gap:12px}
#atlasTripsRoot .trips-range-nav-row strong {font-size:14px;font-weight:800;text-transform:capitalize}
#atlasTripsRoot .trips-range-nav {
  box-sizing:border-box;appearance:none;-webkit-appearance:none;
  width:36px;height:36px;min-width:36px;min-height:36px;
  display:flex;align-items:center;justify-content:center;flex:0 0 36px;
  margin:0;padding:0;line-height:0;text-align:center;
  color:#ccffe4;background:#174b4d;border:1px solid #417d74;
  border-radius:9px;cursor:pointer;
}
#atlasTripsRoot .trips-range-nav svg {
  display:block;flex:none;width:18px;height:18px;
  margin:0;padding:0;stroke:currentColor;
}
#atlasTripsRoot .trips-range-weekdays,#atlasTripsRoot .trips-range-days {
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;
}
#atlasTripsRoot .trips-range-weekdays span {
  text-align:center;color:#acc9cf;font-size:11px;font-weight:750;padding:6px 0;
}
#atlasTripsRoot .trips-range-day {
  min-width:0;aspect-ratio:1;min-height:31px;padding:0;
  display:grid;place-items:center;border:1px solid transparent;border-radius:8px;
  background:#123b49;color:#ecf5f4;font-size:12px;font-weight:700;
}
#atlasTripsRoot .trips-range-day:hover {border-color:#7dd5b3;background:#1a5555}
#atlasTripsRoot .trips-range-day.is-between {background:#1c524c;color:#dcffea}
#atlasTripsRoot .trips-range-day.is-selected {
  background:#71f3b2;color:#093126;border-color:#9affcf;font-weight:900;
}
#atlasTripsRoot .trips-range-blank {min-width:0}
#atlasTripsRoot .trips-range-foot {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
#atlasTripsRoot .trips-range-foot small {color:#abcdd2;font-size:11px;line-height:1.4}
#atlasTripsRoot .trips-range-clear {
  display:flex;align-items:center;gap:6px;padding:7px 9px;min-height:33px;
  color:#ffbdc5;background:#163c49;border:1px solid #52656d;border-radius:9px;
  font-size:11px;font-weight:750;
}
#atlasTripsRoot .trips-range-clear svg {width:14px;height:14px}


/* Bottom add-step picker: always visible after the last route item. */
#atlasTripsRoot .trips-route-add-bottom {
  display:flex;flex-direction:column;gap:10px;
  margin-top:7px;padding:15px;border:1px dashed #568b7b;
  border-radius:15px;background:#0e323b;
}
#atlasTripsRoot .trips-route-add-toggle {
  width:100%;min-height:48px;display:flex;gap:9px;
  justify-content:center;align-items:center;
}
#atlasTripsRoot .trips-route-add-options {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
}
#atlasTripsRoot .trips-route-add-options[hidden] {display:none!important}
#atlasTripsRoot .trips-route-add-choice {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;min-width:0;min-height:75px;padding:10px 5px;
  border-radius:11px;border:1px solid #407c77;
  background:#174651;color:#e6ffef;font-size:11px;font-weight:750;text-align:center;
}
#atlasTripsRoot .trips-route-add-choice svg {width:22px;height:22px;color:#89f8c1;flex:none}
#atlasTripsRoot .trips-route-add-choice span {min-width:0;max-width:100%;overflow-wrap:anywhere}
#atlasTripsRoot .trips-route-add-choice:hover {border-color:#7ff4c0;background:#1b5959}

/* Multiple transfer stops within one transport step. */
#atlasTripsRoot .trips-transfer-toggle {
  display:flex;align-items:center;gap:11px;min-height:47px;
  padding:11px 12px;border:1px solid #3b7068;border-radius:12px;
  background:#103945;color:#e0f8ee;font-size:13px;font-weight:750;cursor:pointer;
}
#atlasTripsRoot .trips-transfer-toggle input {
  width:19px;height:19px;flex:none;margin:0;accent-color:#6ef1b3;
}
#atlasTripsRoot .trips-transfer-section {
  display:flex;flex-direction:column;gap:12px;min-width:0;
  padding:13px;border:1px solid #3a675f;border-radius:13px;background:#0a2a36;
}
#atlasTripsRoot .trips-transfer-section[hidden] {display:none!important}
#atlasTripsRoot .trips-transfer-list {display:flex;flex-direction:column;gap:11px}
#atlasTripsRoot .trips-transfer-row {
  display:flex;flex-direction:column;gap:11px;min-width:0;
  padding:12px;background:#123c49;border:1px solid #426c74;border-radius:12px;
}
#atlasTripsRoot .trips-transfer-row-header {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
#atlasTripsRoot .trips-transfer-row-header strong {font-size:12px;color:#b6ffe0}
#atlasTripsRoot .trips-transfer-section>.trips-inline-add {align-self:flex-start}
#atlasTripsRoot .trips-transfer-route {
  margin-top:12px;padding:11px;border-radius:11px;
  border:1px solid #346d69;background:#103945;
}
#atlasTripsRoot .trips-transfer-route>strong {font-size:12px;color:#a3ffce}
#atlasTripsRoot .trips-transfer-route ol {margin:8px 0 0;padding-left:23px;display:flex;flex-direction:column;gap:10px}
#atlasTripsRoot .trips-transfer-route li {font-size:12px;color:#edfff7}
#atlasTripsRoot .trips-transfer-route li b {display:block;font-weight:750}
#atlasTripsRoot .trips-transfer-route li small {
  display:block;margin-top:3px;overflow-wrap:anywhere;color:#b1d4d9;font-size:11px;
}

/* Built-in checklist groups plus independently named custom categories. */
#atlasTripsRoot .trips-check-groups {display:flex;flex-direction:column;gap:9px}
#atlasTripsRoot .trips-check-group {
  padding:10px 11px 8px;border-radius:13px;
  background:#0c2c39;border:1px solid #32616c;min-width:0;
}
#atlasTripsRoot .trips-check-group.is-import-open {
  position:relative;z-index:15;
}
#atlasTripsRoot .trips-check-group-header {
  position:relative;
  display:flex;align-items:center;justify-content:space-between;
  gap:7px;margin-bottom:6px;min-width:0;
}
#atlasTripsRoot .trips-check-group-heading {
  display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 auto;
  touch-action:none;user-select:none;-webkit-user-select:none;
}
#atlasTripsRoot .trips-check-group-name {min-width:0;flex:1}
#atlasTripsRoot .trips-check-group-heading h3.trips-check-title-nowrap {
  white-space:nowrap;word-break:normal;overflow-wrap:normal;
}
#atlasTripsRoot .trips-check-drag-handle {
  display:grid;place-items:center;flex:none;
  width:20px;height:38px;color:#80afa8;cursor:grab;
  border-radius:5px;
}
#atlasTripsRoot .trips-check-drag-handle svg {width:16px;height:17px}
#atlasTripsRoot .trips-check-drag-handle:focus-visible {
  outline:2px solid #89edbe;outline-offset:1px;
}
#atlasTripsRoot .trips-check-group.is-check-dragging {
  position:relative;z-index:5;opacity:.9;
  border-color:#a1fbd1;box-shadow:0 8px 22px #051821ad;
  pointer-events:none;
}
#atlasTripsRoot .trips-check-group.trips-check-drop-before {
  box-shadow:inset 0 4px 0 #8df6bf;
}
#atlasTripsRoot .trips-check-group.trips-check-drop-after {
  box-shadow:inset 0 -4px 0 #8df6bf;
}
#atlasTripsRoot .trips-check-group-content[hidden] {display:none!important}
#atlasTripsRoot .trips-check-collapse {
  display:grid;place-items:center;flex:none;
  width:34px;height:34px;margin-left:10px;padding:6px;
  border:1px solid #3a6870;border-radius:9px;
  background:#153a44;color:#b5e7d2;
}
#atlasTripsRoot .trips-check-collapse:hover {
  border-color:#74ab9d;background:#22515a;
}
#atlasTripsRoot .trips-check-collapse svg {
  width:18px;height:18px;transition:transform .15s ease;
}
#atlasTripsRoot .trips-check-collapse[aria-expanded="false"] svg {transform:rotate(-90deg)}
#atlasTripsRoot .trips-check-group-emoji {
  display:grid;place-items:center;width:36px;height:36px;flex:none;
  border-radius:10px;background:#1c524b;font-size:20px;
}
#atlasTripsRoot .trips-check-group-heading h3 {
  font-size:14px;font-weight:800;color:#eafff7;overflow-wrap:anywhere;line-height:1.3;
}
#atlasTripsRoot .trips-check-group-heading small {
  display:block;margin-top:3px;font-size:10px;color:#a8cbd1;
}
#atlasTripsRoot .trips-check-group-actions {
  display:flex;gap:6px;flex:0 1 auto;min-width:0;
  flex-wrap:wrap;align-items:center;justify-content:flex-end;
}
#atlasTripsRoot .trips-check-group .trips-muted {padding:5px 0}
#atlasTripsRoot .trips-check-row-actions {display:flex;align-items:center;gap:5px;flex:none}
#atlasTripsRoot .trips-check-row-actions .trips-mini-icon {min-width:33px;min-height:33px}
/* Quick checklist entry stays directly under each category, with no modal. */
#atlasTripsRoot .trips-check-quick-add {
  display:flex;align-items:stretch;gap:7px;min-width:0;
  margin-top:7px;
}
#atlasTripsRoot .trips-check-quick-add input {
  flex:1;min-width:0;height:42px;min-height:42px;max-height:42px;
  padding:9px 11px;border:1px solid #47766f;border-radius:9px;
  background:#103440;color:#eafff5;font-size:13px;
}
#atlasTripsRoot .trips-check-quick-add input::placeholder {color:#94b7bc}
#atlasTripsRoot .trips-check-quick-add button {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  flex:none;align-self:center;height:42px;min-height:42px;max-height:42px;
  padding:0 11px;line-height:1;white-space:nowrap;
  border:1px solid #5db28f;border-radius:9px;
  background:#205948;color:#d6ffe9;
  font-size:12px;font-weight:800;
}
#atlasTripsRoot .trips-check-quick-add button svg {width:15px;height:15px}
#atlasTripsRoot .trips-check-quick-add button:hover {background:#287055}
#atlasTripsRoot .trips-check-import-toggle {
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;min-height:34px;padding:7px 10px;
  border:1px solid #65b99e;border-radius:9px;
  background:#205747;color:#e0fff0;
  font-size:11px;font-weight:750;line-height:1.2;
  white-space:nowrap;text-align:center;
}
#atlasTripsRoot .trips-check-import-toggle:hover,
#atlasTripsRoot .trips-check-import-toggle[aria-expanded="true"] {
  background:#2b7158;border-color:#98e2b8;color:#fff;
}
/* Popover anchors to the import button's header rather than occupying
   the bottom of a potentially long checklist. It covers rows below. */
#atlasTripsRoot .trips-check-import-panel {
  position:absolute;z-index:5;
  top:calc(100% + 5px);right:0;
  width:min(350px,100%);max-width:100%;
  display:flex;flex-direction:column;gap:9px;min-width:0;
  margin:0;padding:12px;border:1px solid #5b9688;
  border-radius:11px;background:#103440;
  box-shadow:0 14px 36px #021a25d9;
}
#atlasTripsRoot .trips-check-import-panel[hidden] {display:none!important}
#atlasTripsRoot .trips-check-import-panel label {
  display:flex;flex-direction:column;gap:6px;
  min-width:0;color:#dbf8ed;font-size:12px;font-weight:750;
}
#atlasTripsRoot .trips-check-import-panel select {
  width:100%;max-width:100%;min-width:0;min-height:42px;
  border:1px solid #50867c;border-radius:9px;
  background:#163e49;color:#edfff6;padding:8px 10px;font-size:12px;
}
#atlasTripsRoot .trips-check-import-submit {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  align-self:flex-start;min-height:38px;padding:9px 12px;
  font-size:12px;font-weight:800;line-height:1.3;
  white-space:nowrap;
}
#atlasTripsRoot .trips-check-import-submit svg {
  width:16px;height:16px;flex:none;display:block;
}
#atlasTripsRoot .trips-check-import-submit span {
  display:inline-block;line-height:1.3;
}
/* Compact screens: the arrow stays in the top-right corner,
   and importing appears separately on the following line. */
@media(max-width:520px) {
  #atlasTripsRoot .trips-check-group-header {flex-wrap:wrap;row-gap:8px}
  #atlasTripsRoot .trips-check-group-heading {
    order:0;flex:1 1 calc(100% - 52px);
  }
  #atlasTripsRoot .trips-check-collapse {
    order:1;margin-left:auto;
  }
  #atlasTripsRoot .trips-check-group-actions {
    order:2;flex:1 1 100%;margin-left:27px;justify-content:flex-start;
  }
}
@media(max-width:390px) {
  #atlasTripsRoot .trips-check-row {gap:6px;padding:8px}
  #atlasTripsRoot .trips-route-add-choice {font-size:10px;min-height:73px}
}


/* Optional custom checklist categories come after the built-in groups. */
#atlasTripsRoot .trips-check-add-category {
  width:100%;min-height:50px;margin-top:13px;
  display:flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 14px;border:1px dashed #6ab89a;border-radius:13px;
  background:#133f43;color:#9dfbd1;font-weight:800;font-size:13px;
}
#atlasTripsRoot .trips-check-add-category svg {width:19px;height:19px;flex:none}
#atlasTripsRoot .trips-check-add-category:hover {
  border-color:#98ffd1;background:#1b514c;
}
#atlasTripsRoot .trips-check-add-category:focus-visible {
  outline:2px solid #8cffce;outline-offset:3px;
}

/* City stays visually own each night; matching places sit inside that day. */
#atlasTripsRoot .trips-city-stay {
  min-width:0;margin:0 0 18px 15px;padding:13px 11px 12px;
  border:1px solid #448f78;border-left:4px solid #76f1b3;
  border-radius:16px;
  background:linear-gradient(150deg,#164c45 0%,#103e40 42%,#0b303e 100%);
  box-shadow:0 5px 22px #031b2180;
}
#atlasTripsRoot .trips-city-stay-head {
  display:flex;align-items:center;gap:10px;margin-bottom:13px;min-width:0;
}
#atlasTripsRoot .trips-city-stay-emoji {
  display:grid;place-items:center;flex:none;
  width:38px;height:38px;border:1px solid #68c89f;
  border-radius:11px;background:#17644f;font-size:22px;
}
#atlasTripsRoot .trips-city-stay-head>div {min-width:0;flex:1}
#atlasTripsRoot .trips-city-stay-head strong {
  display:block;font-size:16px;font-weight:850;color:#c4ffdc;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-city-stay-head small {
  display:block;margin-top:4px;color:#bde1d5;
  font-size:11px;line-height:1.5;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-city-stay>.trips-route-step-wrap {margin:0 0 13px 0}
#atlasTripsRoot .trips-city-stay .trips-route-step {min-width:0}
#atlasTripsRoot .trips-city-stay-days {
  display:flex;flex-direction:column;gap:9px;
}
#atlasTripsRoot .trips-city-stay-day {
  min-width:0;padding:10px 9px;border:1px solid #3c7469;
  border-radius:12px;background:#0c3440;
}
#atlasTripsRoot .trips-city-stay-day-head {
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  padding-bottom:8px;margin-bottom:7px;border-bottom:1px solid #366362;
}
#atlasTripsRoot .trips-city-stay-day-head strong {
  color:#89f9bd;font-size:12px;font-weight:850;
}
#atlasTripsRoot .trips-city-stay-day-head span {color:#e5fff3;font-size:12px}
#atlasTripsRoot .trips-city-stay-day-head small {
  margin-left:auto;color:#add5cc;font-size:10px;
}
#atlasTripsRoot .trips-city-stay-places {
  display:flex;flex-direction:column;gap:8px;
}
#atlasTripsRoot .trips-stay-place-step {min-width:0}
#atlasTripsRoot .trips-route-nested {
  background:#164550;border:1px solid #4c8076;
  border-left:3px solid #9cf8c9;padding:10px;gap:9px;
}
#atlasTripsRoot .trips-route-nested .trips-service-symbol {
  width:33px;height:33px;font-size:18px;border-radius:9px;
}
#atlasTripsRoot .trips-route-nested .trips-route-controls {margin-top:8px}
#atlasTripsRoot .trips-city-stay-empty {
  font-size:11px;line-height:1.5;color:#9abcbf;overflow-wrap:anywhere;
}
@media(max-width:390px){
  #atlasTripsRoot .trips-city-stay {margin-left:10px;padding:11px 7px 10px}
  #atlasTripsRoot .trips-city-stay-day {padding:9px 6px}
  #atlasTripsRoot .trips-route-nested .trips-service-symbol {width:28px;height:28px;font-size:16px}
  #atlasTripsRoot .trips-route-nested {padding:8px;gap:7px}
}


/* Hotel rating is numeric in the editor and shown as discreet gold stars. */
#atlasTripsRoot .trips-hotel-stars {
  flex:none;display:inline-block;align-self:flex-start;
  margin-left:auto;padding-top:1px;color:#ffd279;
  font-size:15px;font-weight:800;line-height:1.25;
  letter-spacing:1px;white-space:nowrap;
}
#atlasTripsRoot .trips-item-head:has(.trips-hotel-stars) {
  flex-wrap:wrap;align-items:center;
}
#atlasTripsRoot .trips-item-head:has(.trips-hotel-stars) strong {flex:1;min-width:45%}

@media(max-width:390px) {
  #atlasTripsRoot .trips-hotel-stars {font-size:13px;letter-spacing:0}
}

/* City names are plain text with a small inline pencil. Editing happens
   in the same position, without an extra block, border or fill. */
#atlasTripsRoot .trips-city-stay-head {flex-wrap:wrap}
#atlasTripsRoot .trips-city-stay-title {min-width:0;flex:1}
#atlasTripsRoot .trips-city-name-row {
  display:flex;align-items:center;min-width:0;width:100%;
}
#atlasTripsRoot .trips-city-name-trigger {
  display:inline-flex;align-items:center;gap:6px;min-width:0;
  max-width:100%;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;color:inherit;
  text-align:left;line-height:inherit;cursor:text;
}
#atlasTripsRoot .trips-city-name-trigger strong {
  display:block;min-width:0;overflow-wrap:anywhere;
  font-size:16px;font-weight:850;color:#c4ffdc;
}
#atlasTripsRoot .trips-city-name-trigger svg {
  flex:none;width:13px;height:13px;color:#bde1d5;
}
#atlasTripsRoot .trips-city-inline-input {
  display:block;flex:1;min-width:0;max-width:100%;
  margin:0;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;
  color:#c4ffdc;font-size:16px;font-weight:850;
  line-height:inherit;caret-color:#c4ffdc;
  outline:none;-webkit-appearance:none;appearance:none;
}
#atlasTripsRoot .trips-city-inline-input:focus {
  border:0;background:transparent;box-shadow:none;outline:none;
}
#atlasTripsRoot .trips-city-name-trigger[hidden],
#atlasTripsRoot .trips-city-inline-input[hidden] {display:none!important}

/* 24-hour transport times are always typed as HH:MM, regardless of device locale. */
#atlasTripsRoot .trips-field input[name="departure"],
#atlasTripsRoot .trips-field input[name="arrivalTime"],
#atlasTripsRoot .trips-field input[name="transferArrivalTime"],
#atlasTripsRoot .trips-field input[name="transferDepartureTime"] {
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
  letter-spacing:.025em;
}


/* In form selects and status selects, place a predictable chevron comfortably
   inside the control instead of relying on platform-specific edge arrows. */
#atlasTripsRoot .trips-field select,
#atlasTripsRoot .trips-status-edit select {
  appearance:none;-webkit-appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239edfc7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 17px center;
}

/* Empty lodging days no longer occupy space; users add a place from the city. */
#atlasTripsRoot .trips-city-add-place {
  display:flex;align-items:center;justify-content:center;gap:9px;
  width:100%;min-height:44px;margin-top:12px;padding:10px 14px;
  border:1px dashed #69b69d;border-radius:11px;
  background:#16483f;color:#c0ffe3;font-size:12px;font-weight:800;
}
#atlasTripsRoot .trips-city-add-place svg {
  display:block;flex:none;width:17px;height:17px;
}
#atlasTripsRoot .trips-city-add-place:hover {border-color:#a5fcd3;background:#1c6052}
#atlasTripsRoot .trips-city-add-place:focus-visible {
  outline:2px solid #8dffd0;outline-offset:2px;
}


/* Dense hotel-day itinerary: date, place, city and two direct actions. */
#atlasTripsRoot .trips-city-stay {margin-bottom:10px;padding-bottom:9px}
#atlasTripsRoot .trips-city-stay-head {margin-bottom:8px;gap:7px}
#atlasTripsRoot .trips-city-stay>.trips-route-step-wrap {margin-bottom:7px}
#atlasTripsRoot .trips-city-stay-days {gap:4px;margin-top:5px}
#atlasTripsRoot .trips-city-stay-day {
  padding:7px 9px;border-radius:9px;background:#103941;
}
#atlasTripsRoot .trips-city-stay-day-head {
  display:flex;align-items:center;justify-content:flex-start;
  gap:8px;flex-wrap:wrap;margin:0 0 4px;padding:0;
  border:0;line-height:1.35;
}
#atlasTripsRoot .trips-city-stay-day-head strong {font-size:11px}
#atlasTripsRoot .trips-city-stay-day-head span {font-size:11px}
#atlasTripsRoot .trips-city-stay-places {display:flex;flex-direction:column;gap:0}
#atlasTripsRoot .trips-day-compact-place {
  display:flex;align-items:center;justify-content:space-between;
  min-width:0;gap:8px;padding:5px 0;
}
#atlasTripsRoot .trips-day-compact-place + .trips-day-compact-place {
  border-top:1px solid #31535b;
}
#atlasTripsRoot .trips-day-compact-place-info {min-width:0;flex:1}
#atlasTripsRoot .trips-day-compact-place-info strong {
  display:block;color:#ebfff8;font-size:12px;line-height:1.3;
  font-weight:800;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-day-compact-place-info small {
  display:flex;align-items:center;gap:4px;
  margin-top:2px;font-size:10px;line-height:1.2;
  color:#a9d7cc;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-day-compact-place-info small svg {
  width:11px;height:11px;flex:none;
}
#atlasTripsRoot .trips-day-compact-actions {
  display:flex;align-items:center;gap:3px;flex:none;
}
#atlasTripsRoot .trips-day-compact-actions .trips-mini-icon {
  min-width:30px;min-height:30px;width:30px;height:30px;
  display:flex;align-items:center;justify-content:center;padding:5px;
}
#atlasTripsRoot .trips-day-compact-actions svg {width:14px;height:14px}
#atlasTripsRoot .trips-city-add-place {
  min-height:37px;margin-top:7px;padding:7px 12px;
  border-radius:9px;font-size:11px;
}
/* Keep lodging delete directly under edit, not in the footer. */
#atlasTripsRoot .trips-route-card-actions {
  flex:none;display:flex;align-items:center;gap:4px;
}
#atlasTripsRoot .trips-route-card-actions-vertical {
  flex-direction:column;align-items:center;gap:4px;
}
#atlasTripsRoot .trips-route-card-actions-vertical .trips-mini-icon {
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;min-width:32px;min-height:32px;padding:5px;
}
#atlasTripsRoot .trips-route-card-actions-vertical svg {width:15px;height:15px}
#atlasTripsRoot .trips-city-stay .trips-route-step {padding:10px;gap:9px}
#atlasTripsRoot .trips-city-stay .trips-service-symbol {width:33px;height:33px;font-size:18px}
/* Explicit transfer stops and consecutive transports share one design.
   Each saved transport still owns its own edit/delete actions. */
#atlasTripsRoot .trips-transfer-chain {
  margin:0 0 10px 15px;padding:10px;
  border:1px solid #4d887e;border-left:4px solid #8aefd0;
  border-radius:13px;background:#113946;min-width:0;
}
#atlasTripsRoot .trips-transfer-chain-head {
  display:flex;align-items:center;gap:9px;margin-bottom:8px;min-width:0;
}
#atlasTripsRoot .trips-transfer-chain-head>span {flex:none;font-size:21px}
#atlasTripsRoot .trips-transfer-chain-head>div {min-width:0;flex:1}
#atlasTripsRoot .trips-transfer-chain-head strong {
  display:block;color:#d5ffe9;font-size:13px;
}
#atlasTripsRoot .trips-transfer-chain-head small {
  display:block;color:#b5d8d9;font-size:11px;
  margin-top:3px;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-transfer-chain-head b {
  color:#b9ffe2;font-size:12px;white-space:nowrap;
}
/* The header sits on top. All legs are directly underneath it,
   stacked within the transport card rather than scrolling off-screen. */
#atlasTripsRoot .trips-transfer-chain-legs {
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  width:100%;max-width:100%;min-width:0;
  overflow:visible;
}
#atlasTripsRoot .trips-transfer-chain-leg {
  display:block;width:100%;max-width:100%;min-width:0;
  padding:10px 11px;
  border:1px solid #376773;border-radius:9px;background:#12303d;
}
#atlasTripsRoot .trips-transfer-chain-leg-info {width:100%}
#atlasTripsRoot .trips-transfer-chain-leg-info {flex:1;min-width:0}
#atlasTripsRoot .trips-transfer-chain-leg-info>* {
  display:block;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-transfer-chain-leg-info small {
  color:#8becc3;font-size:10px;margin-bottom:3px;
}
#atlasTripsRoot .trips-transfer-chain-leg-info strong {
  font-size:12px;color:#e8fdf5;margin-bottom:5px;
}
#atlasTripsRoot .trips-transfer-chain-leg-info span {
  font-size:10px;line-height:1.45;color:#bbd7db;margin-top:3px;
}
#atlasTripsRoot .trips-transfer-chain-leg-info .trips-ext {display:inline-flex}
#atlasTripsRoot .trips-budget-note {
  margin:0 0 9px;color:#91b4c0;font-size:11px;line-height:1.45;
}
@media(max-width:390px) {
  #atlasTripsRoot .trips-city-stay-day {padding:6px 7px}
  #atlasTripsRoot .trips-transfer-chain {margin-left:9px;padding:7px}
  #atlasTripsRoot .trips-transfer-chain-head {flex-wrap:wrap}
  #atlasTripsRoot .trips-transfer-chain-head b {margin-left:auto}
  #atlasTripsRoot .trips-day-compact-actions .trips-mini-icon {
    min-width:29px;min-height:29px;width:29px;height:29px;
  }
}


/* Trip card has an independently accessible delete button; opening the trip
   does not swallow delete clicks and there is no decorative right chevron. */
#atlasTripsRoot .trips-card-open {
  display:flex;align-items:stretch;flex:1;min-width:0;width:100%;min-height:inherit;
  padding:0;border:0;text-align:left;background:transparent;color:inherit;
  border-radius:inherit;cursor:pointer;
}
#atlasTripsRoot .trips-card-open:focus-visible {
  outline:2px solid #95ffd2;outline-offset:-3px;
}
#atlasTripsRoot .trips-card .trips-card-bottom {padding-right:39px}
#atlasTripsRoot .trips-card-delete {
  position:absolute;right:10px;bottom:8px;z-index:2;
  display:grid;place-items:center;width:33px;height:33px;padding:0;
  border:1px solid #895e71;border-radius:9px;
  background:#382a38e8;color:#ffb6c3;cursor:pointer;
}
#atlasTripsRoot .trips-card-delete svg {width:16px;height:16px}
#atlasTripsRoot .trips-card-delete:hover {background:#6d3247;border-color:#ee9baa}
#atlasTripsRoot .trips-card-delete:focus-visible {
  outline:2px solid #ffcfda;outline-offset:2px;
}
/* Trip name looks like the original unframed heading, including while typed. */
#atlasTripsRoot .trips-title-rename-trigger,
#atlasTripsRoot .trips-title-inline-input {
  box-sizing:border-box;display:inline-block;max-width:100%;
  margin:0;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;
  color:inherit;font:inherit;font-weight:inherit;line-height:inherit;
  text-align:left;text-shadow:inherit;
}
#atlasTripsRoot .trips-title-rename-trigger {
  cursor:text;overflow-wrap:anywhere;white-space:normal;
}
#atlasTripsRoot .trips-title-rename-trigger:focus-visible {
  text-decoration:underline;text-underline-offset:5px;
  outline:none;
}
#atlasTripsRoot .trips-title-inline-input {
  width:100%;min-width:0;outline:none;caret-color:#d2ffe4;
  -webkit-appearance:none;appearance:none;
}
#atlasTripsRoot .trips-title-inline-input:focus {outline:none;border:0;box-shadow:none}
#atlasTripsRoot .trips-title-inline-input[hidden],
#atlasTripsRoot .trips-title-rename-trigger[hidden] {display:none!important}
/* Uploaded JPEG previews stay private inside the trip's saved JSON. */
#atlasTripsRoot .trips-cover-upload-optional {
  display:block;font-size:11px;color:#a1bec8;margin-top:-3px;
}
#atlasTripsRoot .trips-cover-upload-preview {
  width:100%;min-height:66px;max-height:180px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;border:1px dashed #3a6a72;
  background:#0a2c37;color:#9db9c3;font-size:12px;
}
#atlasTripsRoot .trips-cover-upload-preview img {
  display:block;width:100%;height:140px;object-fit:cover;
}
#atlasTripsRoot .trips-cover-remove {
  display:inline-flex;align-items:center;gap:7px;align-self:flex-start;
  min-height:35px;padding:8px 10px;
  border:1px solid #865767;border-radius:8px;
  background:#432a39;color:#ffbaca;font-size:11px;font-weight:750;
}
#atlasTripsRoot .trips-cover-remove svg {width:14px;height:14px}
#atlasTripsRoot .trips-cover-remove[hidden] {display:none!important}
#atlasTripsRoot .trips-cover-upload-error {
  color:#ffbdc4;font-size:11px;margin:0;
}
#atlasTripsRoot .trips-cover-upload-error:empty {display:none}
@media(max-width:390px) {
  #atlasTripsRoot .trips-card .trips-card-bottom {padding-right:34px}
  #atlasTripsRoot .trips-card-delete {width:31px;height:31px}
  #atlasTripsRoot .trips-title-inline-input {font-size:inherit}
}


/* Interactive overview route: tap a particular hotel, place or transport
   leg to edit it, including each individual record in a transfer chain. */
#atlasTripsRoot .trips-compact-route {gap:8px;margin:12px 0}
#atlasTripsRoot .trips-overview-route-step {
  display:flex;align-items:center;gap:11px;width:100%;
  min-width:0;min-height:48px;padding:7px 8px;text-align:left;
  border:1px solid transparent;border-radius:10px;
  background:transparent;color:#eafdf6;cursor:pointer;
}
#atlasTripsRoot .trips-overview-route-step:hover {
  border-color:#478b78;background:#18434c;
}
#atlasTripsRoot .trips-overview-route-step:focus-visible {
  outline:2px solid #8affcb;outline-offset:2px;
}
#atlasTripsRoot .trips-overview-route-content {
  display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;
}
#atlasTripsRoot .trips-overview-route-content strong {
  display:block;font-size:13px;line-height:1.3;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-overview-route-content small {
  display:block;color:#a1bdc6;font-size:11px;
  line-height:1.4;overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-overview-route-step > svg {
  width:15px;height:15px;flex:none;color:#83edbc;
}
/* Icons in the Overview route should start at the first text line,
   not sit at the vertical midpoint of wrapped text. */
#atlasTripsRoot .trips-overview-route-step > .trips-route-entity {
  align-self:flex-start;
}
/* All transport steps, including direct journeys, share one visual card.
   Price appears once, in the heading; edit/delete actions sit underneath. */
#atlasTripsRoot .trips-transfer-chain-head {
  align-items:flex-start;justify-content:space-between;gap:9px;
}
#atlasTripsRoot .trips-transfer-chain-head > .trips-transfer-chain-title {
  flex:1;min-width:0;
}
#atlasTripsRoot .trips-transfer-chain-head > .trips-transfer-chain-head-side {
  flex:0 0 auto;min-width:65px;max-width:155px;
  display:flex;flex-direction:column;align-items:flex-end;
  gap:6px;
}
#atlasTripsRoot .trips-transfer-chain-head-side > b {
  text-align:right;color:#b9ffe2;font-size:12px;white-space:nowrap;
}
#atlasTripsRoot .trips-transfer-chain-actions {
  display:flex;flex-wrap:wrap;justify-content:flex-end;
  align-items:flex-start;gap:5px;
}
#atlasTripsRoot .trips-transfer-chain-action-pair {
  display:flex;flex-direction:column;align-items:center;gap:3px;
}
#atlasTripsRoot .trips-transfer-chain-action-pair > span {
  font-size:9px;color:#a9d9cf;line-height:1.2;
}
#atlasTripsRoot .trips-transfer-chain-action-pair > div {
  display:flex;align-items:center;gap:3px;
}
#atlasTripsRoot .trips-transfer-chain-action-pair .trips-mini-icon {
  width:29px;height:29px;min-width:29px;min-height:29px;
  display:grid;place-items:center;padding:4px;
}
#atlasTripsRoot .trips-transfer-chain-action-pair .trips-mini-icon svg {
  width:14px;height:14px;
}
#atlasTripsRoot .trips-transfer-chain-leg {display:block}
/* In overview, transport is a normal unboxed row like hotels and places. */
#atlasTripsRoot .trips-overview-transport-plain,
#atlasTripsRoot .trips-overview-transport-plain:hover {
  border:1px solid transparent;
  background:transparent;
  box-shadow:none;
}
#atlasTripsRoot .trips-merged-source-info {
  display:flex;flex-direction:column;gap:7px;padding:10px;
  border:1px solid #35616c;border-radius:10px;background:#0b2e38;
  font-size:11px;color:#c9dde0;
}
#atlasTripsRoot .trips-merged-source-info > strong {font-size:12px;color:#ddf6e9}
#atlasTripsRoot .trips-merged-source-info p {margin:0;color:#acc6c9;line-height:1.4}
#atlasTripsRoot .trips-merged-source-row {
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  padding-top:7px;border-top:1px solid #28515b;
}
#atlasTripsRoot .trips-merged-source-row > span {min-width:0;overflow-wrap:anywhere}
#atlasTripsRoot .trips-merged-source-row small {
  display:block;width:100%;color:#adc7ce;overflow-wrap:anywhere;
}
@media(max-width:390px) {
  #atlasTripsRoot .trips-transfer-chain-head > .trips-transfer-chain-head-side {max-width:132px}
  #atlasTripsRoot .trips-transfer-chain-action-pair .trips-mini-icon {
    width:27px;height:27px;min-width:27px;min-height:27px;
  }
}

/* Every individual transport/transfer leg is an accessible edit target. */
#atlasTripsRoot .trips-transfer-chain-leg[data-action="edit-transport-leg"]{
  position:relative;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
  padding-right:42px;
}
#atlasTripsRoot .trips-transfer-chain-leg[data-action="edit-transport-leg"]:hover,
#atlasTripsRoot .trips-transfer-chain-leg[data-action="edit-transport-leg"]:focus-visible{
  background:#174650;
  border-color:#61d8ad;
}
#atlasTripsRoot .trips-transfer-chain-leg[data-action="edit-transport-leg"]:focus-visible{
  outline:2px solid #8affcb;outline-offset:2px;
}
#atlasTripsRoot .trips-transfer-chain-leg-pencil{
  position:absolute;top:10px;right:10px;
  width:27px;height:27px;
  display:grid;place-items:center;
  border:1px solid #3d6f75;border-radius:8px;
  background:#173d49;color:#92ebbd;
  pointer-events:none;
}
#atlasTripsRoot .trips-transfer-chain-leg-pencil svg{width:15px;height:15px}


/* Optional hotel photo: no empty preview block when nothing was uploaded.
   A compressed private JPEG can be embedded in the Concierge itinerary. */
#atlasTripsRoot .trips-stay-photo-field {margin:7px 0 13px}
#atlasTripsRoot .trips-stay-photo-preview:empty {display:none}
#atlasTripsRoot .trips-stay-photo-preview img {
  display:block;width:100%;max-height:155px;object-fit:cover;
  border-radius:10px;border:1px solid #4b6a73;margin:7px 0;
}
#atlasTripsRoot .trips-stay-photo-error {
  color:#ffadb8;font-size:11px;margin:6px 0 0;
}
#atlasTripsRoot .trips-stay-photo-error:empty {display:none}

/* Atlas design tokens: mint/actions, pink/wishlist, gold/brand & collection. */
#atlasTripsRoot {
  --trip-gold:#E6C08B;
  --trip-mint:#62f5b4;
  --trip-wishlist:#f7a4d4;
  --trip-visited:#c45f64;
}
#atlasTripsRoot .trips-page-intro .trips-eyebrow {color:var(--trip-gold)}
#atlasTripsRoot .trips-budget-totals {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 12px;
}
#atlasTripsRoot .trips-budget-total {
  background:linear-gradient(135deg,#142f41,#0c2836);
  border:1px solid #365a69;border-radius:11px;padding:13px 12px;
  display:flex;flex-direction:column;gap:6px;min-width:0;
}
#atlasTripsRoot .trips-budget-total small {font-size:11px;color:#afcad3}
#atlasTripsRoot .trips-budget-total strong {
  font-size:clamp(15px,2.5vw,20px);line-height:1.25;color:#f1fbf8;
  overflow-wrap:anywhere;
}
#atlasTripsRoot .trips-budget-total:first-child {border-color:#aa8b5e}
#atlasTripsRoot .trips-budget-total:first-child strong {color:var(--trip-gold)}
#atlasTripsRoot .trips-check-group-meter {
  height:5px;width:min(100%,180px);border-radius:8px;overflow:hidden;
  background:#234657;margin-top:5px;
}
#atlasTripsRoot .trips-check-group-meter span {
  display:block;height:100%;background:var(--trip-mint);
  border-radius:8px;transition:width .22s ease;
}
#atlasTripsRoot .trips-city-days-toggle {
  display:flex;align-items:center;gap:7px;min-height:40px;width:100%;
  margin:6px 0 2px;padding:6px 12px;border:1px solid #35596a;
  border-radius:10px;background:#102f3d;color:#d6e9ee;
  font-size:12px;font-weight:650;text-align:left;cursor:pointer;
}
#atlasTripsRoot .trips-city-days-toggle svg {width:17px;height:17px;flex:none;color:var(--trip-mint)}
#atlasTripsRoot .trips-city-days-toggle:focus-visible {outline:2px solid var(--trip-mint);outline-offset:2px}
#atlasTripsRoot .trips-city-stay-days[hidden] {display:none!important}
#atlasTripsRoot .trips-diary-photo-selected {
  margin:2px 0 0;color:#95f1c2;font-size:12px;font-weight:650;
}
#atlasTripsRoot .trips-diary-photo-selected:empty,
#atlasTripsRoot .trips-diary-photo-error:empty {display:none}
#atlasTripsRoot .trips-diary-photo-error {color:#ffafb6;font-size:12px;margin:0}
@media(max-width:400px) {
  #atlasTripsRoot .trips-budget-totals {gap:7px}
  #atlasTripsRoot .trips-budget-total {padding:10px 8px}
}

/* Precise city search in Trips; floats over the route editor on mobile. */
#atlasTripsRoot .trips-city-picker-field {min-width:0}
#atlasTripsRoot .trips-city-picker-button {
  display:flex;align-items:center;gap:8px;justify-content:flex-start;
  width:100%;min-height:43px;margin-top:5px;padding:9px 10px;
  color:#eef9fa;text-align:left;white-space:normal;overflow-wrap:anywhere;
  background:#143948;border:1px solid #3a7880;border-radius:10px;
  cursor:pointer;font-size:13px;
}
#atlasTripsRoot .trips-city-picker-button svg {width:16px;height:16px;flex:none;color:#85e6c2}
#atlasTripsRoot .trips-city-picker-button svg:last-child {margin-left:auto}
#atlasTripsRoot .trips-city-picker-button.is-legacy-city {border-color:#d9b16b}
#atlasTripsRoot .trips-city-picker-warning {color:#e1bd83;font-size:11px}
.trips-city-picker-shade {
  position:fixed;inset:0;z-index:20000;display:flex;
  align-items:center;justify-content:center;box-sizing:border-box;
  padding:max(9px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right))
    max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));
  background:rgba(0,12,24,.86);backdrop-filter:blur(7px);
}
.trips-city-picker-dialog {
  box-sizing:border-box;width:min(100%,470px);max-height:94dvh;
  overflow-y:auto;overscroll-behavior:contain;padding:15px;
  border:1px solid #3e707c;border-radius:16px;
  background:#102b3b;color:#e6f4f4;font-family:Arial,sans-serif;
  box-shadow:0 22px 70px #0009;
}
.trips-city-picker-top {display:flex;align-items:center;justify-content:space-between;gap:12px}
.trips-city-picker-top h2 {margin:0;font-size:18px;line-height:1.2}
.trips-city-picker-top button[data-city-close] {
  display:grid;place-items:center;box-sizing:border-box;
  flex:0 0 32px;width:32px;height:32px;min-width:32px;
  margin:0;padding:0;line-height:1;
  border:1px solid #537785;border-radius:8px;
  color:#e6f4f4;background:#1d4554;cursor:pointer;
}
.trips-city-picker-top button[data-city-close] svg {
  display:block;width:18px;height:18px;flex:none;
}
.trips-city-picker-help,.trips-city-picker-custom p,.trips-city-picker-note {
  margin:9px 0;color:#a8c5ce;font-size:12px;line-height:1.4;
}
.trips-city-picker-query,.trips-city-picker-custom input,.trips-city-picker-custom select {
  box-sizing:border-box;width:100%;min-height:41px;padding:9px 10px;margin-top:5px;
  border:1px solid #3f6875;border-radius:9px;
  background:#092331;color:#ecfafa;font:inherit;font-size:14px;
}
.trips-city-picker-results {display:grid;gap:5px;max-height:min(38dvh,270px);
  align-content:start;min-height:0;overflow-y:auto;margin:6px 0;padding-right:3px}
.trips-city-picker-option {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;
  box-sizing:border-box;min-height:44px;padding:5px 10px;border:1px solid #345864;
  border-radius:10px;background:#153847;color:#f0fafb;cursor:pointer;
}
.trips-city-picker-option strong {font-size:13px;line-height:1.25}
.trips-city-picker-option span {font-size:11px;line-height:1.15;color:#a9c9cd}
.trips-city-picker-option:hover,.trips-city-picker-option:focus-visible {
  border-color:#75ecc1;background:#1c4a52;
}
.trips-city-picker-online,.trips-city-picker-custom-toggle,
.trips-city-picker-custom button[type="submit"] {
  display:block;width:100%;min-height:40px;margin:7px 0 0;
  padding:8px 12px;border-radius:10px;
  border:1px solid #548b88;background:#193e49;color:#bfffe5;
  font-size:12px;font-weight:650;cursor:pointer;
}
.trips-city-picker-custom-toggle {background:transparent;color:#bfd4dc}
.trips-city-picker-custom {margin-top:11px;padding-top:8px;
  border-top:1px solid #395867}
.trips-city-picker-custom[hidden] {display:none!important}
.trips-city-picker-custom label {display:block;margin:8px 0;font-size:12px;color:#cde1e5}
.trips-city-picker-coordinates {display:grid;grid-template-columns:1fr 1fr;gap:9px}
.trips-city-picker-error {color:#ffb2ba!important}
.trips-city-picker-custom button[type="submit"] {
  border-color:#72e5b0;background:#57d89a;color:#052a20;
}
@media(max-height:650px){
  .trips-city-picker-dialog {padding:10px 12px}
  .trips-city-picker-results {max-height:29dvh}
}
