.fz-app-home { display: none; }

.fz-app-install { display: block; margin-top: 18px; }
.fz-app-install[hidden], .fz-app-install [hidden] { display: none !important; }
.fz-app-install button { font: inherit; cursor: pointer; }
.fz-app-install button:focus-visible { outline: 3px solid #075bb2; outline-offset: 3px; }
.fz-app-install__open {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid #166bb9; border-radius: 10px;
  background: #edf6ff; color: #104b7e; font-weight: 650 !important;
}
.fz-app-home .fz-app-install__hint { margin: 8px 4px 0; color: #42566a; font-size: 1rem; text-align: center; }
.fz-install-dialog {
  box-sizing: border-box; width: calc(100% - 24px); max-width: 32rem;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto; padding: 16px 20px 24px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #c8d5e2; border-radius: 18px; background: #fff; color: #203b50;
  font-family: var(--fz-font-brand); font-size: 1.125rem; line-height: 1.5;
  box-shadow: 0 12px 50px #102d4c40; text-align: left;
}
.fz-install-dialog::backdrop { background: #102d4c99; }
body:has(.fz-install-dialog[open]) { overflow: hidden; }
.fz-install-dialog button { min-height: 48px; border-radius: 8px; line-height: 1.3; }
.fz-install-dialog__close { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.fz-install-dialog__close button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #c8d5e2; background: #fff; color: #203b50; }
.fz-install-dialog__icon { display: block; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 12px; }
.fz-app-home .fz-install-dialog h2 { margin: 0 0 12px; font-size: 1.625rem; line-height: 1.2; }
.fz-app-home .fz-install-dialog h3 { margin: 20px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.fz-install-dialog__devices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.fz-install-dialog__devices button { min-width: 0; padding: 12px 8px; border: 1px solid #829bb0; background: #fff; color: #203b50; }
.fz-install-dialog__devices button[aria-pressed="true"] { border: 2px solid #166bb9; padding: 11px 7px; background: #e8f3ff; color: #104b7e; font-weight: 650; }
.fz-install-dialog ol { margin: 14px 0 0; padding-left: 28px; }
.fz-install-dialog li { padding: 0 0 16px 6px; }
.fz-install-dialog li::marker { color: #075bb2; font-weight: 700; }
.fz-install-dialog li svg { display: inline-block; vertical-align: middle; color: #075bb2; }
.fz-install-dialog__native { margin-top: 20px; padding: 16px; border: 1px solid #b6cfe6; border-radius: 10px; background: #f1f7fd; }
.fz-install-dialog__native button { width: 100%; margin: 12px 0; padding: 12px; border: 0; background: #116bc2; color: #fff; font-weight: 650; }
.fz-install-dialog__native button:disabled { opacity: .7; cursor: wait; }
.fz-install-dialog__status:empty { display: none; }
.fz-app-home .fz-install-dialog__status { margin-top: 16px; font-weight: 600; }
.fz-app-home .fz-install-dialog__result { margin-top: 8px; padding-top: 16px; border-top: 1px solid #c8d5e2; }
.fz-install-dialog__done { width: 100%; margin-top: 20px; padding: 12px 16px; border: 1px solid #829bb0; background: #fff; color: #203b50; font-weight: 600; }

@media (display-mode: standalone), (display-mode: fullscreen) {
  .fz-app-install { display: none; }
}

@media (max-width: 700px), (max-width: 1023px) and (max-height: 500px) {
  .fz-home > :not(.fz-app-home):not(link):not(script),
  body:has(.fz-app-home) .fz-daily-offers { display: none; }

  .fz-home { background: #fff; }
  .fz-home .fz-app-home {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 38rem;
    margin: 0 auto;
    padding: 24px 20px 36px;
    color: var(--fz-navy);
    font-family: var(--fz-font-brand);
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .fz-app-home h1, .fz-app-home h2, .fz-app-home p { margin: 0; }
  .fz-app-home h1, .fz-app-home h2 { font-family: inherit; letter-spacing: -.025em; }
  .fz-app-home h1 { margin-top: 4px; font-size: 2.125rem; font-weight: 650; line-height: 1.14; }
  .fz-app-home h2 { font-size: 1.5rem; font-weight: 650; line-height: 1.2; }
  .fz-app-home a { color: inherit; text-decoration: none; }
  .fz-app-home a:focus-visible { outline: 3px solid var(--fz-primary-dark); outline-offset: 4px; }
  .fz-app-home__eyebrow { color: var(--fz-primary-dark); font-size: 1rem; font-weight: 600; }
  .fz-app-home__search-form {
    margin-top: 20px; padding: 18px 16px 16px;
    border: 1px solid #c8d5e2; border-radius: 12px; background: #fff;
    container-type: inline-size;
  }
  .fz-app-home__search-form .fz-search {
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .fz-app-home__search-form .fz-search__optional {
    margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.35;
  }
  .fz-app-home__search-form .fz-search__fields {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px; align-items: end;
  }
  .fz-app-home__search-form .fz-search__inputs { display: contents; }
  .fz-app-home__search-form .fz-search__field { min-width: 0; gap: 5px; }
  .fz-app-home__search-form .fz-search__field--travellers { grid-column: 1 / -1; }
  .fz-app-home__search-form .fz-search__label {
    position: static; font-family: var(--fz-font-brand); font-size: 1.0625rem;
    line-height: 1.3; font-weight: 600;
  }
  .fz-app-home__search-form .fz-search__control {
    width: 100%; min-width: 0; min-height: 56px; padding: 12px 25px 12px 10px;
    border: 1px solid #b6c7d7; border-radius: 8px; background-color: #fff;
    background-position: right 7px center; background-size: 16px;
    font-family: var(--fz-font-brand); font-size: 1.0625rem; line-height: 1.3;
  }
  .fz-app-home__search-form .fz-search__submit { grid-column: 1 / -1; min-width: 0; padding: 4px 0 0; }
  .fz-app-home__search-form .fz-search__submit .fz-btn {
    min-height: 56px; height: auto; padding: 12px 16px; border-radius: 8px;
    justify-content: center; font-family: var(--fz-font-brand); font-size: 1.1875rem;
    line-height: 1.3; white-space: normal;
  }
  .fz-app-home__search-form .fz-search__submit .fz-btn > svg { padding: 0; background: transparent; border: 0; }
  .fz-app-home__contact > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
  .fz-app-home__contact span span { color: var(--fz-body-text); font-size: 1.0625rem; }
  .fz-app-home svg { flex-shrink: 0; }
  .fz-app-home__arrow { width: 20px; height: 20px; }
  .fz-app-home a.fz-app-home__feature {
    display: flex;
    margin-top: 26px;
    color: #fff;
  }
  .fz-app-home__inspiration, .fz-app-home__rivers { margin-top: 30px; }
  .fz-app-home__magazine { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
  .fz-app-home__magazine > img { width: 88px; height: 110px; flex-shrink: 0; border-radius: 10px; object-fit: cover; object-position: 43% center; }
  .fz-app-home__magazine > span { display: grid; gap: 5px; }
  .fz-app-home__magazine .fz-app-home__eyebrow { color: var(--fz-body-text); font-size: 1rem; }
  .fz-app-home__magazine strong { font-size: 1.25rem; line-height: 1.2; font-weight: 650; }
  .fz-app-home__text-link { color: var(--fz-primary-dark); font-size: 1.0625rem; font-weight: 600; }
  .fz-app-home__river-list { margin-top: 12px; }
  .fz-app-home__river-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 68px; padding: 14px 0; border-bottom: 1px solid var(--fz-border); }
  .fz-app-home__river-list strong { font-size: 1.1875rem; font-weight: 650; }
  .fz-app-home__river-list span { grid-column: 1; color: var(--fz-body-text); font-size: 1.0625rem; }
  .fz-app-home__river-list svg { grid-column: 2; grid-row: 1 / 3; }
  .fz-app-home__contact { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 20px 0; }
  .fz-app-home__contact strong { font-size: 1.1875rem; font-weight: 650; }
  .fz-app-home .fz-app-home__credit { margin-top: 16px; font-size: 1rem; }
  .fz-app-home__credit a { color: var(--fz-body-text); text-decoration: underline; }
}

@media (max-width: 350px) {
  .fz-home .fz-app-home { padding-inline: 16px; }
  .fz-app-home h1 { font-size: 1.9375rem; }
  .fz-app-home__search-form { padding-inline: 12px; }
  .fz-app-home__feature-copy { padding-inline: 16px; }
}

/* Keep long labels and values legible on narrow screens and with large text. */
@container (max-width: 18rem) {
  .fz-app-home__search-form .fz-search__fields { grid-template-columns: minmax(0, 1fr); }
}
