/* ============================================
   LOCATIONS SECTION STYLES
   ============================================ */

.locations-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header Section */
.locations-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.locations-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.locations-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Search Section */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #E50000;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 16px 30px;
    background-color: #E50000;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.search-btn:hover {
    background-color: #b70002;
}

/* Store List Section */
.store-list-container {
    margin-bottom: 60px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.store-card.coming-soon {
    opacity: 0.8;
}

.store-card.coming-soon:hover {
    transform: none;
    cursor: default;
}

/* Coming Soon Banner */
.coming-soon-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #E50000;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Store Image */
.store-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

/* Store Info */
.store-info {
    padding: 20px;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.store-address {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.store-phone {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Pagination Section */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background-color: white;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #E50000;
    color: #E50000;
}

.page-btn.active {
    background-color: #E50000;
    border-color: #E50000;
    color: white;
}

.page-btn.prev,
.page-btn.next {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Store Modal */
.store-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.store-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-body {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Store Modal Content */
.store-modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.store-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.store-modal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 2px solid #E50000;
    padding-bottom: 5px;
    display: inline-block;
    width: fit-content;
}

.detail-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.store-images {
    margin-top: 20px;
}

.image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.store-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .locations-title {
        font-size: 2.5rem;
    }
    
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 800px;
    }
    
    .image-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .locations-section {
        padding: 60px 0;
    }
    
    .locations-title {
        font-size: 2rem;
    }
    
    .locations-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-input {
        padding: 14px 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .search-btn {
        padding: 14px 20px;
        border-radius: 0 0 8px 8px;
    }
    
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .store-image {
        height: 150px;
    }
    
    .store-info {
        padding: 12px;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 36px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .store-modal-title {
        font-size: 1.6rem;
    }
    
    .detail-item label {
        font-size: 1rem;
    }
    
    .detail-item p {
        font-size: 0.95rem;
    }
    
    .store-image {
        height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .locations-title {
        font-size: 1.8rem;
    }
    
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .store-image {
        height: 140px;
    }
    
    .store-info {
        padding: 10px;
    }
    
    .store-name {
        font-size: 0.95rem;
    }
    
    .store-address,
    .store-phone {
        font-size: 0.85rem;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 32px;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .store-modal-title {
        font-size: 1.4rem;
    }
    
    .store-image {
        height: 180px;
    }
}