/* MDC MapLite Core: search box over a full-height map, as the old Default.aspx */
html, body { height: 100%; margin: 0; }
body { font-family: Roboto, "Segoe UI", Arial, sans-serif; background: #fff; color: #212529; }

.maplite { display: flex; flex-direction: column; height: 100vh; padding: 0 12px; box-sizing: border-box; }

.pac-box { position: relative; flex: none; }
#pac_input {
    width: 100%; box-sizing: border-box; font-size: 22px; padding: 8px 14px; margin: 6px 0;
    border: 1px solid #ced4da; border-radius: 6px; outline: none;
}
#pac_input:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25); }

/* the search suggestions (Google's old Autocomplete drew this list itself) */
.pac-list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; margin: -4px 0 0; padding: 0; list-style: none;
    background: #fff; border: 1px solid #ced4da; border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    max-height: 60vh; overflow-y: auto;
}
.pac-list li { padding: 7px 14px; font-size: 16px; cursor: pointer; border-top: 1px solid #f1f3f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pac-list li:first-child { border-top: none; }
.pac-list li .main { font-weight: 600; }
.pac-list li .secondary { color: #6c757d; margin-left: 6px; }
.pac-list li[aria-selected="true"], .pac-list li:hover { background: #e7f1ff; }

#map_canvas { flex: 1 1 auto; min-height: 200px; position: relative; }
.map-message { margin: 0; padding: 24px; text-align: center; color: #842029; background: #f8d7da; }

footer { flex: none; font-size: 13px; color: #6c757d; padding: 6px 0; }

/* markers (Advanced Markers draw HTML, so the old icon + label is an image with a text over it) */
.ml-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.ml-marker img { display: block; }
.ml-marker .ml-label {
    position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; line-height: 14px;
    pointer-events: none; white-space: nowrap; font-weight: 600;
    text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff;   /* readable over the map's own labels */
}
.ml-bounce { animation: ml-bounce .7s ease-in-out infinite alternate; }
@keyframes ml-bounce { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* search result pin for businesses and landmarks: the place's colour with its white icon, pointing down at the spot */
.ml-place-pin { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.ml-place-pin-head { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ml-place-pin::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--pin-color, #ea4335);
}
.ml-place-pin-head .glyph { width: 18px; height: 18px; }
/* this computer's location: Google's blue dot, centred on the spot (markers otherwise stand on it) */
.ml-my-location {
    width: 14px; height: 14px; border-radius: 50%; background: #4285F4; border: 2px solid #fff; transform: translateY(50%);
    box-shadow: 0 0 0 6px rgba(66, 133, 244, .25), 0 1px 3px rgba(0, 0, 0, .4);
}
.ml-route-pin {
    width: 24px; height: 24px; border-radius: 50%; background: #ea4335; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    border: 2px solid #b31412; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 13px;
}

/* balloons: name (and place icon) in the header, then the address, coordinates and "Select Address" */
.place-head { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; padding-top: 2px; max-width: 280px; }
.place-head strong { font-weight: 600; color: #202124; }
.place-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.place-badge .glyph { width: 14px; height: 14px; }
.glyph { display: block; background: #fff; mask-size: contain; mask-repeat: no-repeat; mask-position: center;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; }
.place-info { font-size: 13px; color: #3c4043; max-width: 280px; line-height: 18px; }
.place-info .coords { color: #80868b; font-size: 12px; margin-top: 2px; }
.place-info .buttons { display: flex; justify-content: center; }
.place-info button {
    cursor: pointer; margin-top: 8px; border: none; border-radius: 4px; background: #3498db; color: #fff;
    font-weight: bold; font-size: 14px; padding: 5px 14px;
}
.place-info button:hover { background: #2c81ba; }
