:root {
    --outline: #222222;
    --label-fg: #ffffff;
    --active: #eabf8c33;
    --beige: #eabf8c;
    --btn-icon-filter: brightness(0) invert(1);
}

:root.light {
    --outline: #eeeeee;
    --label-fg: #222222;
    --active: #b68d5b33;
    --beige: #b68d5b;
    --btn-icon-filter: brightness(0) invert(0.133);
}

@font-face {
    font-family: 'La';
    src: url('fonts/Pretendard-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sc';
    src: url('fonts/NotoSansSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rm';
    src: url('fonts/RusimezSans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body { margin: 0; padding: 0; }
#map { width: 100vw; height: 100vh; }

.map-label {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--label-fg);
    white-space: nowrap;
    font-family: 'Rm', 'La', 'Sc', sans-serif; 
    text-align: center;
    text-shadow: 
        0.1rem 0 0 var(--outline),
        0.096rem 0.028rem 0 var(--outline),
        0.08rem 0.06rem 0 var(--outline),
        0.06rem 0.08rem 0 var(--outline),
        0.028rem 0.096rem 0 var(--outline),
        0 0.1rem 0 var(--outline),
        -0.028rem 0.096rem 0 var(--outline),
        -0.06rem 0.08rem 0 var(--outline),
        -0.08rem 0.06rem 0 var(--outline),
        -0.096rem 0.028rem 0 var(--outline),
        -0.1rem 0 0 var(--outline),
        -0.096rem -0.028rem 0 var(--outline),
        -0.08rem -0.06rem 0 var(--outline),
        -0.06rem -0.08rem 0 var(--outline),
        -0.028rem -0.096rem 0 var(--outline),
        0 -0.1rem 0 var(--outline),
        0.028rem -0.096rem 0 var(--outline),
        0.06rem -0.08rem 0 var(--outline),
        0.08rem -0.06rem 0 var(--outline),
        0.096rem -0.028rem 0 var(--outline);
    white-space: nowrap;
}

.map-label-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-align: left;
}

.map-label-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
}

.map-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    margin-right: 0.1rem;
}

/* 원 svg와 안쪽 아이콘을 같은 칸에 겹쳐서 가운데 정렬 (14/24 크기) */
.map-icon svg,
.map-icon .icon-glyph {
    grid-area: 1 / 1;
}

.map-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--outline);
}

#custom-controls {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.control-btn {
    width: 2.4rem;
    height: 2.4rem;
    background: #ffffff22;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid #ffffff66;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-icon {
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: var(--btn-icon-filter);
}

.control-btn:hover { background: #ffffff33; }

.control-btn.active { 
    background: var(--active);
    border-color: var(--beige);
}
