/* Container */
.pm-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 600px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sidebar */
.pm-sidebar {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    background: #fff;
}

/* Search Box */
.pm-search-container {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

#pm-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Fix sizing */
}

#pm-search:focus {
    border-color: #1E419B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 65, 155, 0.1);
}

/* Map */
.pm-map {
    width: 65%;
    height: 100%;
    z-index: 1;
}

/* List Styling */
.pm-store-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto;
    flex-grow: 1;
}

/* Scrollbar Styling */
.pm-store-list::-webkit-scrollbar {
    width: 6px;
}

.pm-store-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pm-store-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.pm-store-item {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.pm-store-item:hover {
    background: #f9f9f9;
}

.pm-store-item.active {
    background: #f0f7ff;
    border-left: 4px solid #1E419B;
}

.pm-store-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: #2c3e50;
    line-height: 1.2;
}

.pm-store-address {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Tags */
.pm-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.pm-tag-delhaize {
    background-color: #EE1C23;
}

.pm-tag-carrefour {
    background-color: #1E419B;
}

.pm-tag-intermarche {
    background-color: #1A1A1A;
}

.pm-tag-horeca {
    background-color: #333;
}

.pm-tag-other {
    background-color: #28A745;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pm-container {
        flex-direction: column-reverse;
        height: auto;
    }

    .pm-sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-right: none;
    }

    .pm-map {
        width: 100%;
        height: 50vh;
        min-height: 300px;
    }

    .pm-store-list {
        max-height: 300px;
    }
}