﻿#dloc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#dloc-overlay.open { display: flex; }
#dloc-panel {
    width: 500px;
    max-width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
#dloc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0d1b2a;
    flex-shrink: 0;
}
#dloc-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
#dloc-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s;
}
#dloc-close:hover { background: rgba(255,255,255,.28); }
#dloc-searchbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 16px;
    padding: 0 14px;
    height: 46px;
    border: 1.5px solid #dfe5ec;
    border-radius: 10px;
    background: #fafbfc;
    flex-shrink: 0;
    box-sizing: border-box;
}
#dloc-search-icon {
    color: #9ca3af;
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}
#dloc-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: #111;
    height: 46px;
    outline: none;
}
#dloc-input::placeholder { color: #9ca3af; }
#dloc-results {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px 16px;
}
#dloc-results::-webkit-scrollbar { width: 6px; }
#dloc-results::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dloc-group-label {
    padding: 10px 0 4px;
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.dloc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    margin-bottom: 4px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
}
.dloc-item:hover { border-color: #cbd5e1; background: #f9fafb; }
.dloc-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.dloc-item-main { flex: 1; min-width: 0; overflow: hidden; }
.dloc-item-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dloc-item-addr {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.dloc-item-arrow { color: #d1d5db; font-size: 16px; flex-shrink: 0; }
.dloc-empty { padding: 32px 16px; text-align: center; color: #9ca3af; font-size: 13px; }
#mloc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.55);
}
#mloc-overlay.open { display: block; }
#mloc-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 32px rgba(0,0,0,.2);
    box-sizing: border-box;
}
#mloc-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
#mloc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
#mloc-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
#mloc-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
#mloc-searchbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 14px 6px;
    padding: 0 12px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
}
#mloc-search-icon { color: #9ca3af; font-size: 16px; flex-shrink: 0; }
#mloc-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: #111;
    height: 44px;
    outline: none;
}
#mloc-input::placeholder { color: #9ca3af; }
#mloc-results {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 24px;
}
.mloc-group-label {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.mloc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    cursor: pointer;
    text-align: left;
}
.mloc-item:active { background: #f9fafb; }
.mloc-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.mloc-item-main { flex: 1; min-width: 0; overflow: hidden; }
.mloc-item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mloc-item-addr {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mloc-item-arrow { color: #d1d5db; font-size: 14px; flex-shrink: 0; }
.mloc-empty { padding: 32px 16px; text-align: center; color: #9ca3af; font-size: 13px; }
@media (max-width: 767px) {
    #dloc-panel {
        width: 370px;
        max-width: calc(100vw - 32px);
    }
}
