:root {
  --travel-ink: #222a26;
  --travel-muted: #5d665f;
  --travel-accent: #8b2118;
  --travel-bg: #f7f7f2;
  --travel-surface: #fff;
  --travel-rule: #dce0d8;
  --travel-font: 'IBM Plex Sans', sans-serif;
  --travel-serif: 'Source Serif 4', Georgia, serif;
}
.t-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(680px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid var(--travel-rule);
  border-radius: 12px;
  background: var(--travel-surface);
  color: var(--travel-ink);
  font: 15px/1.6 var(--travel-font);
  box-shadow: 0 24px 90px #1119;
}
.t-dialog::backdrop { display: block; background: #101b25a8; backdrop-filter: blur(4px); }
.t-dialog *, .t-dialog *::before, .t-dialog *::after { box-sizing: border-box; }
.t-dialog button, .t-dialog a { -webkit-tap-highlight-color: transparent; }
.t-dialog button { font: inherit; cursor: pointer; }
.t-dialog button:focus-visible, .t-dialog a:focus-visible { outline: 3px solid var(--travel-accent); outline-offset: 3px; }
.t-dialog a { color: var(--travel-accent); text-underline-offset: 3px; }
.t-dialog h2 { font: 500 clamp(30px, 3vw, 46px)/1.08 var(--travel-serif); letter-spacing: -1.2px; margin: 12px 0 18px; }
.t-dialog h3 { font-size: 17px; font-weight: 600; margin: 24px 0 9px; }
.t-dialog p { margin: 0 0 14px; }
.t-dialog section > p, .t-lead { color: var(--travel-muted); }
.t-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: var(--travel-muted); }
.t-dialog .t-lead { font-size: 17px; line-height: 1.6; }
.t-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--travel-rule); border-radius: 50%; background: var(--travel-surface); color: var(--travel-ink); font-size: 28px !important; line-height: 1; }
.t-close:hover, .t-remove:hover { background: var(--travel-bg); }
#t-place { width: min(1060px, calc(100vw - 48px)); overflow: hidden; }
.t-place-layout { display: grid; grid-template-columns: 40% minmax(0, 1fr); height: min(810px, calc(100dvh - 48px)); }
.t-photo { position: relative; min-width: 0; min-height: 0; margin: 0; background: var(--travel-bg); }
.t-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 18px; background: #12231dc9; color: white; font-size: 10px; }
.t-photo figcaption a { color: white; }
.t-detail-main { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.t-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 40px 34px 24px; min-height: 0; scrollbar-width: thin; }
.t-scroll .t-eyebrow { padding-right: 34px; }
.t-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; border-block: 1px solid var(--travel-rule); padding: 20px 0; margin: 25px 0; }
.t-facts dt { color: var(--travel-muted); font-size: 12px; }
.t-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.t-links { display: grid; gap: 10px; margin: 24px 0; }
.t-links a { padding-block: 7px; }
.t-note { color: var(--travel-muted); font-size: 12px; line-height: 1.6; }
.t-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--travel-rule); padding: 16px 24px; background: var(--travel-surface); flex-shrink: 0; }
.t-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 8px; padding: 10px 18px; border: 1px solid var(--travel-rule); border-radius: 6px; background: var(--travel-surface); color: var(--travel-ink); font-weight: 600 !important; text-decoration: none; }
.t-primary { background: var(--travel-accent); color: var(--travel-on-accent, white); border-color: var(--travel-accent); }
.t-button:hover { filter: brightness(.95); }
.t-button:disabled { opacity: .45; cursor: default; }
.t-actions .t-primary { flex: 1; }
.t-sheet { position: relative; padding: 42px 36px 32px; }
.t-sheet > .t-eyebrow { padding-right: 30px; }
.t-sheet > h2 { padding-right: 25px; }
.t-sheet section { padding: 4px 0 16px; border-bottom: 1px solid var(--travel-rule); }
.t-sheet section a { display: inline-block; padding-block: 6px; }
.t-sheet > .t-note { margin-top: 22px; }
.t-count { display: inline-flex; margin-left: 14px; align-items: center; justify-content: center; min-width: 35px; height: 35px; border: 1px solid var(--travel-rule); border-radius: 50%; font: 15px var(--travel-font); vertical-align: middle; }
.t-trip-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--travel-rule); }
.t-trip-row > img { width: 72px; height: 78px; object-fit: cover; border-radius: 5px; }
.t-title-button { text-align: left; background: none; border: 0; min-height: 44px; padding: 0; color: var(--travel-ink); font-weight: 600 !important; }
.t-trip-row p { font-size: 12px; color: var(--travel-muted); margin: 0; }
.t-remove { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--travel-muted); font-size: 24px !important; }
.t-empty { padding: 25px 0; }
.t-empty p { color: var(--travel-muted); }
.t-wide { width: 100%; }
.t-provider { display: block; text-decoration: none; border-top: 1px solid var(--travel-rule); padding: 22px 0; }
.t-provider small { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--travel-muted); }
.t-provider h3 { font-size: 23px; margin: 7px 0; }
.t-provider p { color: var(--travel-muted); margin: 0; }
.t-notice { position: fixed; inset: auto auto 24px 50%; margin: 0; transform: translateX(-50%); border: 0; z-index: 10000; max-width: min(520px, calc(100vw - 32px)); width: max-content; padding: 14px 20px; background: #1d2926; color: white; font: 14px/1.5 var(--travel-font); border-radius: 8px; box-shadow: 0 6px 24px #0002; pointer-events: none; }
.t-notice[hidden] { display: none; }
.t-copy-buffer { position: fixed; left: -9999px; }
@media (max-width: 700px) {
  .t-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  #t-place { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; overflow-y: auto; }
  .t-place-layout { display: block; height: auto; }
  .t-photo { height: 245px; }
  .t-detail-main { position: static; }
  .t-detail-main > .t-close { position: fixed; }
  .t-scroll { overflow: visible; padding: 28px 24px 16px; }
  .t-actions { position: sticky; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .t-sheet { padding: 38px 24px 26px; }
  .t-dialog .t-lead { font-size: 16px; }
  .t-trip-row { grid-template-columns: 58px minmax(0, 1fr) 44px; gap: 10px; }
  .t-trip-row > img { width: 58px; height: 70px; }
  .t-button { padding-inline: 12px; font-size: 14px !important; }
  .t-notice { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-dialog *, .t-notice { scroll-behavior: auto !important; transition: none !important; }
}
