.modal-content {
    display: flex;
    flex-direction: row;
    width: 1000px;
    height: 500px;
    padding: 20px;
    gap: 20px;
    margin: 10% auto;
    background-color: white;
    border-radius: 8px;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

#map {
    width: 300px;
    height: 100%;
    border-radius: 8px;
}

.modal-images-vertical {
    display: flex;

    justify-content: space-between;
    height: 100%;
    width: calc(100% - 320px); /* map width + gap 고려 */
    gap: 10px;
}

.modal-images-vertical img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 8px;
}

/* 📱 모바일 반응형 */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;  /* 모바일에서는 세로 배치 */
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        height: 100vh;
        padding: 10px;
        gap: 10px;
        margin: 0;
        box-sizing: border-box;
    }

    #map {
        width: 100%;
        height: 40%;  /* 모바일에서 지도는 위쪽 */
    }

    .modal-images-vertical {
        width: 100%;
        height: 100%;
        flex-direction: row;  /* 모바일에서 이미지 두 개를 가로로 */
        gap: 10px;
    }

    .modal-images-vertical img {
        width: 50%;
        height: 60%;
    }
}


.store-div {
    box-sizing: border-box;
    padding: 10px;
    border: 3px solid #ccc;
    border-radius: 4px;

}

#pagination {
    margin-top: 20px;
    text-align: center;
}

.page-button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
}

.page-button.active {
    background-color: #007bff;
    color: white;
}
#stores-div{
    height: auto;

}
#store-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 웹에서 6개 가로 */
    gap: 16px;
    height: auto;
}

@media (max-width: 708px) {
    #store-container {
        grid-template-columns: repeat(2, 1fr); /* 모바일에서 2열 */
    }
    .store-info {
        justify-content: flex-start; /* 가운데 정렬 */
    }

    .store-info > div {
        flex-direction: row;     /* 세로가 아닌 가로 정렬 유지 */
        justify-content: flex-start;

    }

    .store-info-p {
        font-size: 16px;         /* 모바일에서 글자 크기 조금 축소 */
    }

    #call_icon {
        margin-right: 8px;
    }

    .storeM-p{
        font-size: 0.7em;
        display: inline-block; /* ✅ 추가 */
    }

}

.store-img-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .store-img-wrapper{
        height: 175px;
    }
}
.store-img {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    display: block;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.store-img-wrapper:hover .store-img {
    opacity: 0.6;
}

.store-img-wrapper:hover .overlay-text {
    opacity: 1;
}
.store-info{
    display: flex;
    height: 40px;
}
.store-info>:first-child {
}
.store-info-p{
    text-align: left;
}
.store-info>div{
    display: flex;
    height: 100%;
    align-items: center; /* 아이콘과 텍스트를 세로로 정렬 */
}
#call_icon {
    margin-right: 10px; /* 아이콘과 텍스트 사이에 간격 추가 */
}
#store-name{
    font-weight: 900;
}
.store-info svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}
@media (max-width: 450px) {
    .store-img-wrapper{
        position: relative;
        height: 300px; !important;
        width: 100%;
    }
}