/* Store Locator Styles - Updated with Brand Colors */
.roof-store-locator-container {
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.store-locator-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: #A51A34;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.store-locator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #A51A34, #FF6B6B);
}

.store-locator-header h2 {
    margin: 0 0 15px 0;
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.store-locator-header .description {
    margin: 0 auto;
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 300;
}

.store-search-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}

.search-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-boxes input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-weight: 500;
}

.search-boxes input:focus {
    outline: none;
    border-color: #A51A34;
    background: white;
    box-shadow: 0 0 0 4px rgba(165, 26, 52, 0.1);
    transform: translateY(-1px);
}

.search-boxes input::placeholder {
    color: #94a3b8;
}

.btn-search, .btn-location {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    min-width: 140px;
    justify-content: center;
}

.btn-search {
    background: linear-gradient(135deg, #A51A34 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(165, 26, 52, 0.3);
}

.btn-search:hover {
    background: linear-gradient(135deg, #8a152c 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(165, 26, 52, 0.4);
}

.btn-location {
    background: linear-gradient(135deg, #141E46 0%, #2d3748 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(20, 30, 70, 0.3);
}

.btn-location:hover {
    background: linear-gradient(135deg, #0f1634 0%, #1a202c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 30, 70, 0.4);
}

.filters {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    flex-wrap: wrap;
}

.filters select {
    padding: 12px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    min-width: 180px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s;
}

.filters select:focus {
    outline: none;
    border-color: #A51A34;
    box-shadow: 0 0 0 3px rgba(165, 26, 52, 0.1);
}

.filters select option {
    padding: 12px;
}

.store-locator-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 10px;
}

.stores-list-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
}

.stores-list-header {
    padding: 24px;
    background: #A51A34;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stores-list-header h3 {
    margin: 0;
    color: white;
    font-size: 1.6em;
    font-weight: 700;
}

.count-badge {
    display: inline-block;
    white-space: nowrap;          /* prevent line break */
    text-align: center;           /* center the text */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 18px;            /* thoda adjust kiya padding */
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;       /* ensure padding included in width */
    max-width: 100%;               /* responsive */
    overflow: hidden;
    text-overflow: ellipsis;      /* optional, if text too long */
}


.stores-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 0;
    flex: 1;
}

.store-card {
    padding: 24px;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
}

.store-card:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(5px);
}

.store-card.active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #A51A34;
    box-shadow: inset 4px 0 0 #A51A34;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #a51a34;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.store-card-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.store-card-header h4 {
    margin: 0 0 8px 0;
    color: #141E46;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.store-rating {
    color: #a51a34 ;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.store-card-body {
    margin-bottom: 20px;
}

.store-address, .store-phone, .store-hours {
    margin: 8px 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}



.store-services {
    margin: 12px 0 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #A51A34;
}

.store-services strong {
    color: #141E46;
    font-weight: 700;
}

.store-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.store-type-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-type-material { 
    background:#a51a34;
    color: white; 
}

.store-type-contractor { 
    background: #a51a34;
    color: white; 
}

.store-type-retail { 
    background: #a51a34;
    color: white; 
}

.store-type-wholesale { 
    background: #a51a34;
    color: white; 
}

.store-actions {
    display: flex;
    gap: 8px;
}




.store-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
    height: 100%;
    min-height: 600px;
    position: relative;
}

.store-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #A51A34, #141E46);
    z-index: 1;
}

.store-info-window {
    padding: 16px;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.store-info-window h3 {
    margin: 0 0 12px 0;
    color: #141E46;
    font-size: 1.2em;
    font-weight: 700;
    border-bottom: 2px solid #A51A34;
    padding-bottom: 8px;
}

.store-info-window p {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.store-info-window strong {
    color: #141E46;
    font-weight: 600;
}

.modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-action-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.call-btn { 
    background: #111832;
    color: white !important; 
}

.website-btn { 
    background: #111832;
    color: white; 
}

.email-btn { 
    background: #111832;
    color: white; 
}

.directions-btn {
    background: #111832;
    color: white;
}

.modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.loading-stores {
    text-align: center;
    padding: 60px 40px;
    color: #64748b;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-stores::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8f0;
    border-top-color: #A51A34;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-stores {
    text-align: center;
    padding: 60px 40px;
    color: #94a3b8;
    font-size: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 20px;
}

.map-error {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-radius: 12px;
    border: 2px solid #fca5a5;
    margin: 20px;
    font-weight: 600;
}

/* Scrollbar Styling */
.stores-list::-webkit-scrollbar {
    width: 8px;
}

.stores-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A51A34 0%, #141E46 100%);
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8a152c 0%, #0f1634 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .roof-store-locator-container {
        padding: 20px;
    }
    
    .store-locator-header {
        padding: 30px 20px;
    }
    
    .store-locator-header h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 992px) {
    .store-locator-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .store-map-container {
        min-height: 400px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .search-boxes {
        flex-direction: column;
    }
    
    .btn-search, .btn-location {
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
        min-width: auto;
    }
    
    .store-locator-header h2 {
        font-size: 1.8em;
    }
    
    .store-locator-header .description {
        font-size: 1em;
    }
    
    .store-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .store-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .store-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .roof-store-locator-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    .store-locator-header {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .store-locator-header h2 {
        font-size: 1.5em;
    }
    
    .store-search-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .store-card {
        padding: 20px;
    }
    
    .featured-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
        display: inline-block;
    }
}

/* Animation for store cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.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; }

/* Gradient borders */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #A51A34, #141E46, #A51A34);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
}

/* Hover effects */
.search-boxes input:hover {
    border-color: #94a3b8;
}

.btn-search:active, .btn-location:active {
    transform: translateY(1px);
}

/* Focus states for accessibility */
.btn-search:focus, .btn-location:focus, 
.modal-action-btn:focus {
    outline: 2px solid #A51A34;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .roof-store-locator-container {
        box-shadow: none;
        background: white;
    }
    
    .btn-search, .btn-location, 
    .modal-action-btn {
        display: none;
    }
    
    .store-map-container {
        display: none;
    }
    
    .store-locator-main {
        grid-template-columns: 1fr;
    }
}

/* WordPress Constrained Layout Override */
.store-filters {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.store-filter-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

.store-filter-select:focus {
    border-color: #1F246C;
    box-shadow: 0 0 5px rgba(31, 36, 108, 0.3);
    outline: none;
}
#reset-filters{
    display: none;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;       /* Text aur icon ka spacing */
    padding: 8px 14px;  /* Buttons ki padding */
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.action-btn::after {
    margin-left: 4px; /* Icon thoda left se clean lage */
}
.store-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.store-action-btn {
    width: 46px;           /* same width for all buttons */
    height: 46px;          /* same height */
    background: #1F246C;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    padding: 0;            /* remove padding */
    text-decoration: none;
}

.store-action-btn svg {
    width: 22px;           /* same icon size */
    height: 22px;
    fill: #fff;
}

.store-action-btn:hover {
    background: #C82737;
}
