/* 查价、备选城市与连续日程。沿用主站的纸色、墨绿和陶土色。 */
.small-text { font-size: 12px; line-height: 1.85; }
.muted { color: var(--muted); }
#prices, #regions { min-width: 0; }
#prices a:not(.button), #regions a:not(.button) { text-underline-offset: 3px; }
#prices .button, #regions .button { font-size: 12px; }
.price-findings { margin-bottom: 25px; }
.price-findings:empty { display: none; }
.price-findings > p, .price-findings > div, .price-findings > article {
  padding: 18px 22px; border: 1px solid #d6decd; background: #edf1e6;
  border-radius: 5px; font-size: 13px; line-height: 1.9;
}
.price-findings > * + * { margin-top: 10px; }
.price-findings h3 { font-size: 17px; margin-bottom: 8px; }
.price-findings ul { margin: 8px 0 0; padding-left: 20px; }
.price-findings li + li { margin-top: 5px; }
.price-section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  margin: 32px 0 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.price-section-title h3 { font-size: 20px; font-family: var(--serif); }
.price-section-title > span { font-size: 12px; color: var(--muted); }
.gateway-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gateway-card {
  min-width: 0; display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--line); border-top: 3px solid #a6b49b;
  border-radius: 5px; background: var(--white);
}
.gateway-card.is-selected, .gateway-card.selected, .gateway-card.active {
  border-color: #829b80; border-top-color: var(--ink); box-shadow: 0 4px 16px #263d2810;
}
.gateway-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.gateway-head h3 { font-family: var(--serif); font-size: 24px; }
.gateway-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.gateway-head > span { font-size: 12px; color: var(--rust); white-space: nowrap; }
.gateway-card p, .gateway-card li { color: var(--muted); font-size: 13px; line-height: 1.85; }
.gateway-card ul { margin: 12px 0; padding-left: 17px; }
.gateway-route { padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.85; }
.gateway-route b, .gateway-route strong { color: var(--ink); }
.gateway-extra { padding: 12px 14px; margin: 8px 0 16px; background: #f0f3e9; border-radius: 3px; color: #5d7159; font-size: 12px; line-height: 1.85; }
.gateway-extra strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.gateway-card > .button, .gateway-card > .quote-actions, .gateway-card > button:last-child { margin-top: auto; }
.quote-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--white); scrollbar-width: thin; }
.flight-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; line-height: 1.8; }
.flight-table th, .flight-table td { text-align: left; vertical-align: top; padding: 17px 18px; border-bottom: 1px solid var(--line-soft); }
.flight-table th { background: #e9eee2; font-size: 12px; color: #51664e; font-weight: 550; white-space: nowrap; }
.flight-table td { color: var(--muted); }
.flight-table td:first-child { color: var(--ink); min-width: 155px; }
.flight-table td strong { color: var(--ink); }
.flight-table td small { display: block; font-size: 12px; line-height: 1.85; margin-top: 5px; }
.flight-table tr:last-child td { border-bottom: 0; }
.flight-table tbody tr:hover { background: #f7f8f1; }
.flight-table a { color: var(--rust); text-decoration: underline; }
.flight-table .quote-status { margin-bottom: 6px; }
.quote-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 3px;
  font-size: 12px; line-height: 1.6; background: #edf0e6; color: #5b7155; border: 1px solid #d6decd;
}
.quote-status.matched { color: #2f6548; background: #e9f0e6; border-color: #c6d9bf; }
.quote-status.estimate { color: #75674c; background: #f2eddf; border-color: #dfd3b7; }
.quote-status.partial { color: #925233; background: #f7ece1; border-color: #e5cbb4; }
.hotel-quotes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.quote-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.quote-card h3, .quote-card h4 { font-size: 19px; margin: 10px 0; }
.quote-card > .quote-status { align-self: flex-start; }
.quote-card p { font-size: 13px; color: var(--muted); line-height: 1.85; }
.quote-price { color: var(--rust); font-size: 24px; line-height: 1.5; margin: 13px 0 9px; font-variant-numeric: tabular-nums; }
.quote-price small, .quote-price span { color: var(--muted); font-size: 12px; }
.quote-meta { margin: 12px 0; padding: 13px 0; border-block: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; line-height: 1.85; }
.quote-meta p { font-size: inherit; margin-bottom: 5px; }
.quote-meta p:last-child { margin-bottom: 0; }
.quote-meta dl { margin: 0; }
.quote-meta dt { color: var(--ink); }
.quote-meta dd { margin: 0 0 8px; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 14px; margin-top: auto; }
.quote-actions a:not(.button) { color: var(--rust); font-size: 12px; text-decoration: underline; }
.price-warning { margin: 14px 0; padding: 15px 18px; border-left: 3px solid #bd9165; background: #f1ebdd; color: #78654e; border-radius: 0 3px 3px 0; font-size: 13px; line-height: 1.85; }
.price-warning b, .price-warning strong { color: #6a543e; }
.search-log { margin-top: 24px; border: 1px solid var(--line); border-radius: 4px; background: #fafaf4; color: var(--muted); font-size: 12px; line-height: 1.85; }
.search-log summary { padding: 16px 20px; cursor: pointer; color: var(--ink); font-size: 13px; }
.search-log[open] summary { border-bottom: 1px solid var(--line); }
.search-log > div, .search-log > ul, .search-log > ol { margin: 0; padding: 19px 24px; }
.search-log > ul, .search-log > ol { padding-left: 40px; }
.search-log li + li { margin-top: 10px; }
.search-log a { color: var(--rust); text-decoration: underline; }

.regional-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.regional-layout > * { min-width: 0; }
#region-map { height: 500px; width: 100%; border: 1px solid #ced7c5; border-radius: 5px; background: #e7eee4; isolation: isolate; }
#region-detail { padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); font-size: 13px; line-height: 1.85; }
#region-detail h3 { font-family: var(--serif); font-size: 26px; margin: 7px 0 10px; }
#region-detail h4 { font-size: 13px; margin: 18px 0 6px; }
#region-detail p { color: var(--muted); font-size: 13px; }
#region-detail small { font-size: 12px; }
#region-detail dl { margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
#region-detail dt { color: var(--ink); font-size: 12px; margin-top: 12px; }
#region-detail dd { margin: 4px 0 0; color: var(--muted); }
#region-detail a:not(.button) { color: var(--rust); font-size: 12px; text-decoration: underline; }
.region-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; padding: 13px 2px; font-size: 12px; color: var(--muted); }
.region-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.region-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7a8d74; }
.region-legend .legend-main { background: #1d5b4a; }
.region-legend .legend-airport { background: #b75d37; }
.region-legend .legend-option { background: #71836b; }
.region-legend small { width: 100%; font-size: 12px; }
.region-label { background: transparent; border: 0; box-shadow: none; white-space: nowrap; }
.region-label > span, .region-label > b, .region-label > button {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #b6c2ad;
  border-radius: 3px; background: #fffdf5f5; color: var(--ink); font: 550 12px/1.4 var(--sans);
  white-space: nowrap; box-shadow: 0 2px 5px #183b231a;
}
.region-label.is-selected > *, .region-label.selected > * { background: var(--ink); color: white; border-color: var(--ink); }
.region-label small { font-size: 11px; opacity: .8; }
.region-label > span { width: 100%; height: 27px; }
.region-label > span:before { content: ""; width: 6px; height: 6px; background: var(--city-color,#71836b); border-radius: 50%; flex-shrink: 0; }
.region-label.is-selected > span:before { background: #d4c19a; }
.region-english { margin-top: -5px; letter-spacing: .02em; }
#region-detail .region-edit-note { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line-soft); font-size: 12px; color: #7a806e; }
.regional-route-table td:first-child { min-width: 160px; color: var(--ink); }
.regional-route-table td:nth-child(2) { min-width: 108px; }
.regional-route-table td:nth-child(3) { min-width: 170px; }
.regional-route-table td:last-child { min-width: 270px; }
.regional-route-table a { color: var(--rust); text-decoration: underline; }
.region-fallback { width: 100%; height: 100%; display: block; font-family: var(--sans); }
.region-fallback g[data-action] { cursor: pointer; }
.region-fallback g[data-action]:hover rect, .region-fallback g[data-action]:focus rect { stroke: #b75d37; stroke-width: 2; }
.region-fallback g[data-action]:focus { outline: none; }
#regional-routes { margin-top: 18px; }
#regional-routes .simple-table { font-size: 12px; }
#regional-routes .simple-table th { font-size: 12px; }
#regional-routes td { line-height: 1.8; }
#regional-routes td small { font-size: 12px; }
.city-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.city-option { min-width: 0; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.city-option.is-selected { border-color: #829b80; box-shadow: inset 0 3px #6d8c6a; background: #f9fbf3; }
.city-option h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 23px; }
.city-option h3 small { margin-left: 8px; color: var(--muted); font: 12px var(--sans); }
.city-option > small, .city-option .pill { font-size: 12px; }
.city-option > .pill { align-self: flex-start; }
.city-option p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 8px 0; }
.city-option p b, .city-option p strong { color: #4b6448; }
.city-option-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: auto; padding-top: 18px; }
.city-option-actions a:not(.button), .city-option-actions .text-button { color: var(--rust); font-size: 12px; text-decoration: underline; }

/* 日程一直留在页面内；日期条只负责定位和显示当前日期。 */
#date-tabs { position: sticky; top: var(--header-height,92px); z-index: 1020; margin: 0 0 18px; padding: 12px 0; background: #f6f4eef5; border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
#date-tabs button { flex: 1 0 103px; }
#date-tabs button span, #date-tabs button small { font-size: 12px; }
#date-tabs button strong { font-size: 17px; }
.day-feed .day-card { margin-bottom: 24px; scroll-margin-top: calc(var(--header-height,92px) + 120px); }
.day-feed .day-card:last-child { margin-bottom: 0; }
.day-feed .day-card.is-current { border-color: #99ac90; }
.day-feed .day-top { gap: 12px; }
.day-feed .eyebrow, .day-feed .pill, .day-feed .mini-label, .day-feed .time-label, .day-feed .distance-tag { font-size: 12px; }
.day-feed .schedule-item p, .day-feed .day-sidebar p, .day-feed .day-bottom p { font-size: 13px; line-height: 1.9; }
.day-feed .day-bottom > span, .day-feed .booking-note > b { font-size: 12px; }
.day-feed .stay-card h4 { font-size: 16px; }
.day-feed .day-note { color: #64775a; }
.map-tabs { flex-wrap: wrap; }
.map-tabs button { font-size: 13px; }
.map-tab > small { font-size: 12px; }
.point-button b { font-size: 13px; }
.point-button p, .point-actions a, .point-actions button, .map-list-heading p, .map-caption > a { font-size: 12px; }
.leaflet-control-scale-line { font: 11px/1.2 var(--sans); color: #233c31; background: #fffdf5e8; }

@media (max-width: 1120px) {
  .gateway-options, .city-options { gap: 14px; }
  .gateway-card, .city-option { padding: 21px; }
  .regional-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
  #region-detail { padding: 21px; }
  .topbar nav { gap: 16px; }
}

@media (max-width: 900px) {
  .gateway-options { grid-template-columns: 1fr; }
  .gateway-card { padding: 24px; }
  .gateway-head { margin-bottom: 8px; }
  .gateway-route { margin-bottom: 10px; padding-bottom: 10px; }
  .gateway-card > .button { align-self: flex-start; }
  .city-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .regional-layout { grid-template-columns: 1fr; }
  #region-detail { padding: 22px; }
  #region-map { height: 470px; }
}

@media (max-width: 600px) {
  .small-text { font-size: 13px; }
  #prices .section-heading, #regions .section-heading { flex-wrap: wrap; gap: 14px; }
  #prices .section-lead, #regions .section-lead { font-size: 14px; }
  #prices .button, #regions .button { min-height: 42px; font-size: 13px; padding: 10px 14px; }
  .price-findings > p, .price-findings > div, .price-findings > article { padding: 18px; font-size: 14px; }
  .price-section-title { flex-direction: column; gap: 6px; margin-top: 28px; }
  .price-section-title h3 { font-size: 21px; }
  .price-section-title > span { font-size: 13px; }
  .gateway-card, .quote-card, .city-option { padding: 20px; }
  .gateway-head h3 { font-size: 25px; }
  .gateway-head small, .gateway-head > span { font-size: 13px; }
  .gateway-card p, .gateway-card li, .quote-card p, .city-option p { font-size: 14px; line-height: 1.85; }
  .gateway-extra, .quote-meta, .quote-status, .quote-actions a:not(.button) { font-size: 13px; }
  .hotel-quotes, .city-options { grid-template-columns: 1fr; gap: 15px; }
  .quote-card h3, .quote-card h4 { font-size: 20px; }
  .quote-price { font-size: 25px; }
  .quote-price small, .quote-price span { font-size: 13px; }
  .quote-meta p { font-size: 13px; }
  .quote-actions { gap: 12px 18px; }
  .flight-table, .flight-table th, .flight-table td small { font-size: 13px; }
  .flight-table th, .flight-table td { padding: 15px; }
  .price-warning, .search-log { font-size: 13px; }
  .search-log summary { padding: 15px 17px; font-size: 14px; }
  .search-log > div { padding: 17px; }
  #region-map { height: 410px; }
  #region-detail { padding: 20px; font-size: 14px; }
  #region-detail p { font-size: 14px; }
  #region-detail small, #region-detail h4, #region-detail dt, #region-detail a:not(.button) { font-size: 13px; }
  #region-detail .region-edit-note { font-size: 13px; }
  .region-legend, .region-legend small { font-size: 13px; }
  .region-legend { gap: 8px 14px; }
  #regional-routes .simple-table, #regional-routes .simple-table th, #regional-routes td small { font-size: 13px; }
  .city-option-actions a:not(.button), .city-option-actions .text-button { font-size: 13px; }
  #date-tabs { margin-inline: -19px; padding: 10px 19px; scroll-padding-inline: 19px; gap: 7px; }
  #date-tabs button { flex: 0 0 99px; padding: 10px 12px; }
  #date-tabs button span, #date-tabs button small { font-size: 12px; }
  .day-feed .day-card { scroll-margin-top: calc(var(--header-height,112px) + 125px); }
  .day-feed .day-main { padding: 23px 20px; }
  .day-feed .day-main > h3 { font-size: 25px; margin-top: 8px; }
  .day-feed .schedule-item { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding-block: 17px; }
  .day-feed .schedule-item p, .day-feed .day-sidebar p, .day-feed .day-bottom p { font-size: 14px; line-height: 1.95; }
  .day-feed .time-label, .day-feed .pill, .day-feed .mini-label, .day-feed .day-bottom > span, .day-feed .booking-note > b { font-size: 13px; }
  .day-feed .day-sidebar { padding: 22px 20px; }
  .day-feed .day-bottom { padding: 16px 0 0; }
  .day-feed .day-sidebar > .button { min-height: 44px; font-size: 14px; }
  .map-tabs { gap: 8px; }
  .map-tabs button { padding: 9px 12px; font-size: 13px; }
  .map-tab > small { display: none; }
  .point-button b { font-size: 14px; }
  .point-button p, .point-actions a, .point-actions button, .map-list-heading p, .map-caption > a { font-size: 13px; }
}

@media print {
  #itinerary { display: block !important; }
  #print-itinerary { display: none !important; }
  #date-tabs, .quote-actions, .city-option-actions, #regions .segmented, .gateway-card > button, #region-detail button, .day-sidebar > button { display: none !important; }
  .gateway-options, .hotel-quotes, .city-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gateway-card, .quote-card, .city-option { padding: 14px; break-inside: avoid; box-shadow: none; }
  .regional-layout { grid-template-columns: 1fr; }
  #region-map { height: 330px; break-inside: avoid; }
  #region-detail { padding: 14px; }
  #region-detail dl { display: grid; grid-template-columns: 100px 1fr; gap: 4px 15px; }
  #region-detail dt, #region-detail dd { margin: 0; }
  .quote-table-wrap { overflow: visible; }
  .flight-table { min-width: 0; table-layout: fixed; font-size: 8pt; }
  .flight-table th, .flight-table td { padding: 8px; overflow-wrap: anywhere; }
  .flight-table th, .flight-table td small { font-size: 8pt; }
  .flight-table td:first-child { min-width: 0; }
  .regional-route-table td { min-width: 0 !important; }
  .quote-status { font-size: 8pt; padding: 2px 5px; }
  .price-findings, .price-warning, .region-legend { break-inside: avoid; }
  .search-log { display: none; }
  .day-feed .day-card { display: block; margin-bottom: 18px; break-inside: auto; overflow: visible; }
  .day-feed .day-main { padding: 16px 19px; }
  .day-feed .day-main > h3, .day-feed .day-top { break-after: avoid; }
  .day-feed .schedule-item { break-inside: avoid; }
  .day-feed .schedule-item p, .day-feed .day-sidebar p, .day-feed .day-bottom p { font-size: 9pt; line-height: 1.75; }
  .day-feed .day-sidebar { padding: 15px 19px; border-left: 0; border-top: 1px solid var(--line); break-inside: avoid; }
  .day-feed .eyebrow, .day-feed .pill, .day-feed .mini-label, .day-feed .time-label, .day-feed .distance-tag { font-size: 8pt; }
  .day-feed .day-main > h3 { font-size: 18pt; }
  .region-label > * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
