/* TRAVAMI A1 / K66. Existing data attributes and interaction contracts remain. */
:root {
  color-scheme: light;
  --ocean: #0f5961;
  --lagoon: #5fbdb4;
  --coral: #ff8f6b;
  --sand: #f7f4ed;
  --ink: #1f2e33;
  --paper: #f7f4ed;
  --white: #fff;
  --green: #0f5961;
  --light: #eaf3ef;
  --line: #dce5e4;
  --muted: #586d72;
  --orange: #bd5738;
  --danger: #a33727;
  --sans: Inter, Arial, sans-serif;
  --serif: Manrope, Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  font: 15px/1.6 var(--sans);
  background: var(--sand);
  color: var(--ink);
}
body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}
h1,
h2,
h3,
h4,
.brand {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1,
h2,
h3 {
  font-weight: 800;
}
h1 em,
h2 em {
  font: inherit;
  color: inherit;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ocean);
  font-weight: 700;
}
.fine,
.muted {
  color: var(--muted);
}
a {
  color: var(--ocean);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #a94c2e;
  outline-offset: 4px;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  font-size: 15px;
}
input[type='checkbox'] {
  accent-color: var(--ocean);
  min-width: 20px;
  min-height: 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: white;
  color: var(--ocean);
  border: 1px solid #bdcfd0;
  border-radius: 11px;
  padding: 12px 18px;
  font: 600 13px/1.5 var(--sans);
  min-height: 46px;
  max-width: 100%;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.button.primary {
  background: var(--ocean);
  color: #fff;
  border-color: var(--ocean);
}
.button:hover {
  filter: brightness(0.97);
}
.text-button {
  font-size: 13px;
  line-height: 1.5;
  min-height: 44px;
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.topbar {
  display: flex;
  height: 88px;
  gap: 25px;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  background: white;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.brand {
  font:
    800 31px/1.1 Manrope,
    Arial,
    sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #103c43;
  text-decoration: none;
}
.brand svg {
  width: 45px;
  height: 42px;
}
.topbar nav {
  margin: 0;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.travami-menu {
  display: none;
}
.travami-bottom-nav {
  display: none;
}
.travami-footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 32px max(5vw, 24px);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
}
.travami-footer > div:first-child {
  display: block;
}
.travami-footer .brand {
  font-size: 25px;
}
.travami-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}
.travami-footer > div:last-child {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: 0;
  max-width: 600px;
}
/* Same planner and events, with A1 navigation and presentation. */
body.travami-planner {
  background: #f8faf9;
}
body.travami-planner .topbar {
  margin-left: 205px;
  padding: 0 30px;
  min-height: 74px;
  height: auto;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 15px;
  padding-bottom: 15px;
}
body.travami-planner .topbar > .brand {
  display: none;
}
body.travami-planner #main {
  max-width: 1500px;
  margin-left: 205px;
  padding: 28px 30px 60px;
  width: calc(100% - 205px);
}
body.travami-planner .travami-footer {
  margin-left: 205px;
}
.intro-details {
  margin-bottom: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
}
.intro-details > summary {
  min-height: 30px;
  font-weight: 600;
  font-size: 13px;
}
.trip-banner {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 120px;
  overflow: hidden;
  box-shadow: none;
}
.trip-banner-main {
  padding: 26px 22px;
}
.trip-banner h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.banner-picture {
  width: 155px;
  min-width: 120px;
}
.banner-quote {
  display: none;
}
.trip-meta {
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.trip-banner .eyebrow {
  font-size: 10px;
  color: var(--ocean);
}
.banner-edit {
  min-width: 44px;
  min-height: 44px;
}
.metrics {
  background: transparent;
  border: 0;
  padding: 18px 0;
  margin: 0;
  gap: 12px;
}
.metric {
  background: white;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  padding: 16px 18px !important;
  min-width: 0;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  font: 700 22px Manrope !important;
  color: var(--ocean);
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.workspace {
  display: block;
  min-height: 0;
}
.workspace-toolbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  height: auto;
  min-width: 0;
}
.tabs button {
  padding: 12px 0;
  font-size: 13px;
  min-height: 46px;
}
.tabs button[aria-selected='true'] {
  color: var(--ocean);
  border-color: var(--ocean);
}
.toolbar-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
.save-state {
  font-size: 11px;
  color: var(--muted);
}
.planner-grid {
  grid-template-columns: minmax(330px, 0.95fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}
.route-column,
.map-column {
  min-width: 0;
}
.section-heading h3 {
  font-size: 19px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
}
.route-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: none;
  grid-template-columns: 24px 64px minmax(0, 1fr) auto;
  padding: 14px 12px;
  gap: 11px;
  min-height: 102px;
}
.route-card.selected {
  border: 1px solid var(--ocean);
  box-shadow: 0 0 0 1px var(--ocean);
}
.stop-thumb {
  display: block !important;
  object-fit: cover;
  width: 64px !important;
  height: 62px !important;
  border-radius: 8px;
}
.stop-name button {
  font: 700 15px/1.4 var(--sans);
  text-align: left;
  min-height: 32px;
  padding: 0;
}
.stop-date,
.stop-country {
  font-size: 11px;
  color: var(--muted);
}
.status {
  font-size: 11px;
  min-height: 32px;
  white-space: normal;
}
.stop-preference {
  font-size: 11px;
  color: var(--muted);
}
.card-actions {
  min-width: 0;
  align-self: start;
}
.station-expectation {
  margin-top: 10px;
  padding: 0;
  border: 0;
}
.station-expectation > strong {
  display: none;
}
.station-expectation p {
  font-size: 13px;
  color: var(--ink);
}
.inline-leg {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 9px 0;
  padding: 12px;
  font-size: 12px;
}
.inline-leg .field,
.inline-leg label {
  font-size: 11px;
}
.inline-leg input,
.inline-leg select {
  font-size: 13px;
  min-height: 38px;
}
.endpoint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}
.map-top {
  font-size: 10px;
  padding: 15px;
}
.map-caption {
  font-size: 10px;
}
.map-column {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 18px;
  gap: 20px;
  max-width: 100%;
}
.map-card {
  order: 0;
}
.map-column > .data-note {
  order: 3;
}
#map {
  height: 450px;
  min-height: 320px;
}
.journey-marker {
  background: var(--ocean);
  color: white;
  border-color: white;
}
.maplibregl-ctrl-attrib {
  font-size: 10px !important;
}
.cost-field {
  font-size: 11px;
}
.cost-field input,
.cost-field select {
  min-height: 44px;
  font-size: 14px;
  background: white;
  border: 1px solid #bdcfd0;
  border-radius: 8px;
  padding: 10px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.cost-row {
  gap: 12px;
}
.yajomi-disclosure {
  border-color: var(--line);
}
.yajomi-disclosure > summary {
  font-size: 13px;
  min-height: 44px;
}
.notice {
  background: #edf5f2;
  color: #214e50;
  border: 1px solid #d5e4dc;
  border-radius: 10px;
  font-size: 13px;
  padding: 15px;
  line-height: 1.6;
}
.notice.danger,
.notice.warning,
.hotel-warning {
  color: #874428;
}
.notice.danger {
  background: #fbede5;
  border-color: #dfb9a6;
}
.empty-state {
  background: white;
  border: 1px dashed #a6bfbb;
  border-radius: 15px;
  padding: 25px;
  font-size: 14px;
}
.rec-card {
  background: white;
  border-color: var(--line);
  border-radius: 16px;
}
.rec-card h3 {
  font-size: 23px;
}
.next-section h2 {
  font-size: 27px;
}
.next-section {
  border-color: var(--line);
}
/* Real selected station and real booking controls. Never a sample itinerary. */
#travami-station-detail {
  margin-top: 24px;
}
.travami-place-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.travami-place-card figure {
  margin: 0;
}
.travami-place-card figure > img {
  width: 100%;
  height: 275px;
  object-fit: cover;
  border-radius: 12px;
}
.travami-place-card figcaption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.5;
}
.travami-place-card h2 {
  font-size: 27px;
  margin: 8px 0 16px;
}
.travami-place-card p {
  font-size: 14px;
}
.travami-place-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.travami-wishes {
  padding: 15px 18px;
  background: #edf5f2;
  border-radius: 10px;
  margin: 15px 0;
}
.travami-wishes textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-size: 15px;
  padding: 12px;
  border: 1px solid #b8cfcb;
  border-radius: 9px;
  background: white;
}
.travami-wishes .fine {
  margin-top: 8px;
}
.travami-wishes label {
  font-size: 13px;
  font-weight: 600;
}
/* Existing dialogs, account and information pages share the approved tokens. */
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  max-width: min(760px, calc(100vw - 30px));
  width: 760px;
  color: var(--ink);
  font-family: var(--sans);
  background: white;
  box-shadow: 0 25px 80px #0d343a35;
}
dialog::backdrop {
  background: #0b2b3680;
}
dialog h2 {
  font: 800 29px/1.2 Manrope;
  margin: 10px 0 18px;
}
dialog .lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.form-grid {
  gap: 17px;
}
.field {
  font-size: 13px;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  min-height: 46px;
  font-size: 15px;
  border: 1px solid #bdcfd0;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.form-grid > * {
  min-width: 0;
}
.form-actions {
  gap: 12px;
  flex-wrap: wrap;
}
.dialog-top {
  min-height: 32px;
}
.dialog-top .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.place-results {
  font-size: 14px;
}
.help-trigger {
  min-width: 30px;
  min-height: 30px;
}
.info-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.info-page h1 {
  font-size: 36px;
}
.info-page h2 {
  font-size: 24px;
}
.info-page p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.info-page nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.info-page table {
  max-width: 100%;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.info-page td,
.info-page th {
  padding: 10px;
  overflow-wrap: anywhere;
}
#yajomi-private-account {
  color-scheme: light;
  --ya-bg: #f7f4ed;
  --ya-paper: #fff;
  --ya-ink: #1f2e33;
  --ya-muted: #586d72;
  --ya-line: #dce5e4;
  --ya-green: #0f5961;
  --ya-on: #fff;
  --ya-soft: #eaf3ef;
  --ya-red: #a33727;
  font-family: var(--sans);
  background: var(--ya-bg);
}
#yajomi-private-account h1,
#yajomi-private-account h2 {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
}
#yajomi-private-account header {
  min-height: 88px;
  padding: 20px max(5vw, 24px);
  gap: 28px;
}
#yajomi-private-account header .brand {
  font: 800 30px Manrope;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #103c43;
}
#yajomi-private-account header .brand img {
  width: 43px;
  height: 43px;
}
#yajomi-private-account main {
  max-width: 1180px;
  padding: 45px 30px;
}
#yajomi-private-account .grid {
  gap: 24px;
}
#yajomi-private-account .landscape {
  height: 210px;
}
#yajomi-private-account article {
  border-radius: 17px;
}
#yajomi-private-account .inside {
  padding: 24px;
}
#yajomi-private-account h1 {
  font-size: 36px;
}
#yajomi-private-account button {
  cursor: pointer;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}
#yajomi-private-account nav {
  gap: 14px;
}
#yajomi-private-account nav button[aria-pressed='true'] {
  background: var(--ocean);
  color: white;
}
#yajomi-private-account .notice {
  font-size: 14px;
}
#yajomi-private-account a:focus-visible,
#yajomi-private-account button:focus-visible,
#yajomi-private-account input:focus-visible {
  outline: 3px solid #a94c2e;
  outline-offset: 4px;
}
#toast {
  background: #153c43;
  color: white;
  font-size: 13px;
  z-index: 20;
}
@media (max-width: 1200px) {
  body.travami-planner #main {
    padding: 24px;
    width: calc(100% - 190px);
    margin-left: 190px;
  }
  body.travami-planner .topbar,
  body.travami-planner .travami-footer {
    margin-left: 190px;
  }
  .planner-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
    gap: 18px;
  }
  .route-card {
    grid-template-columns: 22px 48px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .stop-thumb {
    width: 48px !important;
    height: 55px !important;
  }
  .stop-name button {
    font-size: 14px;
  }
  .topbar nav {
    gap: 18px;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .planner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-column {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .map-column .map-card {
    grid-column: 1/-1;
  }
  .map-column > .data-note {
    grid-column: 1/-1;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .travami-place-card {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .travami-place-card .button {
    font-size: 12px;
    padding: 10px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 72px;
    min-height: 72px;
    padding: 0 20px;
    gap: 14px;
  }
  .topbar .brand {
    font-size: 28px;
  }
  .topbar .brand svg {
    width: 35px;
  }
  .travami-menu {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 23px;
    color: var(--ocean);
    border-radius: 8px;
  }
  .topbar.menu-open {
    height: auto;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 15px;
  }
  body.travami-planner .topbar {
    margin-left: 0;
    padding: 13px 20px;
    min-height: 72px;
  }
  body.travami-planner .topbar > .brand {
    display: flex;
  }
  body.travami-planner #main {
    width: 100%;
    margin: 0;
    padding: 22px 20px 105px;
  }
  body.travami-planner .travami-footer {
    margin-left: 0;
    padding-bottom: 110px;
  }
  .travami-footer {
    padding: 28px 20px;
  }
  .travami-footer > div:last-child {
    gap: 12px 18px;
  }
  .travami-footer .brand {
    font-size: 25px;
  }
  .trip-banner {
    min-height: 115px;
  }
  .trip-banner-main {
    padding: 22px 17px;
  }
  .trip-banner h2 {
    font-size: 27px;
  }
  .banner-picture {
    width: 110px;
    min-width: 75px;
  }
  .trip-meta {
    font-size: 11px;
    gap: 9px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 14px !important;
  }
  .metric-value {
    font-size: 20px !important;
  }
  .workspace-toolbar {
    padding: 14px;
    gap: 12px;
    margin: 20px 0;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }
  .toolbar-actions .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .save-state {
    display: block;
    width: 100%;
    font-size: 11px;
  }
  .tabs {
    width: 100%;
    gap: 20px;
    order: 2;
    flex-wrap: wrap;
  }
  .tabs button {
    font-size: 13px;
    padding: 10px 0;
  }
  .planner-grid {
    display: block;
  }
  .mobile-view {
    display: flex;
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 4px;
    gap: 4px;
    margin: 0 0 18px;
  }
  .mobile-view button {
    font-size: 13px;
    padding: 11px;
    min-height: 44px;
    border-radius: 8px;
    width: 50%;
  }
  .mobile-view button.selected {
    background: var(--ocean);
    color: white;
    box-shadow: none;
  }
  .map-column {
    display: none;
    position: static;
  }
  .map-mode .map-column {
    display: flex;
  }
  .map-mode .route-column {
    display: none;
  }
  .route-card {
    grid-template-columns: 24px 60px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 11px;
  }
  .stop-thumb {
    width: 60px !important;
    height: 60px !important;
  }
  .stop-name button {
    font-size: 15px;
  }
  .map-card {
    margin-bottom: 18px;
  }
  .travami-place-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .travami-place-card figure > img {
    height: 245px;
  }
  .travami-place-card h2 {
    font-size: 26px;
  }
  .travami-bottom-nav {
    display: none;
  }
  body.travami-planner .travami-bottom-nav {
    display: flex;
    position: fixed;
    z-index: 4;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 8px max(10px, env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 3px;
  }
  .travami-bottom-nav button,
  .travami-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 1px;
    color: var(--muted);
    font-size: 20px;
    min-width: 48px;
    min-height: 48px;
    padding: 2px;
    background: none;
    border: 0;
    text-decoration: none;
  }
  .travami-bottom-nav span {
    font-size: 10px;
    line-height: 1.4;
  }
  .travami-bottom-nav [aria-current='page'] {
    color: var(--ocean);
    font-weight: 700;
  }
  #toast {
    bottom: 90px;
  }
  .section-heading {
    gap: 15px;
  }
  dialog {
    max-width: calc(100vw - 24px);
    padding: 22px;
    max-height: calc(100dvh - 24px);
  }
  dialog h2 {
    font-size: 26px;
  }
  #yajomi-private-account main {
    padding: 30px 20px;
  }
  #yajomi-private-account h1 {
    font-size: 30px;
  }
  #yajomi-private-account .grid {
    grid-template-columns: 1fr;
  }
  #yajomi-private-account header {
    gap: 15px;
    padding: 18px 20px;
  }
  .info-page {
    margin: 24px 16px;
    padding: 25px;
  }
  .info-page h1 {
    font-size: 30px;
  }
}
@media (max-width: 500px) {
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .topbar .brand {
    font-size: 25px;
    gap: 7px;
  }
  .topbar .brand svg {
    width: 33px;
  }
  .topbar .travami-menu {
    min-width: 36px;
  }
  .topbar .nav-item {
    display: block !important;
    min-height: 44px;
  }
  body.travami-planner .topbar {
    padding: 13px 16px;
  }
  body.travami-planner #main {
    padding: 18px 14px 100px;
  }
  .trip-banner h2 {
    font-size: 23px;
  }
  .banner-picture {
    width: 76px;
  }
  .trip-banner-main {
    padding: 21px 13px;
  }
  .trip-banner .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
    gap: 5px;
  }
  .trip-meta {
    font-size: 10px;
    gap: 7px;
  }
  .trip-meta svg {
    width: 12px;
    height: 12px;
  }
  .metric-value {
    font-size: 19px !important;
  }
  .metric-label {
    font-size: 10px;
  }
  .route-card {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 14px 10px;
  }
  .route-card > .stop-thumb {
    display: none !important;
  }
  .stop-date,
  .stop-country,
  .status {
    font-size: 11px;
  }
  .stop-name button {
    font-size: 15px;
  }
  .stop-preference {
    font-size: 10px;
  }
  .cost-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .workspace-toolbar {
    padding: 12px;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 12px;
  }
  .toolbar-actions .button {
    font-size: 12px;
  }
  .travami-place-card figure > img {
    height: 215px;
  }
  .travami-place-card .actions .button {
    font-size: 12px;
    flex: 1;
  }
  .travami-place-card h2 {
    font-size: 25px;
  }
  .cost-field input,
  .cost-field select {
    font-size: 15px;
  }
  .cost-row {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .field {
    font-size: 13px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .form-actions > .button {
    flex: 1;
  }
  dialog h2 {
    font-size: 25px;
  }
  dialog {
    padding: 20px;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .info-page {
    margin: 18px 12px;
    padding: 22px 18px;
  }
  .info-page h1 {
    font-size: 28px;
  }
  .info-page table {
    display: block;
    overflow: auto;
  }
  .travami-footer > div:last-child {
    gap: 12px 18px;
  }
  #yajomi-private-account header .brand {
    font-size: 28px;
  }
  #yajomi-private-account header {
    padding: 18px;
    gap: 12px;
  }
  #yajomi-private-account main {
    padding: 28px 18px;
  }
  #yajomi-private-account nav {
    gap: 5px;
  }
  #yajomi-private-account nav button {
    padding: 11px 12px;
    font-size: 12px;
  }
  #yajomi-private-account .landscape {
    height: 190px;
  }
  #yajomi-private-account .inside {
    padding: 20px;
  }
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-bottom: 100px;
}
#main button,
#main a,
#main input {
  scroll-margin-block: 100px;
}
.travami-footer > div {
  margin-left: 0;
}
.trip-banner {
  flex-direction: row;
  align-items: center;
  min-height: 132px;
}
.trip-banner:after {
  display: none;
}
.trip-banner .banner-picture {
  position: relative !important;
  inset: auto !important;
  width: 155px !important;
  min-width: 155px;
  height: 145px !important;
  flex-shrink: 0;
  order: 0;
  background: none !important;
  overflow: hidden;
}
.trip-banner .banner-picture figure {
  height: 100%;
  width: 100%;
  margin: 0;
}
.trip-banner .banner-picture img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.trip-banner .trip-banner-main {
  position: static;
  z-index: auto;
  max-width: calc(100% - 155px);
  padding: 25px;
  order: 1;
}
.trip-banner h2 {
  color: var(--ink);
}
.trip-banner .eyebrow,
.trip-banner .trip-meta {
  color: var(--muted);
}
@media (max-width: 500px) {
  .trip-banner .banner-picture {
    width: 76px !important;
    min-width: 76px;
    height: 155px !important;
  }
  .trip-banner .trip-banner-main {
    max-width: calc(100% - 76px);
    padding: 20px 14px;
  }
  .trip-banner h2 {
    font-size: 23px;
  }
  .trip-banner .eyebrow {
    font-size: 8px;
  }
  .travami-footer > div {
    margin-left: 0;
  }
  .topbar .brand {
    font-size: 24px;
  }
}
.travami-bottom-nav {
  height: auto !important;
  align-items: center;
}
#yajomi-admin {
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
}
#yajomi-admin header a {
  font-family: Manrope, Arial, sans-serif;
  color: var(--ocean);
}
#yajomi-admin .primary {
  background: var(--ocean);
  color: white;
}
#yajomi-admin button:focus-visible,
#yajomi-admin a:focus-visible,
#yajomi-admin input:focus-visible {
  outline: 3px solid #a94c2e;
  outline-offset: 4px;
}
@media (min-width: 651px) and (max-width: 800px) {
  .planner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .map-column {
    display: flex;
  }
  .map-mode .route-column {
    display: block;
  }
  .mobile-view {
    display: none;
  }
}
.travami-budget-entry {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  margin-top: 16px;
}
.travami-budget-entry h3 {
  font-size: 18px;
  margin: 0 0 15px;
}
.map-column,
.map-card {
  position: static !important;
}
.topbar nav {
  position: static !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .travami-bottom-nav,
  .travami-menu,
  .topbar,
  .travami-footer {
    display: none !important;
  }
  body.travami-planner #main {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .map-column {
    position: static;
  }
  .travami-place-card {
    break-inside: avoid;
  }
}

#yajomi-private-account .account-image-credit {
  padding: 0 18px;
  font-size: 11px;
}

/* Impressum und Datenschutz (L1) */
/* Impressum und Datenschutz: eine ruhige Lesespalte aus den vorhandenen Bausteinen (Seite, Fläche, Hinweis). */
.legal { max-width: 760px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 30px) 60px; }
.legal .panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ocean); text-decoration: none; font-weight: 500; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin: 6px 0 8px; }
.legal .lead { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; scroll-margin-top: 16px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .panel { margin: 0 0 8px; }
.legal dl { margin: 0; display: grid; gap: 16px; }
.legal dt { font-size: 13px; color: var(--muted); text-transform: none; margin-bottom: 2px; }
.legal dd { margin: 0; font-size: 17px; line-height: 1.55; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.legal .toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; }
.legal .toc a:hover { background: var(--light); }
.legal .glance { background: var(--light); border-color: transparent; }
.legal .glance ul { margin: 0; }
.legal .table { border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.legal .row { display: grid; grid-template-columns: 200px 1fr; gap: 4px 20px; padding: 14px 18px; border-top: 1px solid var(--line); }
.legal .row:first-child { border-top: 0; }
.legal .row b { font-weight: 600; }
.legal .row span { color: var(--muted); line-height: 1.6; }
.legal .stand { color: var(--muted); font-size: 13px; margin-top: 32px; }
.legal a { color: var(--ocean); }
@media (max-width: 640px) {
  .legal .row { grid-template-columns: 1fr; }
}
