* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Noto Sans KR",
        Arial,
        sans-serif;
}

body {
    background: #f5f5f5;
}


/* 상단 검색창 */

.topbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 60px;

    display: flex;

    gap: 8px;

    padding: 8px;

    background: white;

    z-index: 1000;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.15);
}


#destination {
    flex: 1;

    min-width: 0;

    height: 44px;

    border:
        1px solid #ccc;

    border-radius: 10px;

    padding:
        0 14px;

    font-size: 16px;

    outline: none;

    -webkit-appearance: none;
}


#destination:focus {
    border-color: #0066ff;
}


#searchBtn {
    width: 85px;

    height: 44px;

    border: none;

    border-radius: 10px;

    background: #0066ff;

    color: white;

    font-size: 15px;

    cursor: pointer;

    -webkit-tap-highlight-color:
        transparent;
}


#searchBtn:active {
    transform:
        scale(0.97);

    background:
        #004bb8;
}


/* 지도 */

#map {
    position: fixed;

    top: 60px;
    bottom: 150px;

    left: 0;
    right: 0;

    width: 100%;

    z-index: 1;
}


/* 현재 위치 따라가기 버튼 */

#followBtn {
    position: fixed;

    right: 16px;

    bottom: 170px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #777;

    font-size: 32px;

    line-height: 50px;

    padding: 0;

    z-index: 900;

    box-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.2);

    cursor: pointer;

    -webkit-tap-highlight-color:
        transparent;
}


#followBtn.active {
    color: #0066ff;
}


#followBtn:active {
    transform:
        scale(0.92);
}


/* 하단 정보 */

#info {
    position: fixed;

    bottom: 0;
    left: 0;

    width: 100%;

    min-height: 150px;

    background: white;

    padding:
        12px 16px
        calc(12px + env(safe-area-inset-bottom));

    z-index: 1000;

    box-shadow:
        0 -2px 10px
        rgba(0, 0, 0, 0.18);

    font-size: 16px;

    line-height: 1.7;
}


#status {
    font-weight: bold;

    color: #0066ff;
}


#distance,
#time {
    color: #333;
}


#guide {
    margin-top: 4px;

    color: #111;

    font-weight: bold;
}


/* 현재 위치 마커 */

.user-location-wrapper {
    background: transparent;
    border: none;
}


.user-location {
    position: relative;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background:
        rgba(0, 102, 255, 0.15);

    animation:
        locationPulse
        2s
        infinite;
}


.user-dot {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 14px;
    height: 14px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: #0066ff;

    border:
        3px solid white;

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, 0.35);
}


@keyframes locationPulse {

    0% {
        transform:
            scale(0.85);
    }

    50% {
        transform:
            scale(1.15);
    }

    100% {
        transform:
            scale(0.85);
    }

}


/* Leaflet */

.leaflet-control-attribution {
    font-size: 10px;
}


/* 작은 화면 */

@media (max-width: 600px) {

    #destination {
        font-size: 16px;
    }

    #searchBtn {
        width: 76px;
        font-size: 14px;
    }

    #followBtn {
        right: 12px;
    }

}