/* Interactive trip builder. Uses the editorial palette in styles.css. */
.builder-section { background: #eaeade; }
.builder-heading { max-width: 760px; margin-bottom: 34px; }
.builder-heading h2 { margin-bottom: 16px; }
.builder-heading > p:last-child { max-width: 690px; }
.builder-grid { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
.builder-sidebar, .builder-main { min-width: 0; }
.builder-controls { display: grid; gap: 18px; }
.builder-controls form { display: grid; gap: 18px; }
.builder-controls .field + .field { margin-top: 15px; }
.builder-controls .field label { font-size: 12px; }
.builder-controls .field input, .builder-controls .field select { min-width: 0; max-width: 100%; font-size: 14px; }
.builder-controls input[type="date"] { -webkit-appearance: none; min-height: 45px; }
.control-group { margin: 0; padding: 22px; border: 1px solid #c5cbbc; background: #f6f3e9; border-radius: 4px; }
fieldset.control-group { min-width: 0; }
.control-group legend { padding-inline: 5px; }
.control-group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.control-group-heading h3, h3.control-group-heading { margin-bottom: 0; font-size: 25px; }
.control-group-heading .eyebrow { margin-bottom: 0; }
.control-group .help, .control-group .fine-print { display: block; margin: 10px 0 0; font-size: 11px; line-height: 1.65; }
.control-group .help + .field { margin-top: 18px; }
.control-group > summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.control-group[open] > summary { margin-bottom: 18px; }
.price-card { margin-top: 17px; padding: 16px; border-left: 3px solid var(--sun); background: #e8e5d5; }
.price-card p:last-child { margin-bottom: 0; }
.price-value { display: block; margin-bottom: 3px; color: var(--ink); font-family: var(--serif); font-size: 31px; line-height: 1.15; letter-spacing: -.8px; }
.price-value small { color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: 0; }
.price-range { display: block; margin-bottom: 8px; color: #536249; font-family: var(--mono); font-size: 10px; line-height: 1.65; }
.price-basis, .activity-basis { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.price-basis summary, .activity-basis summary { min-height: 28px; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.price-basis p, .activity-basis p { margin: 8px 0; font-size: 11px; line-height: 1.65; }
.price-basis a, .activity-basis a { font-weight: 600; overflow-wrap: anywhere; }
.price-reference { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.hotel-choice { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.hotel-choice:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.hotel-choice .field { margin-top: 0; }
.hotel-choice-price { margin-top: 9px; color: #4f6248; font-size: 12px; font-weight: 600; }
.hotel-choice-price small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.builder-nights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.6; }
.builder-nights span { padding: 5px 7px; border: 1px solid #c7cbb9; background: #e8e8da; }

.builder-summary { padding: 28px; margin-bottom: 24px; border: 1px solid #b7c2a6; border-radius: 4px; background: #dce0cc; }
.builder-summary .eyebrow { margin-bottom: 10px; }
.summary-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 12px; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -1.8px; }
.summary-main > .budget-total { margin: 0; font: inherit; }
.summary-main > p:not(.budget-total) { margin: 0; color: #526149; font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: 0; }
.summary-main .fine-print { display: block; max-width: 310px; font-size: 10px; line-height: 1.5; }
.summary-main small { margin-left: 7px; color: #506046; font-family: var(--sans); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.summary-range { margin-bottom: 9px; color: #4d6047; font-size: 12px; line-height: 1.65; }
.group-total { display: block; padding-top: 11px; margin-top: 13px; border-top: 1px solid #b9c1a9; color: #435a3f; font-size: 12px; font-weight: 650; }
.builder-summary .budget-breakdown { margin-bottom: 16px; }
.builder-summary .budget-row { font-size: 12px; }
.builder-summary > .fine-print:last-child { margin-bottom: 0; }
.builder-summary .price-basis { margin-top: 18px; }
.builder-summary .price-basis summary { font-size: 12px; }
.builder-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.builder-actions .button { min-height: 42px; padding: 10px 14px; font-size: 12px; }
.builder-actions .text-link { min-height: 40px; display: inline-flex; align-items: center; padding-block: 8px; }
.override-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.override-grid .field + .field { margin-top: 0; }
.override-grid .field input, .override-grid .field select { width: 100%; min-width: 0; }
.override-grid .field label { font-size: 11px; }
.export-hint { margin-top: 10px; margin-bottom: 0; font-size: 11px; line-height: 1.65; color: var(--muted); }

.schedule-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 21px; margin-bottom: 18px; border-bottom: 1px solid #bdc5b0; }
.schedule-toolbar h3 { margin: 0; font-size: 31px; }
.schedule-toolbar .button { min-height: 42px; padding: 10px 14px; font-size: 12px; }
.schedule-toolbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.schedule-intro { margin-bottom: 18px; max-width: 670px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.schedule-notice, .planning-warning { padding: 15px 18px; margin-block: 15px; border-left: 3px solid var(--sun); background: #e7dfc8; font-size: 12px; line-height: 1.7; }
.planning-warning { border-color: var(--rust); background: #ead9c8; }
.schedule-notice p, .planning-warning p { margin-bottom: 7px; }
.schedule-notice p:last-child, .planning-warning p:last-child { margin-bottom: 0; }
.schedule-status { min-height: 24px; margin-bottom: 16px; color: #4c6145; font-size: 12px; line-height: 1.65; }
.schedule-status:empty { min-height: 0; margin: 0; }
.schedule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.schedule-day { min-width: 0; padding: 21px; border: 1px solid #c7cdbb; border-radius: 4px; background: #f8f5ec; }
.schedule-day-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 9px 20px; padding-bottom: 15px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.schedule-day-header h3, .schedule-day-header h4 { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.25; font-weight: 400; letter-spacing: -.5px; }
.schedule-date { display: block; margin-bottom: 5px; color: var(--rust); font-family: var(--mono); font-size: 10px; font-weight: 650; line-height: 1.6; letter-spacing: .5px; text-transform: uppercase; }
.schedule-city { color: #52644a; font-size: 11px; line-height: 1.6; }
.schedule-overnight { display: block; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.schedule-overnight strong { color: #4c6044; font-weight: 600; }
.schedule-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-items: stretch; }
.schedule-slot { min-width: 0; padding: 12px; border: 1px solid #d3d7c7; background: #efeee2; border-radius: 3px; }
.slot-label { display: block; margin-bottom: 8px; color: #616a58; font-family: var(--mono); font-size: 9px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; }
.slot-lock { min-width: 0; background: repeating-linear-gradient(135deg, #e5e6d9, #e5e6d9 5px, #e1e3d5 5px, #e1e3d5 6px); color: #59644e; }
.slot-lock strong { display: block; margin-bottom: 6px; color: #42563d; font-size: 12px; line-height: 1.5; }
.slot-lock p { margin-bottom: 0; color: #5f6956; font-size: 11px; line-height: 1.6; }
.slot-lock .slot-label { color: #536249; }
.slot-empty { min-height: 86px; display: flex; flex-direction: column; justify-content: flex-end; }
.slot-empty p { margin-bottom: 10px; color: #737965; font-size: 11px; line-height: 1.55; }
.schedule-slot select, .pending-actions select { width: 100%; min-width: 0; max-width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid #aeb8a0; border-radius: 3px; background: #fffcf5; color: var(--ink); font-size: 11px; }
.schedule-slot select:disabled { color: #79806e; background: #e2e5d7; opacity: .75; }
.scheduled-item { min-width: 0; display: flex; flex-direction: column; height: 100%; }
.item-title { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.5; }
.item-price { display: block; margin-bottom: 8px; color: #526449; font-family: var(--mono); font-size: 10px; line-height: 1.65; }
.scheduled-item p { margin-bottom: 10px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; }
.item-controls select { flex: 1 1 100%; }
.item-controls button { min-height: 34px; border: 1px solid #b8c0ab; border-radius: 3px; background: transparent; color: #5a5141; padding: 5px 8px; font-size: 10px; line-height: 1.4; }
.item-controls button:hover { background: #e1e3d4; border-color: #87967a; }
.full-day-item { grid-column: span 2; background: #e0e5d1; border-color: #bac7a8; }
.schedule-slot.full-day-item .item-title { font-size: 14px; }
.schedule-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 13px; }
.schedule-links a { font-size: 11px; font-weight: 600; }
.empty-schedule { padding: 22px; border: 1px dashed #a9b69b; background: #e7e8da; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pending-panel { margin-top: 24px; padding: 23px; border: 1px solid #cabd99; background: #eee3c8; border-radius: 4px; }
.pending-panel h3 { margin-bottom: 10px; font-size: 26px; }
.pending-panel > p { margin-bottom: 15px; color: #68664f; font-size: 12px; line-height: 1.7; }
.pending-item { display: grid; grid-template-columns: 1fr; gap: 12px; padding-block: 14px; border-top: 1px solid #cec3a7; }
.pending-item strong { font-size: 13px; }
.pending-item p { margin-bottom: 0; font-size: 11px; line-height: 1.65; color: #68664f; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pending-actions select { flex: 1 1 200px; }
.pending-actions button { min-height: 38px; padding: 7px 11px; border: 1px solid #a1ad8f; border-radius: 3px; background: #f5f2e8; color: var(--ink); font-size: 11px; }
.pending-actions .button { background: var(--ink); color: var(--paper); }

.activity-price { margin-top: 5px; margin-bottom: 6px; color: var(--ink); font-family: var(--serif); font-size: 28px; line-height: 1.2; letter-spacing: -.5px; }
.activity-price small { font-family: var(--sans); font-size: 11px; letter-spacing: 0; color: var(--muted); }
.activity-price-range { display: block; margin-bottom: 12px; color: #536548; font-family: var(--mono); font-size: 10px; line-height: 1.6; }
.experience-card .activity-basis { width: 100%; padding-top: 3px; margin-top: 0; margin-bottom: 18px; }
.experience-card .activity-basis p { font-size: 11px; }
.activity-add.button { width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 14px; font-size: 12px; }
.activity-status { width: 100%; margin-top: 9px; margin-bottom: 0; color: #4e6345; font-size: 11px; line-height: 1.65; }
.experience-card .activity-status { font-size: 11px; color: #4e6345; }
.hotel-price { margin-block: 10px; color: var(--ink); font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.hotel-price small { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.hotel-actions { display: grid; gap: 10px; width: 100%; margin-top: auto; padding-top: 14px; }
.hotel-select { width: 100%; min-height: 44px; border: 1px solid #a7b397; background: transparent; color: var(--ink); padding: 10px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.hotel-select:hover { background: #e5e8d9; }
.hotel-select.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hotel-card .price-basis { margin-bottom: 14px; }

body:has(.trip-progress) { padding-bottom: 90px; }
.trip-progress { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px max(28px, calc((100vw - 1240px) / 2)); border-top: 1px solid #627354; background: var(--ink); color: var(--paper); box-shadow: 0 -4px 18px #23382d12; }
.trip-progress > div { min-width: 0; }
.trip-progress > a { display: flex; align-items: center; gap: 24px; width: 100%; text-decoration: none; }
.trip-progress > a > strong { flex: 1; color: #e2e6d6; font-size: 13px; font-weight: 500; }
.trip-progress > a > span:last-child { color: #d1d9c2; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.trip-progress .eyebrow { color: #c9d0b9; font-size: 9px; margin-bottom: 3px; }
.trip-progress p { color: #d2d9c4; margin-bottom: 0; font-size: 11px; line-height: 1.5; }
.trip-progress-price { color: #f3e0b6; font-family: var(--serif); font-size: 29px; line-height: 1.1; letter-spacing: -.6px; white-space: nowrap; }
.trip-progress-price small { color: #d2d9c4; font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.trip-progress .button { min-height: 42px; padding: 10px 16px; border-color: #b6c3a5; background: transparent; color: var(--paper); flex-shrink: 0; }
.trip-progress .button:hover { background: #3a5140; }
.trip-progress .text-link { color: var(--paper); }
.trip-progress .button.light { color: var(--ink); background: var(--paper); border-color: var(--paper); }

@media (max-width: 1100px) {
  .builder-grid { grid-template-columns: 290px minmax(0, 1fr); gap: 22px; }
  .control-group { padding: 20px; }
  .builder-summary { padding: 23px; }
  .schedule-day { padding: 17px; }
  .schedule-slots { gap: 7px; }
  .schedule-slot { padding: 10px; }
  .item-title { font-size: 11px; }
  .trip-progress { padding-inline: 32px; }
}
@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; gap: 30px; }
  .builder-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .builder-controls form { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; }
  .builder-controls > .control-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .builder-sidebar .builder-summary { margin-top: 18px; }
  .schedule-day { padding: 21px; }
  .schedule-slot { padding: 13px; }
  .item-title { font-size: 12px; }
  .summary-main { font-size: 48px; }
}
@media (max-width: 700px) {
  .builder-controls, .builder-controls form { grid-template-columns: 1fr; }
  .builder-heading { margin-bottom: 27px; }
  .builder-summary { padding: 23px; }
  .schedule-toolbar { align-items: flex-start; }
  .schedule-toolbar > div { width: 100%; }
  .schedule-toolbar h3 { font-size: 29px; }
  .schedule-slots { grid-template-columns: 1fr; gap: 11px; }
  .schedule-slot { padding: 15px; }
  .slot-empty { min-height: 72px; }
  .slot-empty select { margin-top: auto; }
  .full-day-item { grid-column: 1; }
  .item-title { font-size: 14px; }
  .item-price { font-size: 11px; }
  .item-controls select { flex: 1 1 160px; }
  .item-controls button { flex: 0 0 auto; }
  .schedule-slot select, .pending-actions select { min-height: 44px; font-size: 16px; }
  .item-controls button, .pending-actions button { min-height: 44px; padding: 9px 13px; font-size: 12px; }
  .schedule-date { font-size: 10px; }
  .schedule-day-header h3, .schedule-day-header h4 { font-size: 25px; }
  .schedule-overnight { font-size: 12px; }
  .schedule-city { font-size: 12px; }
  .schedule-notice, .planning-warning { padding: 14px 16px; }
  .pending-panel { padding: 20px; }
  .trip-progress { min-height: 76px; padding: 11px 20px; gap: 12px; }
  .trip-progress-price { font-size: 26px; }
  .trip-progress .button { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .trip-progress > p, .trip-progress .fine-print { display: none; }
  .trip-progress > a { gap: 13px; }
  .trip-progress > a > strong { font-size: 11px; line-height: 1.5; }
  .trip-progress > a > span:last-child { font-size: 10px; }
}
@media (max-width: 460px) {
  .builder-controls .field input, .builder-controls .field select, .override-grid input, .override-grid select { min-height: 46px; font-size: 16px; }
  .control-group { padding: 19px; }
  .control-group-heading h3, h3.control-group-heading { font-size: 24px; }
  .builder-summary { padding: 21px; }
  .summary-main { font-size: 45px; }
  .summary-main small { display: block; margin: 5px 0 0; }
  .builder-actions .button { width: 100%; min-height: 44px; }
  .schedule-toolbar .button { min-height: 44px; flex: 1 1 auto; }
  .schedule-day { padding: 17px; }
  .schedule-day-header { padding-bottom: 13px; }
  .schedule-day-header h3, .schedule-day-header h4 { font-size: 23px; }
  .schedule-intro { font-size: 12px; }
  .schedule-overnight { font-size: 11px; }
  .pending-actions select { flex-basis: 100%; }
  .pending-actions button { flex: 1 1 auto; }
  .override-grid { grid-template-columns: 1fr; }
  .trip-progress { gap: 9px; }
  .trip-progress > div:first-child { flex: 1; }
  .trip-progress .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .trip-progress p { font-size: 10px; }
  .trip-progress-price { font-size: 24px; }
  .trip-progress-price small { font-size: 9px; }
  .trip-progress > a { flex-wrap: wrap; gap: 5px 11px; }
  .trip-progress > a > strong { flex-basis: calc(100% - 110px); }
  .trip-progress > a > span:last-child { flex-basis: 100%; text-align: right; font-size: 9px; }
}

@media print {
  body:has(.trip-progress) { padding-bottom: 0; }
  .site-header, .site-footer, .trip-progress, main > section:not(.builder-section), main > .trip-strip, main > .hero { display: none !important; }
  .builder-section { display: block !important; padding: 0; background: white; border: 0; }
  .builder-section .wrap { width: 100%; }
  .builder-heading { margin-bottom: 20px; }
  .builder-heading h2 { font-size: 28px; }
  .builder-heading p { font-size: 10px; }
  .builder-grid { display: block; }
  .builder-sidebar { display: none !important; }
  .builder-summary { display: block; padding: 16px; background: #f2f2e9; margin-bottom: 20px; border: 1px solid #999; break-inside: avoid; }
  .builder-summary .summary-main { font-size: 33px; }
  .builder-summary .budget-breakdown { display: block; columns: 2; column-gap: 25px; }
  .builder-summary .budget-row { font-size: 10px; break-inside: avoid; }
  .builder-actions, .schedule-toolbar button, .schedule-toolbar .button, .item-controls, .slot-empty select, .pending-actions, .price-basis, .activity-basis, .export-hint, .schedule-links, .schedule-status { display: none !important; }
  .schedule-toolbar { margin-bottom: 12px; padding-bottom: 12px; }
  .schedule-toolbar h3 { font-size: 24px; }
  .schedule-intro, .schedule-notice, .planning-warning { font-size: 10px; }
  .schedule-list { display: block; }
  .schedule-day { padding: 12px; margin-bottom: 12px; border: 1px solid #aaa; background: white; break-inside: avoid; }
  .schedule-day-header { margin-bottom: 9px; padding-bottom: 8px; }
  .schedule-day-header h3, .schedule-day-header h4 { font-size: 18px; }
  .schedule-date, .schedule-city, .schedule-overnight { font-size: 9px; }
  .schedule-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .schedule-slot { padding: 9px; background: #f6f6f0; border-color: #ccc; }
  .full-day-item { grid-column: span 2; }
  .slot-empty { min-height: 0; }
  .slot-empty:empty { display: none; }
  .slot-label { font-size: 8px; }
  .item-title, .schedule-slot.full-day-item .item-title { font-size: 11px; }
  .item-price, .scheduled-item p, .slot-lock p { font-size: 9px; }
  .pending-panel { padding: 12px; background: white; border: 1px solid #aaa; break-inside: avoid; }
  .pending-panel h3 { font-size: 20px; }
  .pending-item { padding-block: 9px; }
}

.plan-estimate { margin-bottom: 4px; font-size: 16px; }
.slot-lock { padding: 10px; font-size: 12px; line-height: 1.6; }
.slot-empty > span { margin-bottom: 10px; font-size: 12px; color: var(--muted); }
#daily-schedule, #builder-cost { scroll-margin-top: 28px; }

.price-benchmarks { margin-bottom: 46px; padding-top: 20px; scroll-margin-top: 28px; }
.price-benchmarks > h3 { font-size: 32px; margin-bottom: 16px; }
.price-benchmarks > .section-intro { max-width: 800px; margin-bottom: 24px; }
.benchmark-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.benchmark-card { padding: 22px; border: 1px solid var(--line); background: var(--white); min-width: 0; }
.benchmark-kind { display: inline-block; margin-bottom: 14px; padding: 4px 7px; font-family: var(--mono); font-size: 9px; background: #e9dec5; color: var(--rust); }
.benchmark-card h4 { margin-bottom: 10px; font-size: 17px; }
.benchmark-card p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 13px; }
.benchmark-card .benchmark-price { font-family: var(--serif); color: var(--ink); font-size: 29px; line-height: 1.2; }
.benchmark-card .benchmark-dates { font-family: var(--mono); font-size: 10px; color: var(--rust); }
.benchmark-card .benchmark-use { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); }
@media(max-width:900px){.benchmark-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.benchmark-grid{grid-template-columns:1fr;}.benchmark-card{padding:20px;}}
@media print{.price-benchmarks{display:none!important;}}
