/* --- PRODUCT SECTION LOADER STYLES (NEW) --- */
#product-section-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#product-section-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.fs-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0071c5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fs-loader-text {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* --- UPDATED LAYOUT & SPECS --- */
/* Fixed typo in align-items and added min-width to pricing container */
.fs-city-table-container { 
    align-items: flex-start; /* Changed from 'flex start' to 'flex-start' */
}

.fs-product-pricing-container{
    min-width: 0; /* Added to prevent flexbox overflow issues */
}

/* Added text-align right to spec values */
.fs-city-table-container .spec-value {
    text-align: right;
}

/* --- UPDATED FILTER BUTTONS (Smaller Size) --- */
.fs-filter-common-btn {
    padding: 5px 5px; /* Reduced from 10px */
    font-size: 12px;  /* Reduced from 13px */
}

/* --- NEW LOCATION SEARCH BAR STYLES --- */
.fs-location-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.fs-location-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.fs-location-scroll-area {
    max-height: none; 
    overflow-y: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-right: 5px;
    width: 100%;
}

/* --- NEW 'SEE MORE' BUTTON --- */
.fs-see-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s;
}

.fs-see-more-btn:hover {
    box-shadow: none !important;
    color: var(--dark-color) !important;
}

/* --- UPDATED SLIDER SELECTORS (Added priceMin/priceMax) --- */
#productPriceRangeMin, #productPriceRangeMax, 
#priceMin, #priceMax {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#priceMin { z-index: 3!important; }
#priceMax { z-index: 4!important; }

#priceMin::-webkit-slider-thumb, #priceMax::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid var(--white-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    position: relative;
    z-index: 10;
}

/* --- NEW NO RESULTS BUTTON STYLE --- */
.no-results-reset-btn {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.no-results-reset-btn:hover {
    background-color: #00665b;
}

/* --- NEW LAZY LOADING --- */
.server-card-item img {
    loading: lazy;
}

/* --- UPDATED MEDIA QUERIES (Mobile Layout Changes) --- */
@media (max-width: 1050px) {
    .fs-city-table-container {
        align-items: center; /* Added */
    }
    .fs-filter-common-section {
        order: -1; /* Added to push filters to top on mobile */
    }
}

@media (max-width: 768px) {
    /* New rule for footer stack */
    .fs-city-table-container .card-footer {
        flex-direction: column !important;
    }
    /* New rule for price margin */
    .fs-city-table-container .price-container {
        margin-bottom: 15px;
    }
    /* Ensure specs align right on mobile */
    .fs-city-table-container .spec-value {
        text-align: right;
    }
}

#sidebarReset:focus{
    color:black!important;
}


