html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f5f7fb;
  color: #182033;
}

.landing-page {
  background: #071236;
  color: #fff;
  margin: -1rem calc((100vw - 100%) / -2) -60px;
  min-height: calc(100vh - 1rem);
}

.landing-hero { min-height: 690px; overflow: hidden; padding: 4rem max(5vw, 2rem) 3rem; position: relative; }
.landing-copy { max-width: 530px; position: relative; z-index: 2; }
.landing-art { background: linear-gradient(90deg, #071236 0%, rgba(7,18,54,.92) 18%, rgba(7,18,54,.1) 70%), url('/images-routez-hero.png') center/cover; inset: 0; position: absolute; }
.brand-mark, .auth-brand { color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark span, .auth-brand span { align-items: center; background: #a8f2ff; border-radius: .65rem; color: #071236; display: inline-flex; height: 2rem; justify-content: center; margin-right: .45rem; width: 2rem; }
.landing-copy .eyebrow { color: #a8f2ff; margin-top: 8rem; }
.landing-copy h1 { font-size: clamp(3.7rem, 8vw, 6.8rem); letter-spacing: -.08em; line-height: .9; margin: 0; }
.landing-copy h1 em { color: #a8f2ff; font-style: normal; }
.landing-lead { color: #c8d1eb; font-size: 1.08rem; line-height: 1.65; margin: 2rem 0; max-width: 450px; }
.landing-actions { align-items: center; display: flex; gap: 1.5rem; }
.landing-actions .btn-light { border: 0; color: #071236; font-weight: 700; padding: .8rem 1.3rem; }
.landing-text-link { color: #fff; text-decoration: none; }
.landing-text-link:hover { color: #a8f2ff; }
.landing-trust { color: #9eabd0; font-size: .85rem; margin-top: 7rem; }
.trust-dot { background: #a8f2ff; border-radius: 50%; display: inline-block; height: .45rem; margin-right: .4rem; width: .45rem; }
.landing-features { background: #fff; color: #182033; display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); padding: 4rem max(5vw, 2rem); }
.landing-features > div { max-width: 280px; }
.feature-number { color: #315cdb; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.landing-features h2 { font-size: 1.25rem; margin: .7rem 0 .5rem; }
.landing-features p { color: #667085; line-height: 1.55; margin: 0; }
.auth-shell { align-items: center; display: flex; justify-content: center; min-height: 70vh; padding: 3rem 1rem; }
.auth-card { background: #fff; border-radius: 1.25rem; box-shadow: 0 1rem 3rem rgba(24,32,51,.1); max-width: 440px; padding: 2.5rem; width: 100%; }
.auth-brand { color: #182033; text-decoration: none; }
.auth-brand span { background: #315cdb; color: #fff; }
.admin-page { padding: 3rem 0 5rem; }
.user-row { align-items: center; border-bottom: 1px solid #edf0f5; display: flex; gap: .75rem; padding: .8rem 0; }
.user-row:last-child { border-bottom: 0; }
.user-avatar { align-items: center; background: #e9edff; border-radius: 50%; color: #315cdb; display: inline-flex; font-weight: 700; height: 2rem; justify-content: center; width: 2rem; }
.user-email { min-width: 12rem; }
.user-reset { align-items: center; display: flex; gap: .4rem; margin-left: auto; }
.user-reset .form-control { max-width: 9rem; }

.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
}

.route-planner {
  padding: 2.5rem 0 4rem;
}

.hero {
  max-width: 42rem;
}

.eyebrow {
  color: #315cdb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planner-card,
.route-summary,
.map-shell {
  border: 0;
  border-radius: 1rem;
}

.activity-options {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.activity-option {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  min-height: 5.25rem;
  padding: 0.5rem 0.25rem;
  text-transform: capitalize;
}

.activity-icon {
  font-size: 1.6rem;
}

.map-shell {
  background: #dfe5ef;
  min-height: 30rem;
  overflow: hidden;
  position: relative;
}

#map {
  height: clamp(34rem, 68vh, 46rem);
  width: 100%;
}

.map-hint {
  background: rgba(24, 32, 51, 0.9);
  border-radius: 0.5rem;
  bottom: 1rem;
  color: #fff;
  left: 50%;
  padding: 0.65rem 0.9rem;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 500;
}

.map-attribution {
  padding-left: 0.25rem;
}

.route-stats dt,
.route-stats dd {
  border-bottom: 1px solid #e9edf5;
  padding-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.route-stats dd {
  font-weight: 600;
}

.generation-status {
  color: #4a5568;
  font-size: 0.9rem;
}

.generation-status-icon {
  color: #315cdb;
  font-size: 1.1rem;
}

.setting-label {
  align-items: center;
  display: flex;
  gap: 0.3rem;
  justify-content: space-between;
}

.setting-label .form-label {
  margin-bottom: 0.35rem;
}

.help-button {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #cbd5ff;
  border-radius: 50%;
  color: #315cdb;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  height: 1.15rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.15rem;
}

.help-button:hover {
  background: #315cdb;
  color: #fff;
}

.help-button:focus-visible {
  outline: 2px solid #258cfb;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .landing-hero { min-height: 720px; padding-top: 2rem; }
  .landing-copy .eyebrow { margin-top: 7rem; }
  .landing-copy h1 { font-size: 4rem; }
  .landing-art { background: linear-gradient(90deg, #071236 0%, rgba(7,18,54,.82) 50%, rgba(7,18,54,.38) 100%), url('/images-routez-hero.png') 62% center/cover; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-trust { margin-top: 5rem; }
  .user-row { align-items: flex-start; flex-wrap: wrap; }
  .user-reset { flex-basis: 100%; margin-left: 2.75rem; }
  .user-reset .form-control { flex: 1; max-width: none; }
  .route-planner {
    padding-top: 1.5rem;
  }

  .map-shell,
  #map {
    height: 24rem;
  }

  .map-hint {
    font-size: 0.8rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
