/* Navigation stays in the document on public and authenticated pages. */
body > header,
body:has(.rescue-landing) > header,
body.public-site-menu > header,
body.public-site-menu:has(.rescue-landing) > header,
#mobile-nav, .eco-bottom, .rescue-start .rescue-app-nav, .rescue-app-nav {
  position: static !important;
  inset: auto !important;
}
body { padding-bottom: 0 !important; }
#mobile-nav, .eco-bottom, .rescue-app-nav {
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}
/* Keep the map and form separate, with room for Google map controls. */
.rescue-start .rescue-shell {
  display: grid !important;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 24px;
  height: auto !important;
  min-height: 0 !important;
  padding: 24px !important;
  overflow: visible;
  align-items: start;
  box-sizing: border-box;
}
.rescue-start .rescue-form-panel {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
}
.rescue-start .rescue-canvas {
  position: relative !important;
  inset: auto !important;
  height: 600px !important;
  min-height: 0 !important;
  width: 100% !important;
  border-radius: 20px !important;
  display: flex;
  flex-direction: column;
}
.rescue-start .rescue-map-label {
  position: static !important;
  order: -1;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
.rescue-start .rescue-google-map,
.rescue-start .rescue-illustration {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 0;
}
.rescue-start .rescue-map-error { top: 90px; }
.rescue-start label[for=rescue-address] {
  display: block;
  margin: 0 0 8px;
}
.rescue-start #rescue-privacy { color: #55594e !important; }
.rescue-start .rescue-address button { margin: 0 !important; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #006cbe;
  outline-offset: 3px;
}
dialog { box-sizing: border-box; max-height: 85dvh; overflow: auto; }
#more-menu { margin: auto; }
@media (max-width: 900px) {
  .rescue-start .rescue-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px !important;
    gap: 16px;
  }
  .rescue-start .rescue-form-panel { order: 0; }
  .rescue-start .rescue-canvas { order: -1 !important; height: 220px !important; }
  .rescue-start .rescue-form-panel { max-width: 100%; }
  #mobile-nav a, #mobile-nav button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 380px) {
  .rescue-start .rescue-shell { padding: 10px !important; }
  .rescue-start .rescue-form-panel { padding: 16px !important; }
}

/* Hide the three explanatory texts removed at the owner's request. */
.rescue-start #rescue-map-subtitle,
.rescue-start #rescue-privacy,
.rescue-start #rescue-order > p.rescue-note:last-child { display: none !important; }
.rescue-start #rescue-mode-note { display: none !important; }
/* Compact map first on phones and narrow windows. */
@media (max-width: 900px) {
  body:has(.rescue-start) { background: #f5f5f3 !important; }
  .rescue-start { min-height: 0; }
  .rescue-start .rescue-shell {
    padding: 14px 12px 20px !important;
    gap: 14px;
    background: #f5f5f3 !important;
  }
  .rescue-start .rescue-canvas {
    height: clamp(180px,26dvh,220px) !important;
    border: 1px solid #e0e2df;
    border-radius: 18px !important;
    box-shadow: 0 3px 12px #18201b08;
    box-sizing: border-box;
  }
  .rescue-start .rescue-map-label {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    padding: 12px 16px;
    background: #fff;
    font-size: 12px;
    border-bottom: 1px solid #eceee9;
  }
  .rescue-start .rescue-map-label strong { margin: 0; }
  .rescue-start .rescue-form-panel {
    padding: 22px 20px !important;
    border: 1px solid #e6e7e3;
    border-radius: 20px !important;
    box-shadow: 0 4px 18px #18201b06;
  }
  .rescue-start .rescue-step { display: none; }
  .rescue-start .rescue-form-panel h1 {
    font-size: 25px !important;
    font-weight: 750;
    letter-spacing: -.6px;
    margin: 0 0 18px !important;
  }
  .rescue-start label[for=rescue-address] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .rescue-start .rescue-address input {
    height: 54px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    background: #f7f8f5 !important;
    border-color: #d9ddd6 !important;
  }
  .rescue-start .rescue-gps-button {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    color: #25271e !important;
  }
  .rescue-start #rescue-location-status {
    font-size: 12px !important;
    color: #555b50 !important;
    line-height: 1.5 !important;
    margin: 9px 0 18px !important;
  }
  .rescue-start .rescue-field-label {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
  .rescue-start .rescue-vehicles { margin-bottom: 20px !important; }
  .rescue-start .rescue-vehicle {
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }
  .rescue-start .rescue-vehicle.selected {
    border-color: #ba8f00 !important;
    background: #fff7d4 !important;
  }
  .rescue-start .rescue-primary {
    min-height: 54px !important;
    height: 54px !important;
    border-radius: 12px !important;
    background: #ffd027 !important;
    font-size: 16px !important;
    box-shadow: 0 3px 0 #d5ab0e;
  }
  body:has(.rescue-start) #mobile-nav {
    box-shadow: none;
    border-top: 1px solid #e3e5e0;
  }
}
