.map-section.apartment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 0;
    height: 520px;
    overflow: hidden;
    background: #fff;
}

.map-section.apartment-layout .map-pane {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.map-section.apartment-layout #korea-map {
    width: 100% !important;
    height: 100% !important;
}

.map-section.apartment-layout #apt-info-panel {
    width: min(380px, 88%);
    z-index: 12;
}

.apt-list-panel {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #e8eaed;
}

.apt-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #eef0f2;
}

.apt-list-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: #202124;
}

.apt-list-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

#apt-list-count {
    flex: none;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #1473e6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.apt-list-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-bottom: 1px solid #eef0f2;
    background: #fafbfc;
}

.apt-list-controls label {
    color: #5f6368;
    font-size: 12px;
    white-space: nowrap;
}

.apt-list-controls select {
    width: 100%;
    min-width: 0;
    padding: 7px 30px 7px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #30343b;
    font: inherit;
    font-size: 13px;
}

.apt-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
}

.apt-list-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    color: #7a8088;
    font-size: 13px;
    text-align: center;
}

.apt-list-item {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    color: #202124;
    text-align: left;
    cursor: pointer;
}

.apt-list-item:hover {
    background: #f7faff;
}

.apt-list-item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #2196f3;
    outline-offset: -2px;
}

.apt-list-item.is-selected {
    background: #eaf3ff;
    box-shadow: inset 4px 0 0 #2196f3;
}

.apt-list-item-top {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.apt-list-item-top strong {
    min-width: 0;
    overflow: hidden;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apt-list-price {
    flex: none;
    color: #1473e6;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.apt-list-address {
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apt-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: #4f5660;
    font-size: 12px;
}

.apt-list-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #b0b5bc;
}

.apt-detail-address {
    margin: -2px 0 14px;
    color: #6b7280;
    font-size: 12px;
}

.apt-info-loading {
    color: #6b7280;
    font-size: 13px;
}

#regional-chart .regional-chart-note {
    margin: -4px 0 8px;
    color: #6b7280;
    font-size: 12px;
}

@media screen and (max-width: 900px) {
    .map-section.apartment-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media screen and (max-width: 768px) {
    .map-section.apartment-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .map-section.apartment-layout .map-pane {
        width: 100%;
        height: 390px;
        min-height: 390px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .map-section.apartment-layout #apt-info-panel {
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 72%;
        height: auto;
        padding: 14px;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.14);
    }

    .apt-list-panel {
        width: 100%;
        height: auto;
        max-height: 560px;
        margin-top: 12px;
        border: 1px solid #e7eaee;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }

    .apt-list {
        max-height: 450px;
    }

    .apt-list-header {
        padding: 14px 14px 10px;
    }

    .apt-list-controls {
        padding: 9px 14px;
    }

    .apt-list-item {
        padding: 13px 14px;
    }
}

@media screen and (max-width: 420px) {
    .map-section.apartment-layout .map-pane {
        height: 340px;
        min-height: 340px;
    }

    .apt-list-item-top {
        align-items: center;
    }

    .apt-list-item-top strong,
    .apt-list-price {
        font-size: 13px;
    }
}
