@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

/* Main Container */
#herlan-store-locator {
    max-width: 1280px;
    /* Updated width */
    margin: 0 auto;
    padding: 0 0 20px 0;
    /* Removed top padding */
    font-family: 'Inter Tight', sans-serif;
    background: #F6F6F6;
    /* New background */
}

/* Filters / Search Banner */
.hsl-filter-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #E4002B;
    /* Brand Red */
    padding: 60px 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-family: inherit;
}

.hsl-filter-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    text-align: center;
}

.hsl-filters-row {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    /* Constrain inputs */
    justify-content: center;
}

.hsl-filter-group {
    position: relative;
}

.hsl-city-group,
.hsl-area-group {
    flex: 0 0 200px;
    /* Fixed width for dropdowns */
}

.hsl-search-group {
    flex: 1;
    /* Search takes remaining space */
}

.hsl-filter-section select,
.hsl-filter-section input {
    width: 100%;
    padding: 0 16px;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: #222;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    appearance: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Custom dropdown arrow - Chevron Down */
.hsl-filter-section select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.hsl-filter-section input {
    padding-left: 45px;
    /* Space for icon */
}

.hsl-filter-section select:hover,
.hsl-filter-section input:hover {
    border-color: #B0B0B0;
}

.hsl-filter-section select:focus,
.hsl-filter-section input:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.hsl-filter-section select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
    opacity: 0.7;
}

.hsl-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    /* Dark icon inside white input */
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Grid */
.hsl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: 24px;
    justify-content: center;
}

/* Card */
.hsl-card {
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 380px;
    /* Slightly taller for content */

    /* box-shadow removed */
}

.hsl-card:hover {
    /* No shadow on hover either */
    transform: none;
}

.hsl-card-image {
    width: 100%;
    height: 180px;
    /* Taller image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

.hsl-card-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta Row: City Pill and Phone */
.hsl-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hsl-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    font-size: 14px;
    color: #222222;
    /* Updated to requested dark gray */
    font-weight: 500;
    line-height: 1;
    /* Fix vertical alignment gap */
    max-width: 50%;
    /* Restrict width */
}

.hsl-city-pill .hsl-icon {
    display: flex;
    align-items: center;
    min-width: auto;
    /* Reset fixed width */
    flex-shrink: 0;
    /* Prevent icon shrinking */
}

.hsl-pill-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hsl-phone-text {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    /* Reset line-height for better alignment */
}

.hsl-phone-text .hsl-icon {
    display: flex;
    /* Ensure SVG is flex-centered in span */
    align-items: center;
    justify-content: center;
}

.hsl-phone-text a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    /* Helps with vertical align */
}

.hsl-icon.is-small {
    font-size: 12px;
}

/* Store Name */
.hsl-store-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    /* Bold Black */
    color: #000;
    line-height: 1.2;
}

/* Address */
.hsl-address-text {
    margin: 0;
    font-size: 14px;
    color: #666;
    /* Gray */
    line-height: 1.5;
    flex-grow: 1;
    /* Push footer down */
}

/* Footer Info (Hours) */
.hsl-footer-info {
    margin-top: 15px;
    font-size: 12.8px;
    color: #000;
    font-weight: 500;
}

/* Pagination */
.hsl-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hsl-pagination-dots {
    color: #999;
    padding: 0 4px;
}

.hsl-page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.hsl-page-btn:hover {
    border-color: #E4002B;
    color: #E4002B;
}

.hsl-page-btn.active {
    background: #E4002B;
    /* Brand color */
    color: #fff;
    border-color: #E4002B;
}

.hsl-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 1200px) {
    .hsl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hsl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #content>div>div.col-full {
        padding: 0 24px;
    }

    .hsl-filter-section {
        padding: 40px 24px;
    }

    .hsl-filters-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .hsl-city-group,
    .hsl-area-group {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
    }

    .hsl-search-group {
        flex: 0 0 100%;
        width: 100%;
    }

    .hsl-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Store View */
#herlan-single-store {
    padding: 0;
    max-width: 1280px;
    margin: 0 auto;
    font-family: 'Inter Tight', sans-serif;
}

.hsl-single-header {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
    margin-bottom: 0;
}

.hsl-single-header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hsl-single-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: none;
    line-height: 1;
}

.hsl-single-title {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hsl-single-meta {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.hsl-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E4002B;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    margin-bottom: 40px;
    font-size: 15px;
}

.hsl-map-btn:hover {
    background: #cc0025;
    color: #fff;
}

.hsl-single-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.hsl-info-item {
    text-align: left;
}

.hsl-info-label {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

.hsl-info-value {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    font-weight: 400;
}

.hsl-info-value.hsl-align-center {
    align-items: center;
}

.hsl-info-value .hsl-icon {
    width: 20px;
    display: flex;
    justify-content: center;
    padding-top: 2px;
    color: #333;
}

.hsl-info-value a {
    color: #444;
    text-decoration: none;
}

.hsl-single-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: 12px;
}

.hsl-single-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hsl-random-stores-section {
    margin-bottom: 40px;
}

.hsl-back-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.hsl-back-btn:hover {
    border-color: #333;
    background: #f9f9f9;
    color: #000;
}

/* Make cards clickable */
.hsl-card {
    cursor: pointer;
}

.hsl-view-all-wrapper {
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Responsive adjustments for simple view */
@media (max-width: 900px) {
    .hsl-single-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hsl-single-title {
        font-size: 32px;
    }

    .hsl-single-info-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hsl-single-header-content {
        align-items: center;
        /* Keep header centered? Screenshot didn't show header, but usually headers are centered. */
    }

    .hsl-info-item {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hsl-single-banner {
        height: 300px;
    }

    .hsl-single-header {
        padding: 36px 0;
    }


}

/* Skeleton Loader */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hsl-skeleton-base {
    background: #e0e0e0;
    background-image: linear-gradient(90deg, #e0e0e0 25%, #f4f4f4 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.hsl-skeleton-card {
    pointer-events: none;
}

.hsl-skeleton-card .hsl-card-image {
    background: #e0e0e0;
    background-image: linear-gradient(90deg, #e0e0e0 25%, #f4f4f4 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.hsl-skeleton-pill {
    width: 80px;
    height: 26px;
    /* Matches .hsl-city-pill roughly */
    border-radius: 50px;
}

.hsl-skeleton-text-sm {
    height: 14px;
    margin-bottom: 6px;
}

.hsl-skeleton-title {
    height: 22px;
    margin-bottom: 10px;
    width: 70%;
}

.hsl-skeleton-footer {
    height: 14px;
    width: 50%;
    margin-top: 15px;
}