:root { --offers-title-size: clamp(1rem, 1.35vw, 1.25rem); --offers-column-width: 280px; }

/* Homepage layout. */
.hero-grid,
.section,
.help-section,
.about-section { padding-right: clamp(1.25rem, 5vw, 5.5rem); padding-left: clamp(1.25rem, 5vw, 5.5rem); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr); min-height: 620px; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem, 3vw, 2.85rem) clamp(1rem, 7vw, 8rem) clamp(1rem, 2vw, 1.85rem) 0; }
.feature-label { color: var(--accent-strong); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-lead { max-width: 525px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin: auto 0 0; padding: 2.2rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { color: var(--accent-strong); content: '✓'; font-weight: 800; }

.hero-feature { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 470px; margin: clamp(1rem, 3vw, 3rem) 0 clamp(1rem, 3vw, 3rem) clamp(0rem, 2vw, 2rem); padding: 1.55rem; overflow: hidden; color: var(--on-dark); background-position: center; background-size: cover; }
.hero-feature > * { position: relative; z-index: 1; }
.feature-label { align-self: flex-start; margin: 0; padding: .5rem .7rem; color: var(--accent-text); background: var(--accent-strong); }
.hero-feature h2 {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-shadow: 
    0 2px 6px var(--ink),
    0 6px 18px var(--ink),
    0 12px 36px var(--ink),
    0 24px 72px var(--ink);
  line-height: 1.1;
}
body.theme-night .hero-feature h2 {
  color: #fffdf8;
  text-shadow: 
    0 2px 6px #33251e,
    0 6px 18px #33251e,
    0 12px 36px #33251e,
    0 24px 72px #33251e;
}
.feature-meta { margin-bottom: .65rem; font-size: .78rem; }
body.theme-night .hero-feature .feature-meta { text-shadow: 0 2px 6px #33251e, 0 6px 18px #33251e, 0 12px 36px #33251e, 0 24px 72px #33251e; }
.hero-feature h2 { max-width: 550px; margin-bottom: 1.35rem; color: var(--on-dark); font-size: clamp(1.1rem, 1.8vw, 2rem); }
.hero-feature a { padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-size: .9rem; }
.hero-feature h2 a { padding-bottom: 0; border-bottom: 0; font-size: inherit; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.section-heading h2,
.help-intro h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.1vw, 2.35rem); line-height: .94; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.story-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); background: var(--story-background); transition: transform .24s ease, box-shadow .24s ease; }
.story-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px var(--shadow-color); }
.story-image { display: block; height: 220px; overflow: hidden; background: var(--mist); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover img { transform: scale(1.045); }
.story-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.45rem 1.5rem 1.55rem; }
.story-card h3 { margin-bottom: .8rem; font-size: 1.6rem; line-height: 1.04; }
.story-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.story-card p:not(.card-meta) { margin-bottom: 1.2rem; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.help-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); color: var(--ink); background: var(--help-background); }
.help-section .eyebrow,
.help-steps span { color: var(--accent-strong); }
.help-intro h2 { font-size: clamp(2.33rem, 3.75vw, 4.13rem); }
.help-intro > p:not(.eyebrow) { max-width: 430px; margin: 1.5rem 0 2rem; color: var(--help-text); line-height: 1.65; }
.help-contacts { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.35rem; }
.help-contacts a { display: inline-flex; align-items: center; gap: .38rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 700; }
.help-contacts img { width: 1.05rem; height: 1.05rem; object-fit: contain; }
.help-contacts .contact-icon-max-night { display: none; }
.theme-night .help-contacts .contact-icon-max-light { display: none; }
.theme-night .help-contacts .contact-icon-max-night { display: inline-block; }
.help-contacts a:hover { color: var(--accent-strong); border-color: currentColor; }
.help-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; background: var(--line); list-style: none; }
.help-steps li { position: relative; isolation: isolate; display: flex; min-height: 310px; flex-direction: column; padding: 1.45rem; overflow: hidden; background: var(--help-card-background) center / cover no-repeat; transition: transform .24s ease, box-shadow .24s ease; }
.help-steps li:hover { z-index: 2; transform: translateY(-5px); box-shadow: 0 14px 28px var(--shadow-color); }
.help-steps li::before { position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(19, 25, 23, .2), rgba(19, 25, 23, .82)); content: ''; }
.help-steps li > * { position: relative; z-index: 1; }
.help-steps .help-step-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.help-steps li:hover .help-step-image { transform: scale(1.045); filter: saturate(1.08); }
.help-steps span { font-size: .76rem; font-weight: 800; }
.help-steps h3 { margin: auto 0 .8rem; color: var(--on-dark); font-size: 1.65rem; line-height: .98; }
.help-steps p { margin: 0; color: var(--on-dark); font-size: .88rem; line-height: 1.5; }
.help-steps .help-step-detail { max-height: 0; overflow: hidden; font-size: .8rem; line-height: 1.45; opacity: 0; transform: translateY(5px); transition: max-height .3s ease, opacity .3s ease, transform .3s ease, margin-top .3s ease; }
.help-steps li:hover .help-step-detail,
.help-steps li:focus-within .help-step-detail { max-height: 3.5rem; margin-top: .65rem; opacity: 1; transform: translateY(0); }


/* Homepage offers column. */
.offers-section[hidden] { display: none; }
.home-main-column { position: relative; min-width: 0; }
.home-content-layout { padding-right: clamp(1.25rem, 5vw, 5.5rem); padding-left: clamp(1.25rem, 5vw, 5.5rem); border-bottom: 1px solid var(--line); }
.home-content-layout > .section { min-width: 0; padding-right: 0; padding-left: 0; }
#main-content.has-special-offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, var(--offers-column-width)); align-items: stretch; }
.offers-toggle { position: absolute; z-index: 3; top: 0; right: calc(-1 * var(--offers-column-width)); display: flex; width: var(--offers-column-width); min-height: 3.1rem; align-items: center; justify-content: flex-start; gap: .45rem; padding: .45rem .7rem; border: 1px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--surface-muted) 42%, transparent); font-size: var(--offers-title-size); cursor: pointer; }
.offers-toggle img { display: block; width: 1.75rem; height: 1.75rem; transition: transform .2s ease; }
.offers-toggle.is-collapsed img { transform: rotate(180deg); }
.offers-toggle:hover img { filter: brightness(.92); }
.offers-aside { min-width: 0; height: 100%; overflow: hidden; }
.offers-aside-content { min-height: 100%; padding: 3.1rem 1.1rem clamp(4.5rem, 8vw, 8rem); border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface-muted) 42%, transparent); }
.offers-departure { margin: 1rem 0; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.2; text-align: center; }
.offers-grid { display: grid; gap: 1rem; }
.offers-grid .offer-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); }
.offers-grid .hotel-photo-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.offers-grid .hotel-photo-button img { display: block; width: 100%; height: 125px; object-fit: cover; background: var(--surface-muted); }
.offers-grid .hotel-photo-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 6px; }
.offers-grid .hotel-photo-thumbnail { min-width: 0; aspect-ratio: 1.64 / 1; padding: 0; overflow: hidden; border: 0; border-radius: 3px; background: var(--surface-muted); cursor: zoom-in; }
.offers-grid .hotel-photo-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offers-grid .card-body { min-width: 0; padding: 12px; }
.offers-grid .offer-card-body { cursor: pointer; }
.offers-grid .offer-card-body:hover { background: color-mix(in srgb, var(--surface-muted) 45%, transparent); }
.offers-grid .card-body h2 { margin: 0; font-size: 16px; line-height: 1.05; }
.offers-grid .place { margin: 6px 0 9px; color: var(--muted); font-size: 12px; }
.offers-grid .hotel-stars { color: var(--accent-strong); letter-spacing: 1px; }
.offers-grid .hotel-rating { margin: -4px 0 8px; color: var(--muted); font-size: 12px; }
.offers-grid .price-row { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.offers-grid .price { margin: 0; color: var(--accent-strong); font-size: 18px; font-weight: 800; white-space: nowrap; }
.offers-grid .old-price { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: line-through; white-space: nowrap; }
.offers-grid .discount-badge { margin-left: auto; padding: 3px 5px; border-radius: 3px; color: var(--accent-text); background: var(--accent-strong); font-size: 13px; font-weight: 800; }
.offers-grid .tour-details { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.offers-note { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }
.offers-aside.is-collapsed { display: none; }
#main-content.offers-collapsed { display: block; }
#main-content.offers-collapsed .offers-toggle { right: 0; }
.home-main-column .hero-feature { margin-top: clamp(2.5rem, 4vw, 4rem); }

/* Homepage request modal. */
.home-order-modal[hidden] { display: none; }
.home-order-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 1rem; }
.home-order-backdrop { position: absolute; inset: 0; background: var(--overlay-color); }
.home-order-dialog { position: relative; width: min(100%, 30rem); max-height: calc(100vh - 2rem); padding: 1.5rem; overflow: auto; border: 1px solid var(--widget-border); border-radius: 6px; color: var(--ink); background: var(--widget-field); box-shadow: 0 16px 36px var(--shadow-color); }
.home-order-form { display: grid; gap: .8rem; }
.home-order-form h2 { margin: 0 2rem .25rem 0; }
.home-order-form p,
.home-order-form label { color: var(--muted); }
.home-order-form p { margin: 0; line-height: 1.4; }
.home-order-form label { display: grid; gap: .3rem; }
.home-order-form input:not([type='checkbox']),
.home-order-form textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--widget-border); border-radius: 4px; color: var(--ink); background: var(--widget-field); }
.home-order-form .consent-label { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; }
.home-order-form .consent-label input { flex: 0 0 auto; margin-top: .2rem; accent-color: var(--accent-strong); }
.home-order-form .consent-label a { color: var(--accent-strong); }
.home-order-form .modal-actions button { border: 1px solid var(--widget-action); color: var(--widget-action-text); background: var(--widget-action); }
.home-order-form .modal-actions button:disabled { opacity: .55; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .help-steps li,
  .help-steps .help-step-image,
  .help-steps .help-step-detail { transition: none; }
}

@media (max-width: 850px) {
  .hero-grid,
  .help-section { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-feature { min-height: 400px; margin-left: 0; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-steps { max-width: 720px; }
  #main-content.has-special-offers,
  #main-content.has-special-offers.offers-collapsed { grid-template-columns: 1fr; }
  .offers-toggle,
  #main-content.offers-collapsed .offers-toggle { display: none; }
  .offers-aside.is-collapsed { display: block; }
  .offers-aside.is-collapsed .offers-aside-content { display: none; }
  .offers-mobile-toggle,
  #main-content.offers-collapsed .offers-aside .offers-mobile-toggle { position: relative; top: auto; right: auto; display: flex; width: 100%; }
  .offers-aside-content { padding: 1.5rem clamp(1.25rem, 5vw, 5.5rem) clamp(4.5rem, 5vw, 8rem); border-left: 0; }
  .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero-copy { min-height: 530px; padding-top: 4rem; }
  .hero-feature { min-height: 390px; padding: 1.25rem; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 2rem; }
  .journal-grid,
  .help-steps,
  .offers-grid { grid-template-columns: 1fr; }
  .story-image { height: 205px; }
  .help-steps li { min-height: 205px; }
  .help-steps h3 { margin-top: 2.2rem; }
  .help-steps .help-step-image { object-fit: fill; }
  .offers-grid .hotel-photo-button img { height: 180px; }
}

@media (hover: none) {
  .help-steps .help-step-detail { max-height: 3.5rem; margin-top: .65rem; opacity: 1; transform: none; }
}
