@layer atlas-map-restyle {
  #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) > .map-controls.glass {
    position: absolute !important;
    inset: auto auto 22px 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    width: max-content !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    gap: 1px !important;
    padding: 2px !important;
    margin: 0 !important;
    border: 1px solid #fff8 !important;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #fffcf4e6 0%, #f8f5edb8 52%, #f8f4e7d9 100%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
    backdrop-filter: blur(18px) saturate(1.35) !important;
    box-shadow: inset 0 1px 1px #fff, 0 5px 16px #0d211d45 !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) > .map-controls.glass > button {
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center;
    flex: 0 0 27px !important;
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #18241f !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font: 500 14px/1 Atlas, Arial, sans-serif !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) > .map-controls.glass > #map-return {
    background: #ffffffe0 !important;
    color: #17302a !important;
    font-size: 10px !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) > .map-controls.glass > button:is(:hover, :focus-visible) {
    background: #fff !important;
    color: #963302 !important;
  }

  @media (min-width: 801px) {
    #atlas #atlas-stage[data-map-restyle] .home-satellite-hint {
      max-width: calc(50% - 95px) !important;
    }
  }

  @media (max-width: 800px) {
    #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) {
      --atlas-mobile-map-height: 440px;
    }
    #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) #home-satellite {
      flex-basis: var(--atlas-mobile-map-height) !important;
      height: var(--atlas-mobile-map-height) !important;
    }
    #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) > .map-controls.glass {
      top: calc(var(--atlas-mobile-map-height) - 63px) !important;
      bottom: auto !important;
    }
    #atlas #atlas-stage[data-map-restyle].is-minimal .trip-explorer #trip-map-choices {
      grid-template-columns: 1fr !important;
    }
  }

  #atlas-stage[data-map-restyle] #zoom-label { display: none !important; }
  #atlas-stage[data-map-restyle] #map-reset svg { display: block; width: 15px; height: 15px; }

  #atlas #atlas-stage[data-map-restyle].is-minimal .home-map-destinations {
    margin-top: 13px;
    border-top: 1px solid #17302a29;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal:not(.is-mobile-fullscreen) .home-map-destinations > summary {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 2px !important;
    min-height: 42px;
    color: #24352d !important;
    text-align: left;
    list-style: none;
    cursor: pointer;
  }

  #atlas-stage[data-map-restyle] .home-map-destinations summary::-webkit-details-marker { display: none; }
  #atlas-stage[data-map-restyle] .home-map-destinations summary::marker { content: ''; }
  #atlas-stage[data-map-restyle] .home-map-destinations summary span { flex: 1; }
  #atlas-stage[data-map-restyle] .home-map-destinations summary::after {
    content: '';
    flex: 0 0 6px;
    height: 6px;
    margin-right: 4px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  #atlas-stage[data-map-restyle] .home-map-destinations[open] summary::after { transform: rotate(225deg); }

  #atlas #atlas-stage[data-map-restyle].is-mobile-fullscreen .home-map-destinations {
    margin: 0;
    border: 0;
  }
  #atlas #atlas-stage[data-map-restyle].is-mobile-fullscreen .home-map-destinations > summary,
  #atlas #atlas-stage[data-map-restyle].is-mobile-fullscreen[data-mobile-picker="trips"] .home-map-destinations {
    display: none !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal .trip-explorer #trip-map-choices > button[data-map-trip] {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 12px !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 5px 9px 5px 5px !important;
    border: 1px solid #fff2 !important;
    border-radius: 12px !important;
    color: #fff8ed !important;
    background: #182e28 !important;
    box-shadow: 0 3px 8px #10251b1c !important;
    text-align: left !important;
    white-space: normal !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal .trip-explorer #trip-map-choices > button[data-map-trip][aria-pressed="true"] {
    color: #172a24 !important;
    background: #ddf675 !important;
    border-color: #a4bb4c !important;
  }

  #atlas #atlas-stage[data-map-restyle].is-minimal .trip-explorer #trip-map-choices > button[data-map-trip]:is(:hover,:focus-visible) {
    outline: 2px solid #ff6332 !important;
    outline-offset: 1px;
  }

  #atlas-stage[data-map-restyle] .map-trip-cover {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
  }

  #atlas-stage[data-map-restyle] #trip-map-choices .map-trip-text {
    display: grid !important;
    gap: 3px;
    min-width: 0;
    color: inherit !important;
    text-align: left !important;
  }
  #atlas-stage[data-map-restyle] #trip-map-choices .map-trip-text strong {
    color: inherit !important;
    font: 500 13px/1.15 Atlas, Arial, sans-serif;
    overflow-wrap: anywhere;
  }
  #atlas-stage[data-map-restyle] #trip-map-choices .map-trip-text small {
    display: block !important;
    color: inherit !important;
    opacity: .83;
    font: 400 10px/1.15 Atlas, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  #atlas-stage[data-map-restyle] #trip-map-choices > button[data-map-trip]::after {
    content: '';
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
  }

  #atlas #atlas-stage[data-map-restyle] #trip-map-preview > button.trip-map-save {
    background: #fff8ee !important;
    color: #1c2823 !important;
    border: 1px solid #1c282350 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #trip-map-preview > button.trip-map-save[aria-pressed="true"] {
    background: #ddf675 !important;
    color: #172a24 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #trip-map-preview > button.trip-map-save:is(:hover,:focus-visible) {
    outline: 2px solid #bd421d !important;
    outline-offset: 2px;
  }
  #atlas #atlas-stage[data-map-restyle] #trip-map-preview .trip-map-save :is([data-save-symbol],[data-save-label],svg) {
    color: inherit !important;
    opacity: 1 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #trip-map-preview .trip-map-save svg {
    stroke: currentColor !important;
    fill: none !important;
    filter: none !important;
  }

  #atlas-stage[data-map-restyle] .map-season-calendar {
    --season-low: #fff8ed;
    --season-high: #ffd5b9;
    --season-mark: #52711f;
    margin: 3px 0 13px;
    padding: 10px;
    border: 1px solid #381f151e;
    border-radius: 14px;
    background: #fcf6edaa;
    color: #261a15;
  }
  #atlas-stage[data-map-restyle] .map-season-months {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  #atlas-stage[data-map-restyle] .map-season-months > li {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    height: 34px;
    padding-bottom: 3px;
    border: 1px solid #241f1718;
    border-radius: 7px;
    font-size: clamp(9px, 1.2vw, 12px);
  }
  #atlas-stage[data-map-restyle] .map-season-months abbr {
    text-decoration: none;
    white-space: nowrap;
  }
  #atlas-stage[data-map-restyle] .map-season-months .season-low { background: var(--season-low); }
  #atlas-stage[data-map-restyle] .map-season-months .season-high { background: var(--season-high); }
  #atlas-stage[data-map-restyle] .map-season-months .season-ideal::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background: var(--season-mark);
  }
  #atlas-stage[data-map-restyle] .map-season-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    font-size: 10px;
  }
  #atlas-stage[data-map-restyle] .map-season-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  #atlas-stage[data-map-restyle] .map-season-legend span::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    border: 1px solid #241f1733;
  }
  #atlas-stage[data-map-restyle] .map-season-legend .season-low::before { background: var(--season-low); }
  #atlas-stage[data-map-restyle] .map-season-legend .season-high::before { background: var(--season-high); }
  #atlas-stage[data-map-restyle] .map-season-legend .season-ideal::before {
    height: 2px;
    background: var(--season-mark);
    border: 0;
  }

  #atlas-stage[data-map-restyle] #home-satellite .home-map-marker-leader {
    filter: drop-shadow(0 1px 1px #281c1377);
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker {
    pointer-events: none !important;
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker > .home-map-pin {
    pointer-events: auto !important;
    box-sizing: border-box;
    margin: 4px !important;
    width: 36px !important;
    height: 36px !important;
    color: #4a2018 !important;
    background: #fff4db !important;
    border: 1px solid #fffcf4 !important;
    border-radius: 52% 48% 46% 54% / 46% 52% 48% 54% !important;
    box-shadow: 0 2px 8px #23180b70 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker.is-destination > .home-map-pin {
    background: #ffcc83 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker.is-stop > .home-map-pin {
    background: #ffc0a2 !important;
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker:is(.is-attraction,.is-arrival) > .home-map-pin {
    margin: 7px !important;
    width: 30px !important;
    height: 30px !important;
  }
  #atlas-stage[data-map-restyle] #home-satellite .home-map-pin > svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  #atlas-stage[data-map-restyle] #home-satellite :is(.is-attraction,.is-arrival) .home-map-pin > svg {
    width: 17px;
    height: 17px;
  }
  #atlas #atlas-stage[data-map-restyle] #home-satellite .home-map-marker:is(:hover,:focus-visible,[aria-pressed="true"]) > .home-map-pin {
    outline: 2px solid #ff4b20 !important;
    outline-offset: 2px;
  }
}
