/* The approved itinerary identity, adapted to the existing working surfaces.
   Load after styles.css and enhancements.css; keep their behavior/layout hooks. */
:root {
  --bg: #fbf9f4;
  --paper: #fbf9f4;
  --paper-strong: #fffdf9;
  --ink: #30263b;
  --muted: #706978;
  --line: #ddd7df;
  --accent: #603895;
  --accent-deep: #402352;
  --accent-soft: #eee8f3;
  --olive: #46634f;
  --brand: #603895;
  --shadow: 0 8px 26px #30263b08;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 5px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
html { scroll-padding-top: 24px; }
body { background: var(--bg); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
h3, h4 { font-weight: 500; line-height: 1.4; }
h1 i, h2 i { color: var(--accent); font-weight: 400; }
p, li { overflow-wrap: break-word; }
button, input, select, textarea { font-family: var(--sans); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.page-shell, body.home-page .page-shell { width: min(1280px, calc(100% - 96px)); max-width: 1280px; padding-bottom: 36px; }
body.home-page main { width: 100%; max-width: 1280px; }
.site-header, .site-header.is-authenticated { min-height: 110px; margin-top: 0; padding: 23px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; gap: 26px; }
.site-header .brand { color: #402352; gap: 9px; flex-shrink: 0; }
.site-header .brand-kicker { font: 400 2rem/1 var(--serif); letter-spacing: -.065em; text-transform: none; color: #402352; white-space: nowrap; }
.site-header .brand-name { font: 400 .75rem/1.4 var(--sans); letter-spacing: .15em; color: #402352; max-width: none; white-space: nowrap; }
.site-header .nav { gap: 9px 22px; align-items: center; }
.site-header .nav a { color: var(--ink); font-size: .875rem; padding: 8px 0; }
.site-header .nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.site-header > .button-ghost { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; color: var(--accent-deep); white-space: nowrap; min-height: 44px; margin-left: auto; }
.header-auth-shell { gap: 12px; }
.header-account-button { background: var(--accent-soft); border-color: var(--line); color: var(--ink); border-radius: 6px; }
.header-account-avatar { background: var(--paper-strong); font-weight: 600; }
.header-account-lines small { color: var(--muted); }
.header-account-card { background: var(--accent-deep); }
.header-account-dropdown { border-color: var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.button { border-radius: 5px; min-height: 48px; font-size: .875rem; font-weight: 600; line-height: 1.4; padding: 13px 21px; }
.button-primary { background: var(--accent); color: #fff; box-shadow: none; }
.button-primary:hover { background: var(--accent-deep); }
.button-ghost, .button-ghost.dark-ghost { color: var(--accent); border: 1px solid var(--line); background: transparent; }
.button-ghost:hover, .button-ghost.dark-ghost:hover { background: var(--accent-soft); }
.eyebrow, .route-kicker { color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .14em; line-height: 1.7; }
.breadcrumb { color: var(--muted); font-size: .875rem; margin: 0 0 28px; }
.detail-page { padding-top: 32px; }
.detail-hero { gap: 40px; padding-block: 16px 34px; }
.detail-hero h1 { font-weight: 400; font-size: clamp(2.65rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; }
.detail-hero:not(:has(> aside, > figure)) { grid-template-columns: minmax(0, 900px); }
.hero-text { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 65ch; }
.detail-hero .hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-hero .hero-points span { display: inline-flex; padding: 6px 11px; }
.hero-points span, .mini-tags span, .tag, .route-meta span { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--line); border-radius: 4px; font-size: .8125rem; font-weight: 500; }
.detail-hero:has(> .editorial-hero-photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 35px 55px; }
.editorial-hero-photo { grid-column: 2; grid-row: 1; position: relative; margin: 0; align-self: stretch; min-height: 420px; }
.editorial-hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; border-radius: 5px 5px 90px 5px; }
.editorial-hero-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 65px 27px 24px; background: linear-gradient(transparent, #171422b0); color: #fff; border-radius: 0 0 90px 5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; }
.editorial-hero-photo figcaption a { color: #fff; text-underline-offset: 3px; }
.detail-hero:has(> .editorial-hero-photo) > .detail-aside { grid-column: 1 / -1; grid-row: 2; background: var(--accent-soft); padding: 24px 28px; }
.detail-aside, .detail-card, .timeline-card, .route-page .detail-card, .route-page .detail-aside { background: var(--paper-strong); border: 1px solid var(--line); box-shadow: none; border-radius: 6px; }
.detail-aside h3 { font-family: var(--serif); font-size: 1.55rem; }
.detail-card { padding: 26px; }
.detail-card h2, .detail-card h3, .timeline-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; letter-spacing: -.025em; }
.detail-card p, .detail-card li, .timeline-card p { font-size: 1rem; line-height: 1.8; }
.detail-grid { gap: 28px; margin-top: 26px; }
.card-link { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 25px 0; }
.card-link:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--accent); }
.card-link h2, .card-link h3 { color: var(--ink); }
.card-link:hover h2, .card-link:hover h3 { color: var(--accent); }
.section, body.home-page .section { padding-top: 65px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.15rem, 3.9vw, 3.35rem); font-weight: 400; }
.detail-cta { border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--line); box-shadow: none; padding: 35px; margin-top: 45px; align-items: center; }
.detail-cta h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.detail-cta .button { justify-self: end; }
.route-page .detail-cta h2, .route-page .detail-cta p, .route-page .detail-cta .eyebrow { color: var(--ink); }
.site-footer { background: transparent; border-top: 1px solid var(--line); box-shadow: none; border-radius: 0; margin-top: 70px; padding: 35px 0 0; gap: 22px; }
.site-footer p { color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.site-footer a { font-size: .875rem; color: var(--ink); }
.site-footer strong { font-family: var(--serif); color: #402352; font-size: 1.5rem; font-weight: 400; }
.footer-links { gap: 12px 24px; }
.editorial-photo-credits, .editorial-photo-credits a { font-size: .75rem; color: var(--muted); }
.skip-link { background: var(--accent-deep); border-radius: 4px; }

/* The home page starts with the usable planner; photographs belong to routes. */
body.home-page .hero-planner { max-width: 1280px; gap: 28px; margin: 28px auto 55px; padding: 12px 0 0; }
body.home-page .planner-hero-copy { max-width: 850px; }
body.home-page .planner-hero-copy h1 { max-width: 800px; font: 400 clamp(2.7rem, 4.5vw, 4.25rem)/1.06 var(--serif); letter-spacing: -.05em; }
.planner-hero-copy .eyebrow { margin: 0 0 16px; }
body.home-page .planner-search-card { max-width: none; padding: 24px 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-strong); box-shadow: 0 8px 28px #30263b06; gap: 17px; }
.planner-intent-tabs, .planner-tabs { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 20px; }
.planner-intent-tab, .planner-tab { color: var(--muted); border-radius: 0; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: .875rem; font-weight: 500; padding: 10px 0; box-shadow: none; }
.planner-intent-tab.active, .planner-tab.active { color: var(--accent); background: transparent; border-color: var(--accent); box-shadow: none; }
.planner-control-summary, .planner-popover > summary, body.home-page .planner-stepper { border-radius: 5px; border-color: var(--line); background: var(--paper-strong); box-shadow: none; }
.planner-control-summary::after, .planner-popover > summary::after { color: var(--accent); }
.planner-expanded-panel, .planner-popover-panel { border-radius: 6px; border-color: var(--line); background: var(--paper); box-shadow: none; }
.planner-field-label, .planner-choice-label, .planner-search-card label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.planner-helper, .planner-search-card .planner-helper { font-size: .75rem; color: var(--muted); }
.planner-search-card input, .planner-search-card select, .lead-form input, .auth-form input, .lead-form textarea { border-color: var(--line); border-radius: 5px; background: var(--paper-strong); color: var(--ink); font-size: 1rem; }
.segmented-choice, .planner-choice-button, .planner-stepper-button { border-color: var(--line); border-radius: 5px; font-size: .875rem; font-weight: 500; }
.segmented-choice.active, .segmented-choice.is-active, .planner-choice-button.active, .segmented-choice[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent); box-shadow: none; }
.planner-style-summary em { background: var(--accent-soft); color: var(--accent); border-color: var(--line); border-radius: 4px; font-weight: 500; }
body.home-page .planner-search-card .planner-submit { min-width: 0; min-height: 56px; border-radius: 5px; background: var(--accent); box-shadow: none; }
body.home-page .planner-search-card .planner-submit:hover { background: var(--accent-deep); }
body.home-page #rotas { padding-top: 10px; background: transparent; }
.accent .route-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.route-card, .route-card:hover { background: transparent; border-radius: 0; box-shadow: none; }
.route-visual { border-radius: 5px 5px 55px 5px; aspect-ratio: 1.1; }
.route-badges span { background: var(--paper); border-radius: 3px; color: var(--ink); font-weight: 500; font-size: .75rem; padding: 5px 10px; }
.route-body { padding: 22px 0 0; }
.route-body h3 { font: 400 1.8rem/1.18 var(--serif); letter-spacing: -.035em; margin: 9px 0 13px; }
.route-body p { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.route-body .route-kicker { font-size: .75rem; color: var(--accent); }
.route-cta { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--line); padding: 8px 0; }
.step { background: transparent; border: 0; border-top: 1px solid var(--line); box-shadow: none; border-radius: 0; padding: 22px 0; }
.step span { font: 400 1.7rem/1 var(--serif); background: transparent; width: auto; height: auto; color: var(--accent); }
.step h3 { font: 400 1.5rem/1.25 var(--serif); }
.step p { font-size: 1rem; line-height: 1.75; color: var(--muted); }

/* Existing route editor, account and booking controls keep their mechanics. */
.route-hero { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; padding: 0 0 32px; }
.route-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.5rem); }
.route-page .hero-text { color: var(--muted); }
.route-title-row { gap: 22px; }
.route-inline-pdf { box-shadow: none; }
.route-cluster-editor, .active-route, .trip-tools { background: var(--paper-strong); border-color: var(--line); border-radius: 6px; box-shadow: none; }
.route-cluster-editor { border-top: 2px solid var(--accent); }
.route-cluster-sticky-recalculate, .mobile-floating-cta { background: var(--accent); border-radius: 5px; box-shadow: var(--shadow); }
.route-cluster-chip, .route-cluster-step { border-color: var(--line); border-radius: 5px; }
.itinerary-card { background: var(--paper-strong); border-color: var(--line); border-radius: 6px; box-shadow: none; }
.itinerary-rich h3 { font: 400 1.65rem/1.25 var(--serif); }
.itinerary-head span, .itinerary-area { color: var(--accent); font-weight: 500; }
.kanban-slot, .dayparts > div { background: var(--paper); border-color: var(--line); border-radius: 5px; }
.kanban-slot-head strong, .dayparts b { color: var(--accent); font-size: .875rem; font-weight: 500; }
.kanban-card, .commerce-hotel-card, .commerce-tour-card, .city-guide-card { border-color: var(--line); border-radius: 5px; box-shadow: none; background: var(--paper-strong); }
.kanban-card h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.kanban-add, .kanban-card-button, .itinerary-transfer-button { border-radius: 4px; border-color: var(--line); color: var(--accent); background: transparent; font-size: .875rem; font-weight: 500; }
.kanban-card-image, .itinerary-image, .commerce-hotel-card-image, .commerce-tour-card-image { border-radius: 4px; }
.trip-budget-result { background: var(--accent-soft); border-radius: 5px; }
.trip-tools { border-top: 2px solid var(--accent); }
.trip-tools p, #trip-budget-totals span { color: var(--muted); }
.trip-tools input[type="number"] { border-color: var(--line); border-radius: 4px; background: var(--paper-strong); }
.auth-shell, .auth-card, .auth-main-card, .auth-inline-panel, .journey-card, .dashboard-card, .saved-trip-card { border-color: var(--line); border-radius: 6px; box-shadow: none; background: var(--paper-strong); }
.auth-hero, .auth-visual, .journey-hero, .dashboard-hero { background: var(--accent-soft); border-color: var(--line); border-radius: 6px; box-shadow: none; color: var(--ink); }

/* Working surfaces: an editorial frame with practical, familiar controls. */
body[data-admin-view] .page-shell { max-width: 1520px; width: calc(100% - 64px); }
body[data-admin-view] .site-header { min-height: 100px; }
body[data-admin-view] .site-header > .button { display: none; }
.admin-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 38px; row-gap: 24px; padding-top: 34px; align-items: start; }
.admin-workspace > * { grid-column: 2; min-width: 0; margin: 0; }
.admin-workspace .admin-nav-shell { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 24px; padding: 9px 0 26px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.workspace-nav-label { color: var(--muted); font-size: .65rem; letter-spacing: .16em; margin: 0 0 25px; }
.admin-workspace .admin-nav-tabs { display: grid; gap: 6px; padding-right: 22px; }
.admin-workspace .admin-nav-tab { border: 0; border-radius: 4px; background: transparent; padding: 13px 14px; font-size: .88rem; font-weight: 500; line-height: 1.4; color: var(--muted); box-shadow: none; transform: none; }
.admin-workspace .admin-nav-tab:hover { background: var(--accent-soft); color: var(--accent-deep); }
.admin-workspace .admin-nav-tab.is-active { background: var(--accent-deep); color: var(--paper-strong); }
.workspace-nav-extra { display: block; margin: 18px 20px 0 14px; font-size: .78rem; color: var(--accent); }
.workspace-nav-extra:first-of-type { margin-top: 34px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.workspace-heading .eyebrow { font-size: .65rem; letter-spacing: .16em; margin: 0 0 14px; }
.workspace-heading h1 { font: 400 clamp(2rem, 3.1vw, 3rem)/1.12 var(--serif); letter-spacing: -.04em; margin: 0; }
.workspace-heading p:not(.eyebrow) { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 13px 0 0; }
.workspace-site-link { color: var(--accent); font-size: .83rem; border-bottom: 1px solid var(--line); padding: 8px 0; white-space: nowrap; align-self: end; }
.workspace-collection { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .65fr); gap: 30px; padding: 32px 36px; background: #eee8e1; border-radius: 5px 5px 64px 5px; }
.workspace-collection h2 { font: 400 clamp(1.8rem, 2.8vw, 2.5rem)/1.15 var(--serif); letter-spacing: -.035em; margin: 12px 0; }
.workspace-collection h2 i { color: var(--accent); }
.workspace-collection p:not(.eyebrow) { max-width: 400px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.workspace-collection .eyebrow { font-size: .65rem; }
.workspace-collection .button { font-size: .83rem; margin-top: 10px; }
.workspace-collection dl { display: grid; align-content: center; gap: 18px; margin: 0; }
.workspace-collection dl > div { display: flex; flex-direction: column-reverse; gap: 5px; border-bottom: 1px solid #d3c9ca; padding-bottom: 14px; }
.workspace-collection dd { font: 400 2.6rem/1 var(--serif); color: var(--accent-deep); margin: 0; }
.workspace-collection dt { font-size: .73rem; color: var(--muted); }
.admin-workspace .admin-toolbar, .admin-workspace .admin-section, .admin-workspace .admin-card, .admin-workspace .admin-empty-state { background: var(--paper-strong); border: 1px solid var(--line); border-radius: 5px; box-shadow: none; }
.admin-workspace .admin-toolbar, .admin-workspace .admin-section, .admin-workspace .admin-empty-state { padding: 24px; }
.admin-workspace .admin-nav-shell { padding: 9px 0 26px; border: 0; border-right: 1px solid var(--line); background: transparent; border-radius: 0; }
.admin-workspace .admin-content { margin: 0; grid-template-columns: minmax(0, 1fr); }
.admin-workspace .admin-panel { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.admin-workspace .admin-panel > *, .admin-workspace .admin-table-wrap, .admin-workspace #assets-table { min-width: 0; max-width: 100%; }
.admin-workspace .admin-table-wrap, .admin-workspace #assets-table { overflow-x: auto; }
.admin-workspace .admin-nav-tab, .admin-workspace .workspace-nav-extra { text-decoration: none; }
.admin-workspace .workspace-nav-extra { margin-left: 8px; margin-right: 8px; }
.admin-workspace .button-secondary { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); }
.admin-workspace .admin-section-head h2, .admin-workspace .admin-empty-state h2 { font: 400 1.55rem/1.25 var(--serif); letter-spacing: -.02em; }
.admin-workspace .admin-section-head p, .admin-workspace .admin-card-head p { font-size: .85rem; line-height: 1.6; }
.admin-workspace .admin-section-head { margin-bottom: 24px; }
.admin-workspace .admin-dashboard-grid { counter-reset: workspace-cards; gap: 0 28px; }
body[data-admin-view="dashboard"] .admin-content .admin-section { border: 0; padding: 12px 0 0; background: transparent; }
.admin-workspace .admin-dashboard-grid .admin-card { counter-increment: workspace-cards; position: relative; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 26px 0 15px 35px; background: transparent; }
.admin-workspace .admin-dashboard-grid .admin-card::before { content: counter(workspace-cards, decimal-leading-zero); position: absolute; top: 28px; left: 0; font: 400 1.05rem var(--serif); color: var(--accent); }
.admin-workspace .admin-dashboard-grid h3 { font: 400 1.45rem var(--serif); }
.admin-workspace .admin-dashboard-grid .admin-card-head { margin: 0; flex-wrap: wrap; gap: 5px; }
.admin-workspace .admin-dashboard-grid .admin-card-head > div { width: 100%; }
.admin-workspace .admin-dashboard-grid .button { background: transparent; border: 0; color: var(--accent); border-radius: 0; font-size: .82rem; padding: 8px 0; min-height: 36px; }
.admin-workspace .admin-dashboard-grid .button::after { content: ' ↗'; }
.admin-workspace label { min-width: 0; font-size: .83rem; }
.admin-workspace input:not([type="checkbox"]), .admin-workspace select, .admin-workspace textarea { min-width: 0; max-width: 100%; border-radius: 4px; background-color: var(--paper-strong); border: 1px solid var(--line); color: var(--ink); padding: 12px; font-family: inherit; }
.admin-workspace input:focus-visible, .admin-workspace select:focus-visible, .admin-workspace textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-workspace .admin-field span { font-size: .83rem; font-weight: 500; }
.admin-workspace .admin-field small { font-size: .75rem; }
.admin-workspace .admin-card-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.admin-workspace .admin-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.admin-workspace .admin-kpi-card, .admin-workspace .admin-origin-card, .admin-workspace .admin-funnel-card, .admin-workspace .admin-funnel-step { background: var(--paper); border-color: var(--line); border-radius: 4px; }
.admin-workspace .admin-kpi-value { font: 400 2.25rem var(--serif); color: var(--accent-deep); }
.admin-workspace .admin-rich-wrapper, .admin-workspace .admin-secondary-block { border-radius: 4px; border-color: var(--line); }
.admin-workspace .admin-period-grid { grid-template-columns: minmax(0, 1fr); }
.admin-workspace .admin-save-feedback { overflow-wrap: anywhere; }
.admin-workspace .admin-access-banner { border-radius: 4px; font-size: .85rem; }
.admin-workspace table { font-size: .83rem; }
.admin-workspace th { background: var(--paper); color: var(--muted); font-size: .75rem; font-weight: 500; }
.admin-workspace .admin-quick-form-hotels, .admin-workspace .admin-quick-form-restaurants, .admin-workspace .admin-fields-hotel, .admin-workspace .admin-fields-restaurant { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.home-editorial-intro { margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
body.home-page .planner-style-summary > strong { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--line); border-radius: 4px; font-size: .8rem; }
body.home-page .planner-duration-field { border-radius: 4px; background: var(--paper-strong); border-color: var(--line); }
.home-collection-strip { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 22px 0; margin: 10px 0 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-collection-strip p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.home-collection-strip strong { font: 400 1.6rem var(--serif); }
.home-collection-strip p span { font-size: .8rem; color: var(--muted); }
.home-collection-strip > a { color: var(--accent); font-size: .85rem; }
.home-collection-strip > a span { margin-left: 20px; }

.route-page .route-hero { padding: 20px 0 32px; }
.route-page .route-title-row { align-items: start; flex-direction: column; }
.route-page .route-title-row h1 { max-width: 820px; }
.route-page .route-title-actions { justify-content: flex-start; }
.route-page .route-title-actions .button { font-size: .8rem; padding: 12px 16px; min-height: 44px; }
.route-page .detail-hero .itinerary-map-link { display: none; }
.route-page:has(#route-cluster-panel[hidden]) .route-workspace-nav a[href="#route-cluster-panel"] { display: none; }
.route-page .route-hero .detail-aside { background: #eee8e1; border: 0; border-radius: 5px 5px 45px 5px; padding: 24px; }
.route-page .route-hero .detail-aside h3 { font: 400 1.7rem/1.2 var(--serif); }
.route-workspace-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 15px 0; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.route-workspace-nav a { display: inline-flex; align-items: center; min-height: 38px; color: var(--accent); font-size: .8rem; }
.route-workspace-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.route-page .route-cluster-editor { padding: 26px; }
.route-page .route-cluster-editor h2 { font: 400 1.8rem var(--serif); }
.route-page .route-cluster-chip { background: var(--paper); }
.route-page .route-cluster-chip.is-active { background: var(--accent-soft); border-color: var(--line); }
.route-page .itinerary-grid { gap: 26px; }
.route-page .itinerary-kanban { padding: 24px; border-top: 2px solid var(--accent); }
.route-page .itinerary-kanban > h3 { font: 400 1.6rem/1.2 var(--serif); }
.route-page .itinerary-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.route-page .kanban-columns { gap: 18px; }
.route-page .kanban-slot { padding: 16px; background: var(--paper); }
.route-page .kanban-card-item { border: 1px solid var(--line); border-radius: 4px; box-shadow: none; background: var(--paper-strong); padding: 14px; }
.route-page .kanban-card-item:hover { transform: none; border-color: #ae9dba; box-shadow: 0 4px 12px #30263b08; }
.route-page .kanban-card-item h4 { font: 400 1.25rem/1.25 var(--serif); }
.route-page .kanban-card-item p { color: var(--muted); line-height: 1.65; font-size: .85rem; }
.route-page .kanban-card-tag { background: var(--accent-soft); color: var(--accent-deep); border-radius: 3px; font-size: .7rem; font-weight: 500; }
.route-page .kanban-card-item.is-transfer { background: #edf2ef; border-color: #ccd8cf; }
.route-page .kanban-card-item.is-transfer .kanban-card-tag { background: #dce8df; color: #345640; }
.route-page .kanban-card-actions button { width: 36px; height: 36px; border-radius: 4px; border-color: var(--line); }
.route-page .kanban-booking { background: var(--accent-soft); border-color: var(--line); border-radius: 4px; box-shadow: none; }
.route-page .kanban-booking-copy strong, .route-page .kanban-booking-copy small { color: var(--accent-deep); }
.route-page .kanban-booking-cta { background: var(--accent); color: white; border-radius: 3px; }
.route-page .kanban-suggestions { background: var(--paper); border-color: var(--line); border-radius: 4px; }
.route-page .kanban-filter-chip.is-active { background: var(--accent-deep); border-color: var(--accent-deep); }
.route-page .kanban-suggestion { border-color: var(--line); border-radius: 4px; }
.route-page .route-pdf-hint, .route-page .route-quality-note { font-size: .8rem; }
.route-page .trip-tools { padding: 26px; }
.route-page #itinerary-grid, .route-page #trip-tools, .route-page #city-guides, .route-page #route-cluster-panel { scroll-margin-top: 24px; }

.trips-workspace .detail-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 35px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.trips-workspace .detail-hero h1 { font: 400 clamp(2.5rem, 4vw, 3.8rem)/1.1 var(--serif); letter-spacing: -.045em; }
.trips-workspace .detail-hero .hero-text { max-width: 520px; font-size: 1rem; }
.trips-hero-actions { display: grid; justify-items: start; gap: 14px; padding-bottom: 12px; }
.trips-workspace .trips-login-card { margin-top: 30px; padding: 36px; background: #eee8e1; border: 0; border-radius: 4px 4px 64px 4px; }
.trips-workspace .trips-login-copy h2 { font: 400 2rem var(--serif); margin: 0; }
.trips-workspace .trips-login-copy p { color: var(--muted); line-height: 1.7; }
.trips-workspace .trips-account-bar { border: 0; padding: 22px 0; background: transparent; box-shadow: none; }
.trips-workspace .trips-account-bar h2 { font: 400 1.7rem var(--serif); }
.trips-workspace .trips-account-bar .eyebrow { font-size: .7rem; }
.trips-workspace .trips-tabs { display: flex; gap: 28px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.trips-workspace .trips-tab { padding: 12px 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: .9rem; font-weight: 500; }
.trips-workspace .trips-tab.is-active { border-color: var(--accent); color: var(--accent); }
.trips-workspace .trip-card { grid-template-columns: 260px minmax(0, 1fr); border-radius: 5px; border-color: var(--line); box-shadow: none; background: var(--paper-strong); }
.trips-workspace .trip-card-cover { background: #eee8e1; border-radius: 0 0 55px 0; overflow: hidden; }
.trips-workspace .trip-card-placeholder { font: italic 400 2rem var(--serif); color: var(--accent); }
.trips-workspace .trip-card-top h3 { font: 400 2rem var(--serif); }
.trips-workspace .trip-card-badge { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.trips-workspace .trip-card-meta span { background: var(--accent-soft); color: var(--accent); border-radius: 3px; font-size: .75rem; font-weight: 500; }
.trips-workspace .trip-card-summary { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.trips-workspace .empty-state { padding: 38px; background: transparent; text-align: center; border: 1px dashed var(--line); }
.trips-workspace .empty-state h2 { font: 400 2rem var(--serif); }
.trips-workspace .empty-state .button { margin: 14px auto 0; }

@media(max-width:1100px) {
  .admin-workspace { grid-template-columns: 155px minmax(0, 1fr); column-gap: 24px; }
  .admin-workspace .admin-nav-tabs { padding-right: 12px; }
  .workspace-heading { align-items: start; }
  .workspace-heading > .workspace-site-link { display: none; }
  .admin-workspace .admin-fields-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace .admin-toolbar-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:760px) {
  body:has(.trips-workspace) .site-header, body:has(.route-page) .site-header { position: static; }
  body[data-admin-view] .page-shell { width: calc(100% - 36px); }
  .admin-workspace { display: flex; flex-direction: column; padding-top: 20px; gap: 24px; }
  .admin-workspace > * { width: 100%; }
  .admin-workspace .admin-nav-shell { position: static; border: 0; padding: 0 0 8px; }
  .workspace-nav-label, .workspace-nav-extra { display: none; }
  .admin-workspace .admin-nav-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; }
  .admin-workspace .admin-nav-tab { padding: 10px 12px; font-size: .78rem; }
  .workspace-heading h1 { font-size: 2.45rem; }
  .workspace-collection { padding: 26px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .workspace-collection dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .workspace-collection dd { font-size: 2rem; }
  .workspace-collection dt { font-size: .66rem; line-height: 1.5; }
  .admin-workspace .admin-section-head-inline, .admin-workspace .admin-toolbar, .admin-workspace .admin-fields, .admin-workspace .admin-quick-form, .admin-workspace .admin-funnel-steps, .admin-workspace .admin-origin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-workspace .admin-field-span-2 { grid-column: auto; }
  .admin-workspace .admin-toolbar, .admin-workspace .admin-section, .admin-workspace .admin-empty-state { padding: 20px; }
  .admin-workspace .admin-nav-shell { padding: 0; }
  .admin-workspace .admin-card-head { flex-wrap: wrap; }
  .admin-workspace .admin-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-workspace .admin-toolbar-meta, .admin-workspace .admin-quick-form-actions { flex-wrap: wrap; }
  .home-collection-strip { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .home-editorial-intro { font-size: .93rem; }
  .trips-workspace .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trips-workspace .trips-login-card { padding: 28px 22px; }
  .trips-workspace .trips-account-bar { grid-template-columns: minmax(0, 1fr); }
  .trips-workspace .trip-card { grid-template-columns: minmax(0, 1fr); }
  .trips-workspace .trip-card-cover { min-height: 0; height: 230px; }
  .trips-workspace .trip-card-body { padding: 22px; }
  .trips-workspace .trip-card-top { flex-wrap: wrap; }
  .route-page .itinerary-kanban, .route-page .route-cluster-editor, .route-page .trip-tools { padding: 20px 16px; }
  .route-workspace-nav { gap: 4px 18px; }
  .route-workspace-nav a { font-size: .75rem; }
}

@media(max-width:1200px) {
  .site-header.has-mobile-nav { flex-wrap: wrap; }
  .site-header.has-mobile-nav .nav { display: none; width: 100%; order: 5; padding: 15px 0 0; border-top: 1px solid var(--line); }
  .site-header.has-mobile-nav.nav-open .nav { display: flex; }
  .site-header .mobile-nav-toggle { display: inline-flex; margin-left: auto; min-height: 44px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
  .site-header .header-auth-shell { margin-left: auto; }
  .accent .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:900px) {
  .page-shell, body.home-page .page-shell { width: calc(100% - 48px); }
  .detail-hero:has(> .editorial-hero-photo) { gap: 25px; }
  .editorial-hero-photo { min-height: 350px; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero h1 { font-size: 2.8rem; }
  .detail-hero:not(:has(> .editorial-hero-photo)), .detail-cta { grid-template-columns: minmax(0, 1fr); }
  .detail-cta .button { justify-self: start; }
}
@media(max-width:640px) {
  .page-shell, body.home-page .page-shell { width: calc(100% - 36px); }
  .site-header, .site-header.has-mobile-nav { gap: 15px; min-height: 92px; padding: 20px 0; }
  .site-header .brand-kicker { font-size: 1.9rem; }
  .site-header .brand-name { font-size: .75rem; letter-spacing: .07em; }
  .site-header > .button-ghost { order: 4; margin-left: 0; }
  .site-header .header-auth-shell { order: 4; width: 100%; }
  .site-header .header-account-lines { display: grid; max-width: 110px; }
  .site-header .nav { gap: 8px 22px; }
  .site-header .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .detail-page { padding-top: 25px; }
  .detail-hero, .detail-hero:has(> .editorial-hero-photo) { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 0; }
  .detail-hero h1 { font-size: clamp(2.5rem, 9vw, 3rem); }
  .editorial-hero-photo { grid-column: 1; grid-row: auto; min-height: 345px; }
  .detail-hero:has(> .editorial-hero-photo) > .detail-aside { grid-column: 1; grid-row: 3; }
  .editorial-hero-photo img, .editorial-hero-photo figcaption { border-bottom-right-radius: 65px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detail-card { padding: 22px; }
  .card-link { padding-inline: 0; }
  .detail-cta { padding: 26px 22px; }
  body.home-page .hero-planner { margin-top: 22px; gap: 24px; }
  body.home-page .planner-hero-copy h1 { font-size: 2.75rem; }
  body.home-page .planner-search-card { padding: 20px 16px; }
  .planner-compact-secondary-row { flex-wrap: wrap; }
  .planner-style-summary { text-align: left; }
  .accent .route-grid { gap: 27px 16px; }
  .route-visual { aspect-ratio: .9; border-bottom-right-radius: 35px; }
  .route-badges { top: 10px; left: 10px; }
  .route-badges span + span { display: none; }
  .route-body h3 { font-size: 1.55rem; }
  .route-body p { font-size: .9375rem; }
  .route-body .route-kicker { font-size: .75rem; }
  .route-page { gap: 25px; }
  .route-title-actions { gap: 8px; }
  .route-title-actions .button { padding: 11px 14px; }
  .site-footer { margin-top: 50px; padding-bottom: 65px; }
}
@media print {
  body { background: #fff; }
  .editorial-hero-photo { min-height: 240px; }
  .button { box-shadow: none; }
}
