/*
 * Test-only editorial polish.
 * Reference lock: keep the current Travel_step layout, orange identity and all
 * working controls; add the earlier DM Sans + Instrument Serif type language,
 * clearer form copy, restrained depth and a soft scroll-away blur.
 */

body.ember-page{
  font-family:'DM Sans',Arial,sans-serif;
  font-weight:350;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Logo: keep the Instrument Serif identity in its upright cut. */
body.ember-page .e-nav .e-brand{
  gap:7px;
  font-family:'Instrument Serif',Georgia,serif;
  font-size:34px;
  font-style:normal;
  font-weight:400;
  line-height:.9;
  letter-spacing:-.025em;
}
body.ember-page .e-brand .e-brand-step{
  position:relative;
  z-index:0;
  isolation:isolate;
  display:inline-block;
  padding:0 .10em .06em .01em;
  font-family:inherit;
  font-style:italic;
  font-weight:400;
  line-height:1.02;
  letter-spacing:-.02em;
  border-radius:0;
  box-shadow:none;
  text-decoration:none;
}

/* One display family across the whole headline; emphasis is distinguished by italic. */
body.ember-page .e-hero h1,
body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2{
  font-family:'Instrument Serif',Georgia,serif;
  font-style:normal;
  font-weight:400;
  letter-spacing:-.025em;
}

/* Italic, underlined accents — not whole headlines. */
body.ember-page .e-hero h1 span,
body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2 em{
  position:relative;
  z-index:0;
  display:inline-block;
  width:max-content;
  max-width:100%;
  isolation:isolate;
  padding:0 .10em .06em .01em;
  font-family:'Instrument Serif',Georgia,serif;
  font-style:italic;
  font-weight:400;
  letter-spacing:-.025em;
  color:#ff4d00;
  text-decoration:none;
}
body.ember-page .e-brand .e-brand-step::after,
body.ember-page .e-hero h1 span::after,
body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2 em::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:.01em;
  right:.01em;
  bottom:0;
  height:.06em;
  min-height:2px;
  border-radius:999px;
  pointer-events:none;
}
body.ember-page .e-hero h1 span{
  font-size:1.13em;
  line-height:1.02;
}
body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2 em{
  font-size:1.12em;
  line-height:1.02;
}
body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2{
  font-weight:400;
  letter-spacing:-.025em;
}
body.ember-page .walking-builder-copy h2{
  font-weight:400!important;
}

/* Carry the homepage display voice into form and modal headings. */
body.ember-page :is(
  .trip-result-head h2,
  .route-result-head h2,
  .privacy-head h2,
  .smart-result-head h2,
  .e-smart-heading h2,
  .trip-preferences-heading h3,
  .hotel-preferences-toggle>strong,
  #trip-result legend,
  .smart-budget-adjustment h3,
  .smart-package h3,
  #trip-result .trip-result-actions b,
  #trip-result .trip-result-walk h3,
  .e-trip-extra-copy h3,
  .route-result-summary h3,
  .route-status strong,
  .route-error strong,
  .privacy-content h3,
  .builder-step-title>b,
  .traveller-party-head strong,
  .date-picker-head strong
){
  font-family:'Instrument Serif',Georgia,serif!important;
  font-weight:400!important;
  letter-spacing:-.025em!important;
}
body.ember-page :is(
  .trip-result-head h2,
  .route-result-head h2,
  .privacy-head h2,
  .smart-result-head h2
){
  line-height:1.02!important;
}
body.ember-page :is(.traveller-party-head strong,.date-picker-head strong){
  font-size:18px!important;
  line-height:1.15!important;
}
body.ember-page #trip-result legend{
  font-size:17px!important;
  line-height:1.2!important;
}

/* Larger, lighter and calmer reading typography. */
body.ember-page :is(.e-hero>p,.e-heading>p,.e-module p,.e-step p,.e-walk-copy p,.walking-builder-copy p){
  font-weight:350;
  letter-spacing:-.006em;
}
body.ember-page .e-hero>p{font-size:18px;line-height:1.62}
body.ember-page .e-heading>p{font-size:15.5px;line-height:1.7}
body.ember-page :is(.e-module p,.e-step p){font-size:14.5px;line-height:1.68}
body.ember-page .e-walk-copy p,
body.ember-page .walking-builder-copy p{font-size:16px;line-height:1.68}
body.ember-page :is(.e-module h3,.e-step h3,.e-walk-panel h3){font-weight:400}

/* Main search: a soft halo, shallow shadow and clearer field typography. */
body.ember-page .e-form{
  position:relative;
  isolation:isolate;
  border-color:rgba(38,38,38,.10);
  box-shadow:0 18px 48px rgba(38,38,38,.08),0 2px 8px rgba(255,77,0,.06);
}
body.ember-page .e-form:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-22px -26px;
  pointer-events:none;
  border-radius:32px;
  background:radial-gradient(ellipse at 50% 55%,rgba(255,77,0,.14),rgba(255,147,99,.055) 43%,transparent 72%);
  filter:blur(18px);
  opacity:.78;
}
body.ember-page .e-shell #trip-launcher .trip-launcher-field>span,
body.ember-page #smart-trip-form>label{
  font-family:'DM Sans',sans-serif!important;
  font-size:13.5px!important;
  font-weight:400!important;
  line-height:1.4!important;
  color:#404040!important;
}
body.ember-page .e-shell #trip-launcher :is(#trip-destination,.date-picker-trigger,.traveller-picker-trigger),
body.ember-page #smart-trip-form textarea{
  font-family:'DM Sans',sans-serif!important;
  font-size:15.5px!important;
  font-weight:350!important;
  line-height:1.45!important;
  color:#1f1f1f!important;
}
body.ember-page #smart-trip-form small{font-weight:350}
body.ember-page :is(.e-nav,.e-shell,.e-footer) :is(.e-btn,.trip-launcher-submit,.privacy-open){
  font-weight:450!important;
}
body.ember-page .e-shell #trip-launcher .trip-launcher-submit{
  box-shadow:0 8px 20px rgba(255,77,0,.18)!important;
}

/* The walking form gets the same restrained depth, without changing its layout. */
body.ember-page .quick-builder{
  position:relative;
  border-color:rgba(38,38,38,.11)!important;
  box-shadow:0 20px 54px rgba(38,38,38,.075),0 2px 10px rgba(255,77,0,.045)!important;
}
body.ember-page .quick-builder:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:8% -18px 6%;
  pointer-events:none;
  border-radius:30px;
  background:rgba(255,77,0,.09);
  filter:blur(24px);
}
body.ember-page .builder-step-title>b{font-weight:450}
body.ember-page .builder-step-title>small,
body.ember-page .builder-field :is(input,select){font-weight:350}

/* Keep the walking-route guidance compact, but readable at a glance. */
body.ember-page :is(#trip-walk-form,#standalone-walk) .builder-heading>div>p{
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:400!important;
  color:#525b61!important;
}
body.ember-page :is(#trip-walk-form,#standalone-walk) .builder-heading .free-route-badge{
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:500!important;
  letter-spacing:.01em!important;
}
body.ember-page :is(#trip-walk-form,#standalone-walk) .builder-step-title>small{
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:400!important;
  letter-spacing:.005em!important;
  color:#586168!important;
}
body.ember-page :is(#trip-walk-form,#standalone-walk) .builder-options span>small{
  margin-top:3px!important;
  font-size:11.5px!important;
  line-height:1.4!important;
  font-weight:400!important;
  color:#5c646a!important;
}
body.ember-page :is(#trip-walk-form,#standalone-walk) .builder-places span{
  font-family:'DM Sans',Arial,sans-serif!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:500!important;
  letter-spacing:.005em!important;
  color:#394248;
}
body.ember-page :is(#trip-walk-form,#standalone-walk) .telegram-note{
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:400!important;
  color:#586168!important;
}

/* Content scrolling beneath the sticky navigation softly disappears. */
.scroll-away-blur{
  position:fixed;
  z-index:90;
  top:var(--scroll-blur-top,72px);
  left:50%;
  width:min(1200px,100%);
  height:72px;
  transform:translateX(-50%);
  pointer-events:none;
  opacity:0;
  background:linear-gradient(to bottom,rgba(249,249,249,.60),rgba(249,249,249,.18),transparent);
  -webkit-backdrop-filter:blur(13px);
  backdrop-filter:blur(13px);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.78) 46%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.78) 46%,transparent 100%);
  transition:opacity .24s ease;
}
body.is-page-scrolled .scroll-away-blur{opacity:1}

@media(max-width:950px){
  .scroll-away-blur{top:var(--scroll-blur-top,73px);height:60px}
  body.ember-page .e-form:before{inset:-16px;filter:blur(15px)}
}

@media(max-width:650px){
  body.ember-page .e-nav .e-brand{font-size:29px}
  body.ember-page .e-hero h1{font-size:clamp(40px,11.5vw,48px);line-height:1.03}
  body.ember-page .e-hero h1 span{font-size:1.08em}
  body.ember-page :is(.e-heading,.e-walk-copy,.walking-builder-copy) h2 em{font-size:1.08em}
  body.ember-page .e-hero>p{font-size:16px;line-height:1.58}
  body.ember-page .e-heading>p{font-size:15px}
  body.ember-page .e-form{box-shadow:0 14px 34px rgba(38,38,38,.08),0 2px 8px rgba(255,77,0,.05)}
  body.ember-page .e-form:before{inset:-10px;opacity:.62}
  body.ember-page #trip-launcher.smart-mode #smart-trip-form textarea{font-size:16px!important}
  .scroll-away-blur{
    top:var(--scroll-blur-top,110px);
    height:62px;
    background:linear-gradient(to bottom,rgba(249,249,249,.76),rgba(249,249,249,.24) 62%,transparent);
    -webkit-backdrop-filter:blur(15px);
    backdrop-filter:blur(15px);
  }
}

@media(max-height:500px) and (orientation:landscape){
  .scroll-away-blur{
    top:var(--scroll-blur-top,62px);
    height:44px;
    background:linear-gradient(to bottom,rgba(249,249,249,.70),rgba(249,249,249,.18) 58%,transparent);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }
}

@media(prefers-reduced-motion:reduce){
  .scroll-away-blur{transition:none}
}

/* Travel-site style party picker for the standard search. */
body.ember-page .traveller-party-picker{
  width:340px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(38,38,38,.12);
  border-radius:20px;
  background:#fff;
  color:#262626;
  font-family:'DM Sans',Arial,sans-serif;
  box-shadow:0 24px 70px rgba(38,38,38,.16),0 4px 14px rgba(38,38,38,.07);
}
body.ember-page .traveller-party-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  padding:18px 18px 15px;
  border-bottom:1px solid #ececec;
}
body.ember-page .traveller-party-head>div,
body.ember-page .traveller-party-row>div:first-child{display:grid;gap:3px}
body.ember-page .traveller-party-head strong{font-size:18px;font-weight:400;letter-spacing:-.025em}
body.ember-page .traveller-party-head span,
body.ember-page .traveller-party-row>div:first-child span{font-size:11px;line-height:1.35;color:#7b7b7b}
body.ember-page .traveller-party-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:17px 18px;
  border-bottom:1px solid #ececec;
}
body.ember-page .traveller-party-row strong{font-size:15px;font-weight:500}
body.ember-page .traveller-counter{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:36px 30px 36px;
  align-items:center;
  gap:4px;
}
body.ember-page .traveller-party-picker .traveller-counter button{
  width:36px!important;
  min-width:36px;
  min-height:36px;
  height:36px;
  padding:0!important;
  border:1px solid #d7d7d7;
  border-radius:50%;
  background:#fff;
  color:#ff4d00;
  position:relative;
  display:block;
  font-size:0!important;
  line-height:0!important;
  transition:border-color .18s,background .18s,transform .18s;
}
body.ember-page .traveller-party-picker .traveller-counter button:before{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-bottom:2px;
  color:inherit;
  font:400 20px/1 'DM Sans',sans-serif;
}
body.ember-page .traveller-party-picker .traveller-counter button[data-action="decrease"]:before{content:"−"}
body.ember-page .traveller-party-picker .traveller-counter button[data-action="increase"]:before{content:"+"}
body.ember-page .traveller-party-picker .traveller-counter button:hover:not(:disabled){
  border-color:#ff4d00;
  background:#fff4ef;
  color:#ff4d00;
  transform:scale(1.04);
}
body.ember-page .traveller-party-picker .traveller-counter button:disabled{opacity:.32;cursor:not-allowed}
body.ember-page .traveller-counter output{font-size:15px;font-weight:500;line-height:36px;text-align:center}
body.ember-page .traveller-party-picker .traveller-party-done{
  width:calc(100% - 36px)!important;
  min-height:44px;
  margin:18px;
  padding:0 18px!important;
  border:1px solid #ff4d00;
  border-radius:999px;
  background:#ff4d00;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font:500 13px/1 'DM Sans',sans-serif;
}
body.ember-page .traveller-party-picker .traveller-party-done:hover{background:#e74600;color:#fff}
body.ember-page .traveller-party-picker :is(button,select):focus-visible{outline:2px solid #ff4d00;outline-offset:2px}

@media(max-width:650px){
  html.traveller-picker-open{overflow:hidden}
  html.traveller-picker-open body.ember-page:after{
    content:"";
    position:fixed;
    z-index:999;
    inset:0;
    background:rgba(38,38,38,.38);
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
  }
  body.ember-page .traveller-party-picker{
    z-index:1001;
    left:12px!important;
    right:12px;
    top:auto!important;
    bottom:12px;
    width:auto!important;
    max-width:none;
    max-height:calc(100dvh - 24px);
    border-radius:22px;
  }
}
