.search-section {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 200px 120px;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.search-input,
.filter-select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.search-btn {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 600px;
}

.map-container {
    position: relative;
    background: #f8f9fa;
}

#map {
    height: 100%;
    width: 100%;
}

.stores-sidebar {
    background: white;
    border-left: 1px solid #eee;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    position: relative;
}

.stores-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0 10px 0;
    border-bottom: 2px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stores-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sort-dropdown:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.sort-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.store-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.store-card:hover::before {
    left: 100%;
}

.store-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px) scale(1.02);
    border-color: #007bff;
}

.store-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.store-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.store-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.store-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.store-distance {
    color: #007bff;
    font-weight: 600;
}

.store-phone {
    color: #28a745;
}

.store-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #007bff;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    position: relative;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f8f9fa;
    transform: translateX(5px);
    border-left: 3px solid #007bff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-main {
    font-weight: 600;
    color: #333;
}

.autocomplete-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.custom-pin-marker {
    border: none !important;
    background: transparent !important;
}

.custom-pin-marker div {
    transition: all 0.3s ease;
}

.custom-pin-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Smooth animations and keyframes */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-15px);
    }

    70% {
        transform: translateY(-7px);
    }

    90% {
        transform: translateY(-3px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.stores-sidebar {
    animation: slideInRight 0.6s ease-out;
}

.store-card {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.store-card:nth-child(1) {
    animation-delay: 0.1s;
}

.store-card:nth-child(2) {
    animation-delay: 0.2s;
}

.store-card:nth-child(3) {
    animation-delay: 0.3s;
}

.store-card:nth-child(4) {
    animation-delay: 0.4s;
}

.store-card:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 400px;
        order: 2;
    }

    .stores-sidebar {
        order: 1;
        border-left: none;
        border-bottom: 1px solid #eee;
    }
}