/* =====================================================================
   My Travel Factory — site layer on the Modernist design system.
   Layout, cinematic stages and the travel patterns from the guidelines.
   Every value comes from a --space-*, --color-* or --font-* token.
   Scoped to .mtf-modernist so the not-yet-converted templates are untouched.
   ===================================================================== */

.mtf-modernist { --measure: 1180px; --pm: 24px; --sec: 72px; --sec-sm: 48px; }
@media (max-width: 767px) { .mtf-modernist { --pm: 16px; --sec: 48px; --sec-sm: 32px; } }

.mtf-modernist body, body.mtf-modernist { margin: 0; overflow-x: hidden; }

/* — the 1180px measure — */
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--pm); }

/* — section rhythm — */
.sec { padding-block: var(--sec); }
.sec-sm { padding-block: var(--sec-sm); }
/* section dividers removed — whitespace and surface blocks separate sections */

/* — labels — */
.lbl { font-family: var(--font-heading); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.lbl-accent { color: var(--color-accent); font-weight: var(--font-heading-weight); }
.sec-head { display: flex; gap: var(--space-4); align-items: baseline; margin-bottom: var(--space-6); }
.sec-head__n { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 13px; color: var(--color-accent); flex: none; }

/* =====================================================================
   HEADER — sticky, ground, 2px bottom rule. Opaque over a stage.
   ===================================================================== */
.site-head { position: sticky; top: 0; z-index: 60; background: var(--color-bg); border-bottom: 2px solid var(--color-divider); }
.site-head .nav { max-width: var(--measure); margin-inline: auto; padding: var(--space-3) var(--pm); border-bottom: 0; gap: var(--space-6); }
.nav-brand a { color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__burger { display: none; width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid var(--color-divider); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 16px; height: 2px; background: var(--color-text); position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--color-text); }
.nav__burger span::before { top: -5px; } .nav__burger span::after { top: 5px; }

@media (max-width: 900px) {
	.nav__links, .site-head .btn-secondary { display: none; }
	.nav__burger { display: inline-flex; }
}

/* mobile panel */
.mnav { display: none; position: fixed; inset: 0; z-index: 80; background: var(--color-bg); padding: var(--pm); overflow-y: auto; }
.mnav.open { display: block; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-4); border-bottom: 2px solid var(--color-divider); }
.mnav a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; }
.mnav .mnav__sub a { font-size: 14px; font-weight: 400; font-family: var(--font-body); color: var(--color-neutral-800); }

/* =====================================================================
   CINEMATIC STAGE — full bleed, type on a ground plate, flush left.
   ===================================================================== */
.stage { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); height: 88vh; min-height: 560px; max-height: 900px; background: var(--color-neutral-300); overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage__inner { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.stage__rail { width: 100%; max-width: var(--measure); margin-inline: auto; padding: 0 var(--pm) var(--space-8); }
.stage__plate { background: var(--color-bg); padding: var(--space-6) var(--space-8) var(--space-8); max-width: 620px; }
.stage__plate h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 0.94; letter-spacing: -0.035em; margin: var(--space-3) 0 0; }
.stage__plate p { font-size: 15.5px; color: var(--color-neutral-800); max-width: 44ch; margin: var(--space-4) 0 0; line-height: 1.6; }
.stage__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

.stage-sm { height: 46vh; min-height: 300px; }

@media (max-width: 767px) {
	.stage { height: 72vh; min-height: 460px; }
	.stage__plate { padding: var(--space-6) var(--space-4) var(--space-4); }
	.stage__plate p { font-size: 15px; }
}

/* =====================================================================
   ENQUIRY STARTER — the §9.1 search bar, adapted. Four equal cells in a
   2px frame, 1px internal rules. Sits below the stage, inside the measure.
   ===================================================================== */
.starter { border: 2px solid var(--color-text); background: var(--color-bg); display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.starter__cell { padding: var(--space-3) var(--space-4); border-right: 1px solid var(--color-divider); text-align: left; background: transparent; border-top: 0; border-bottom: 0; border-left: 0; cursor: pointer; font: inherit; color: inherit; }
.starter__cell:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.starter__cell .lbl { display: block; margin-bottom: 2px; }
.starter__cell b { font-family: var(--font-body); font-weight: 600; font-size: 14px; display: block; }
.starter .btn-primary { border-radius: 0; justify-content: flex-start; padding: var(--space-3) var(--space-6); }

@media (max-width: 767px) {
	.starter { grid-template-columns: 1fr; }
	.starter__cell { border-right: 0; border-bottom: 1px solid var(--color-divider); }
	.starter .btn-primary { width: 100%; }
}

/* =====================================================================
   MODULAR GRID — equal cells, visible structure (readme: "let the grid show")
   ===================================================================== */
.cells { display: grid; border-top: 2px solid var(--color-divider); border-left: 2px solid var(--color-divider); }
.cells-3 { grid-template-columns: repeat(3, 1fr); }
.cells-4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--color-bg); padding: var(--space-6); border-right: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.cell:hover { background: var(--color-surface); }
a.cell:hover .cell__go { color: var(--color-accent); }
.cell h4 { margin: var(--space-3) 0 var(--space-2); }
.cell p { font-size: 14px; color: var(--color-neutral-800); margin: 0; }
.cell__go { margin-top: auto; padding-top: var(--space-4); font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) { .cells-3, .cells-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cells-3, .cells-4 { grid-template-columns: 1fr; } }

/* =====================================================================
   TRIP CARDS — three-up. Photograph, facts, action.
   ===================================================================== */
.trips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-divider); border-block: 2px solid var(--color-divider); }
.trip { background: var(--color-bg); display: flex; flex-direction: column; }
.trip__media { aspect-ratio: 3 / 2; background: var(--color-neutral-300); overflow: hidden; display: block; }
.trip__media img { width: 100%; height: 100%; object-fit: cover; }
.trip__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.trip__body h3 { font-size: 22px; margin: var(--space-2) 0 var(--space-3); letter-spacing: -0.02em; }
.trip__body h3 a { color: inherit; text-decoration: none; }
.trip__body h3 a:hover { color: var(--color-accent); }
.trip__body > p { font-size: 14px; color: var(--color-neutral-800); margin: 0 0 var(--space-4); }
.trip__facts { margin: 0 0 var(--space-4); padding: var(--space-3) 0 0; border-top: 1px solid var(--color-divider); display: grid; gap: var(--space-2); list-style: none; }
.trip__facts li { display: grid; grid-template-columns: 74px 1fr; gap: var(--space-3); font-size: 13px; align-items: baseline; }
.trip__facts .lbl { font-size: 10px; }
.trip__go { margin-top: auto; display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 900px) { .trips { grid-template-columns: 1fr; } }

/* =====================================================================
   EDITORIAL BAND — full-bleed 21:9, caption inside the measure.
   ===================================================================== */
.band { width: 100vw; margin-left: 50%; transform: translateX(-50%); aspect-ratio: 21 / 9; background: var(--color-neutral-300); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-cap { margin-top: var(--space-2); }
@media (max-width: 767px) { .band { aspect-ratio: 16 / 10; } }

/* =====================================================================
   ROWS — the §9.3 result row, used for experiences.
   ===================================================================== */
.rows { border-block: 2px solid var(--color-divider); display: grid; gap: 1px; background: var(--color-divider); }
.row { background: var(--color-bg); display: grid; grid-template-columns: 200px 1fr auto; gap: var(--space-6); align-items: center; padding: var(--space-4) 0; text-decoration: none; color: inherit; }
.row:hover { background: var(--color-surface); }
.row__media { aspect-ratio: 3 / 2; background: var(--color-neutral-300); overflow: hidden; }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row h4 { margin: 0 0 4px; font-size: 18px; }
.row p { margin: 0; font-size: 13px; color: var(--color-neutral-700); }
.row__go { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 13px; padding-right: var(--space-4); }
.row:hover .row__go { color: var(--color-accent); }
@media (max-width: 767px) {
	.row { grid-template-columns: 96px 1fr; gap: var(--space-4); }
	.row__go { display: none; }
}

/* =====================================================================
   POSTER STATEMENT — the one red field on the page.
   ===================================================================== */
.poster { width: 100vw; margin-left: 50%; transform: translateX(-50%); background: var(--color-accent); color: var(--color-bg); padding: clamp(40px, 6vw, 72px) 0; }
.poster .lbl { color: var(--color-bg); font-weight: var(--font-heading-weight); letter-spacing: 0.14em; }
.poster p { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(28px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; max-width: 24ch; margin: var(--space-6) 0 0; color: var(--color-bg); }
.poster .btn { margin-top: var(--space-8); background: var(--color-bg); color: var(--color-text); }
.poster .btn:hover { background: var(--color-neutral-200); }

/* =====================================================================
   FOOTER — surface, 2px top rule.
   ===================================================================== */
.site-foot { background: var(--color-surface); border-top: 2px solid var(--color-divider); margin-top: var(--sec); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--space-8); padding-block: var(--sec-sm); }
.foot__grid h5 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); margin: 0 0 var(--space-3); font-weight: 500; }
.foot__grid a { display: block; color: var(--color-text); text-decoration: none; font-size: 14px; padding-block: 5px; }
.foot__grid a:hover { color: var(--color-accent); }
.foot__brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; letter-spacing: -0.02em; }
.foot__brand span { color: var(--color-accent); }
.foot__bottom { border-top: 1px solid var(--color-divider); padding-block: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 12px; color: var(--color-neutral-700); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 560px) { .foot__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ENQUIRY MODAL — existing markup and IDs kept so assets/main.js still
   drives it; restyled here onto .dialog semantics.
   ===================================================================== */
.mtf-modernist .modal { position: fixed; inset: 0; z-index: 90; display: none; }
.mtf-modernist .modal.open { display: grid; place-items: center; padding: var(--space-4); }
.mtf-modernist .modal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-neutral-900) 55%, transparent); }
.mtf-modernist .modal__card { position: relative; width: min(880px, 100%); max-height: 92vh; overflow-y: auto; background: var(--color-bg); border: 2px solid var(--color-text); display: grid; grid-template-columns: 300px 1fr; }
.mtf-modernist .modal__close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 0; border-left: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); background: var(--color-bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--color-text); }
.mtf-modernist .modal__close:hover { background: var(--color-accent); color: var(--color-bg); }
.mtf-modernist .modal__media { background: var(--color-surface); border-right: 2px solid var(--color-divider); padding: var(--space-6); display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; }
.mtf-modernist .modal__ic { display: none; }
.mtf-modernist .modal__eyebrow { font-family: var(--font-heading); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); background: var(--color-bg); padding: 4px 8px; align-self: flex-start; }
.mtf-modernist .modal__title { font-size: 25px; letter-spacing: -0.02em; margin: var(--space-3) 0 0; background: var(--color-bg); padding: var(--space-2) var(--space-3); align-self: flex-start; }
.mtf-modernist .modal__msub { font-size: 13px; color: var(--color-neutral-800); background: var(--color-bg); padding: var(--space-2) var(--space-3); margin: var(--space-2) 0 0; }
.mtf-modernist .modal__form { padding: var(--space-8); }
.mtf-modernist .modal__kicker { font-family: var(--font-heading); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.mtf-modernist .modal__intro h3 { font-size: 22px; margin: var(--space-2) 0 var(--space-6); letter-spacing: -0.02em; }
.mtf-modernist .mform { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.mtf-modernist .mfield { display: flex; flex-direction: column; }
.mtf-modernist .mfield.full { grid-column: 1 / -1; }
.mtf-modernist .mform label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.mtf-modernist .mform input, .mtf-modernist .mform select, .mtf-modernist .mform textarea {
	width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
	color: var(--color-text); caret-color: var(--color-accent); background: var(--color-surface);
	border: 1px solid var(--color-divider); border-radius: 0;
}
.mtf-modernist .mform textarea { min-height: 90px; resize: vertical; }
.mtf-modernist .mform input:focus-visible, .mtf-modernist .mform select:focus-visible, .mtf-modernist .mform textarea:focus-visible { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 0; }
.mtf-modernist .modal__submit { grid-column: 1 / -1; }
.mtf-modernist .modal__submit .btn { background: var(--color-accent); color: var(--color-bg); width: 100%; justify-content: flex-start; padding: var(--space-3) var(--space-4); }
.mtf-modernist .modal__submit .btn:hover { background: var(--color-accent-600); }
.mtf-modernist .modal__note { grid-column: 1 / -1; font-size: 12px; color: var(--color-neutral-700); margin: 0; }
.mtf-modernist .modal__done { display: none; }
.mtf-modernist .modal__form.is-done .mform { display: none; }
.mtf-modernist .modal__form.is-done .modal__done { display: block; }
.mtf-modernist .modal__done .tick { width: 48px; height: 48px; display: grid; place-items: center; background: var(--color-accent); color: var(--color-bg); margin-bottom: var(--space-4); }
.mtf-modernist .modal__done .tick svg { width: 24px; height: 24px; }
.mtf-modernist .modal__err { grid-column: 1 / -1; padding: var(--space-3); border: 1px solid var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-800); font-size: 13px; }
.mtf-modernist .mfield.has-error input, .mtf-modernist .mfield.has-error select { border-color: var(--color-accent); }
.mtf-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 767px) {
	.mtf-modernist .modal__card { grid-template-columns: 1fr; }
	.mtf-modernist .modal__media { display: none; }
	.mtf-modernist .modal__form { padding: var(--space-6) var(--space-4); }
	.mtf-modernist .mform { grid-template-columns: 1fr; }
}

/* =====================================================================
   MOTION — §11. Explain a change of state, never entertain.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.mtf-modernist *, .mtf-modernist *::before, .mtf-modernist *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.stage img { opacity: 1; }
}
