#nearby_main {
    display: block;
    width: 100%;
    height: auto;
    min-height: 70svh;
    max-width: var(--main-width);
    margin: 0 auto;
    background-color: var(--bg-02);
    position: relative;
    padding: 0 0 2rem;
}

.place-list-header {
    margin-bottom: 1rem;
    padding: 0 15px;
}

.place-list-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-01);
    line-height: 1.3;
}

.place-list-desc {
    color: var(--text-02);
    font-size: .95rem;
    line-height: 1.6;
}

.category-navigation, .map_section {
    display: block;
    width: 100%;
    height: auto;
    padding: 0 15px;
    margin-bottom: 1rem;
}

.place-map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(111,140,175,.12), rgba(255,255,255,.4)),
        #edf3fa;
    border: 1px solid var(--secondary-border);
    position: relative;
}
#place_map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.place-map > .map_placeholder {
    display: flex;
    width: 100%;
    padding: 0 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    pointer-events: none;
    line-height: 1.4;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
}
.place-map > .map_controls {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    z-index: 101;
}
.place-map > .map_controls > .map_control_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(32px, max(5vw, 1.8em));
    height: min(32px, max(5vw, 1.8em));
    border-radius: 50%;
    background-color: rgba(255,255,255,0.8);
    color: var(--text-unselected);
    font-size: min(19.5px, max(3vw, 1.08em));
    border: 1px solid var(--border-color-03);
    transition: all .2s ease, color .2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.place-map > .map_controls > .map_control_btn:hover {
    background-color: rgba(255,255,255,1);
    color: var(--text-label);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.place-map >  .map_controls > .map_control_btn:active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.map_info_window {
    position: relative;
    min-width: 320px;
    max-width: 380px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.16);
}

.map_info_window::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -11px;
    transform: translateX(-50%);
    border-width: 11px 11px 0;
    border-style: solid;
    border-color: #dbe4f0 transparent transparent transparent;
}

.map_info_window::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.map_info_window .place_title {
    display: block;
    margin: 0 0 6px;
    font-size: 1em;
    font-weight: 700;
    color: #1f2937;
}

.map_info_window .place_category {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef4fb;
    color: #5f7fa7;
    font-size: 0.75em;
    font-weight: 500;
}

.map_info_window .place_address {
    margin: 0;
    color: #64748b;
    font-size: 0.8125em;
    word-break: keep-all;
    line-height: 1.4;
}

.map_info_window .ratings {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}
.map_info_window .ratings > p {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 0.875rem;
    padding-left: 8px;
    position: relative;
    white-space: nowrap;
}
.map_info_window .ratings > p::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--border-color-03);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.map_info_window .info_window_buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.map_info_window .info_window_buttons > a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease, color .2s ease;
}

.current_location_marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    z-index: 101;
    position: relative;
}
.current_location_marker::after {
    content: '';
    display: block;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.current_location_marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.4);
    animation: pulse 2s infinite;
}

.current_location_marker > span {
    display: block;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.8);
}
.current_location_marker > img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 900px) and (max-aspect-ratio: 3/4) {

}

@media (max-width : 640px) {
    .category-navigation, .map_section {
        padding: 0 10px;
    }
}

@media (max-width: 900px) and (max-aspect-ratio: 3/4) {
    .place-map {
        aspect-ratio: 4/5;
    }
    .map_info_window {
        min-width: 180px;
        max-width: 280px;
    }
    .map_info_window .ratings {
        flex-direction: column;
        gap: 0.25rem;
    }
}