/* =========================================================
   LOCATIONS HERO
========================================================= */
.locations-hero {
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef5ff 100%
        );
    border-bottom: 1px solid var(--border);
    padding: 75px 0 65px;
}
.locations-hero-inner {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}
.locations-hero .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}
.locations-hero h1 {
    margin: 0;
    color: var(--dark);
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}
.locations-hero p {
    max-width: 650px;
    margin: 18px auto 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
/* =========================================================
   LOCATION SEARCH
========================================================= */
.location-search-box {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: 0.2s ease;
}
.location-search-box:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(11, 99, 246, 0.10);
}
.location-search-box i {
    color: var(--muted);
    font-size: 18px;
    margin-right: 12px;
}
.location-search-box input {
    width: 100%;
    height: 58px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dark);
    font-size: 15px;
    font-family: inherit;
}
.location-search-box input::placeholder {
    color: #98a2b3;
}
/* =========================================================
   LOCATION STATS
========================================================= */
.location-stats-section {
    padding: 28px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.location-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
}
.location-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}
.location-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 19px;
}
.location-stat strong {
    display: block;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}
.location-stat span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}
/* =========================================================
   MAIN
========================================================= */
.locations-main {
    padding: 70px 0;
}
.locations-main .container {
    max-width: var(--container);
}
/* =========================================================
   SECTION HEADING
========================================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}
.section-heading .section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}
.section-heading h2 {
    margin: 0;
    color: var(--dark);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.location-count-label {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 5px;
}
/* =========================================================
   POPULAR LOCATIONS
========================================================= */
.popular-locations-section {
    margin-bottom: 75px;
}
.popular-locations-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.popular-location-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.popular-location-card:hover {
    transform: translateY(-3px);
    border-color: #c9d9f5;
    box-shadow: var(--shadow);
}
.popular-location-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 18px;
}
.popular-location-content {
    min-width: 0;
    flex: 1;
}
.popular-location-content h3 {
    margin: 0 0 5px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-location-content span {
    color: var(--muted);
    font-size: 13px;
}
.location-arrow {
    color: #98a2b3;
    font-size: 13px;
    transition: transform 0.2s ease;
}
.popular-location-card:hover .location-arrow {
    color: var(--primary);
    transform: translateX(3px);
}
/* =========================================================
   ALL LOCATIONS
========================================================= */
.all-locations-section {
    margin-bottom: 20px;
}
.locations-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;
}
.location-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.location-card:hover {
    transform: translateY(-2px);
    border-color: #c9d9f5;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.07);
}
.location-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f9ff;
    color: var(--primary);
    border-radius: 10px;
    font-size: 15px;
}
.location-card-content {
    min-width: 0;
    flex: 1;
}
.location-card-content h3 {
    margin: 0 0 5px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-card-content p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.job-number {
    color: var(--primary);
    font-weight: 700;
}
.location-card-arrow {
    flex-shrink: 0;
    color: #98a2b3;
    font-size: 11px;
    transition: 0.2s ease;
}
.location-card:hover .location-card-arrow {
    color: var(--primary);
    transform: translateX(2px);
}
/* =========================================================
   EMPTY STATE
========================================================= */
.location-empty {
    text-align: center;
    padding: 65px 20px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.location-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f9ff;
    color: var(--primary);
    font-size: 24px;
}
.location-empty h3 {
    margin: 0 0 7px;
    color: var(--dark);
    font-size: 19px;
}
.location-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
/* =========================================================
   ERROR
========================================================= */
.location-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 18px;
    border-radius: 10px;
    background: #fff4f4;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 14px;
}
/* =========================================================
   CTA
========================================================= */
.locations-cta {
    padding: 0 0 70px;
}
.locations-cta-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 35px 40px;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #f1f6ff 0%,
            #eaf2ff 100%
        );
    border: 1px solid #dbe7fb;
}
.locations-cta-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--white);
    color: var(--primary);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.locations-cta-content {
    flex: 1;
}
.locations-cta-content h2 {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
}
.locations-cta-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1100px) {
    .locations-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
    .popular-locations-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 850px) {
    .locations-hero {
        padding: 55px 0 50px;
    }
    .locations-hero h1 {
        font-size: 38px;
    }
    .locations-hero p {
        font-size: 15px;
    }
    .location-stats {
        gap: 35px;
    }
    .locations-main {
        padding: 50px 0;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .section-heading h2 {
        font-size: 26px;
    }
    .location-count-label {
        padding-bottom: 0;
    }
    .locations-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
    .locations-cta-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 28px;
    }
    .locations-cta-content {
        width: calc(100% - 80px);
    }
    .locations-cta-inner .btn {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 600px) {
    .locations-hero {
        padding: 45px 0 40px;
    }
    .locations-hero h1 {
        font-size: 31px;
        letter-spacing: -0.5px;
    }
    .locations-hero p {
        font-size: 14px;
        line-height: 1.6;
    }
    .location-search-box {
        padding: 0 15px;
    }
    .location-search-box input {
        height: 52px;
        font-size: 14px;
    }
    .location-stats {
        justify-content: space-around;
        gap: 15px;
    }
    .location-stat {
        gap: 9px;
    }
    .location-stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 15px;
    }
    .location-stat strong {
        font-size: 18px;
    }
    .location-stat span {
        font-size: 11px;
    }
    .locations-main {
        padding: 40px 0;
    }
    .popular-locations-section {
        margin-bottom: 55px;
    }
    .popular-locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .location-card {
        padding: 16px;
    }
    .locations-cta {
        padding-bottom: 45px;
    }
    .locations-cta-inner {
        padding: 25px;
        gap: 15px;
    }
    .locations-cta-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .locations-cta-content {
        width: calc(100% - 65px);
    }
    .locations-cta-content h2 {
        font-size: 19px;
    }
    .locations-cta-content p {
        font-size: 13px;
    }
}
/* =========================================================
   VERY SMALL DEVICES
========================================================= */
@media (max-width: 400px) {
    .locations-hero h1 {
        font-size: 28px;
    }
    .location-stats {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    .location-stat {
        width: 100%;
    }
}