* {
    box-sizing: border-box;
}

html,
body,
#map {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1b1b1b;
}

.hud {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(560px, calc(100% - 24px));
    pointer-events: none;
}

.search-card,
.toast {
    pointer-events: auto;
}

.search-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    padding: 14px 16px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.search-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #5f6368;
    margin-bottom: 8px;
}

.search-row {
    display: flex;
    gap: 8px;
}

#search-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
}

#search-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

#search-btn {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #1a73e8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#search-btn:hover {
    background: #1557b0;
}

#search-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #5f6368;
}

.results {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
}

.results li button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
}

.results li + li {
    border-top: 1px solid #f0f0f0;
}

.results li button:hover,
.results li button:focus {
    background: #eef4ff;
}

.results .name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.results .addr {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #5f6368;
}

.toast {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1000;
    background: #202124;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    max-width: min(640px, calc(100% - 24px));
}

.toast.error {
    background: #b3261e;
}

.leaflet-container {
    background: #0b1a12;
    font-family: inherit;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
}
