/* Genel yapı */
.shop-locator-wrapper {
    display: flex;
    flex-direction: row;
    height: 600px;
    width: 100%;
    max-width: 100% !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.shop-sidebar {
    width: 30%;
    background: #fff;
    overflow-y: auto;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Liste alanı */
.shop-list {
    flex: 1;
    overflow-y: auto;
}

.shop-item {
    background: #fff;
    margin: 10px 12px;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.shop-item:hover {
    background: #f8faff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #007bff20;
}

.shop-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.shop-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-item p::before {
    content: "📍";
    font-size: 14px;
    opacity: 0.8;
}

/* Aktif (seçili) item durumu */
.shop-item.active {
    background: #e9f3ff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px #007bff33;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .shop-item {
        margin: 8px;
        padding: 12px 15px;
    }
}

/* Pagination Container */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-top: 1px solid #e5e5e5;
    background: #fff;

    /* Çok sayfa olduğunda düzgün gösterilsin */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* WebKit kaydırma */
.shop-pagination::-webkit-scrollbar {
    height: 6px;
}

.shop-pagination::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Buttons */
.shop-pagination button {
    background: #fff;
    border: 1px solid #d2d2d2;
    color: #444;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    user-select: none;
}

/* Normal hover */
.shop-pagination button:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Active page */
.shop-pagination button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

/* First, Last, Prev, Next Buttons */
.shop-pagination .first-btn,
.shop-pagination .last-btn,
.shop-pagination .prev-btn,
.shop-pagination .next-btn {
    background: #f8f9fa;
    border: 1px solid #cfcfcf;
    font-weight: bold;
    min-width: 45px;
}

.shop-pagination .first-btn:hover,
.shop-pagination .last-btn:hover,
.shop-pagination .prev-btn:hover,
.shop-pagination .next-btn:hover {
    background: #0056d2;
    border-color: #0056d2;
    color: #fff;
}

/* Disabled buttons */
.shop-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #eaeaea !important;
    color: #777;
    border-color: #dcdcdc;
}

/* Mobile Friendly Design */
@media (max-width: 480px) {
    .shop-pagination button {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* Harita */
#shop-map {
    width: 70%;
    height: 100%;
    flex-shrink: 0;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .shop-locator-wrapper {
        flex-direction: column;
        height: auto;
    }

    .shop-sidebar {
        width: 100%;
        max-height: 350px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    #shop-map {
        width: 100%;
        height: 400px;
    }
}


.shop-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    flex-direction: column;
    /* Mobilde dikey */
    padding: 10px 0px 0px 10px;
}

/* Masaüstü için yan yana */
@media (min-width: 768px) {
    .shop-filter {
        flex-direction: row;
        align-items: center;
    }
}

.shop-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #fff;
    width: 100%;
    /* Mobilde tam genişlik */
}

@media (min-width: 768px) {
    .shop-filter select {
        width: auto;
        /* Masaüstünde normal boyut */
    }
}

.shop-filter select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
}

.shop-filter button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background-color: #4285f4;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    /* Mobilde tam genişlik */
}

.shop-filter button:hover {
    background-color: #357ae8;
}

@media (min-width: 768px) {
    .shop-filter button {
        width: auto;
        /* Masaüstünde normal boyut */
    }
}