/* =========================================================
   VERITAS ASSURANCE - GLOBAL CERTIFICATION LOCATIONS
   Premium compact country > region > city directory
   ========================================================= */

.site-locations {
    position: relative;
    padding: 54px 0 32px;
    background: #f5f8fb;
    border-top: 1px solid #e3eaf1;
    color: #172b46;
}

.site-locations *,
.site-locations *::before,
.site-locations *::after {
    box-sizing: border-box;
}

.site-locations .va-container {
    position: relative;
    width: 100%;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.site-locations__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
    text-align: center;
}

.site-locations__heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.site-locations__heading--centered {
    text-align: center;
}

.site-locations__heading--centered .va-label {
    display: block;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
}

.site-locations__heading--centered p {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.site-locations__heading .va-label {
    display: inline-block;
    margin-bottom: 8px;
}

.site-locations__heading h2 {
    margin: 0 0 9px;
    color: #172b46;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.site-locations__heading p {
    max-width: 760px;
    margin: 0;
    color: #64758a;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   SUMMARY
   --------------------------------------------------------- */

.site-locations__stats {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    align-self: center;
    overflow: hidden;
    border: 1px solid #dce5ee;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 42, 70, .06);
}

.site-locations__stats > div {
    min-width: 82px;
    padding: 10px 14px;
    text-align: center;
    border-right: 1px solid #e5ebf1;
}

.site-locations__stats > div:last-child {
    border-right: 0;
}

.site-locations__stats strong,
.site-locations__stats span {
    display: block;
}

.site-locations__stats strong {
    color: #173c70;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.site-locations__stats span {
    margin-top: 5px;
    color: #7a8b9e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   COUNTRY SWITCHER
   --------------------------------------------------------- */

.site-locations__country-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid #dce5ee;
    background: #fff;
    box-shadow: 0 8px 25px rgba(17, 42, 70, .055);
}

.site-location-country-tab {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 46px;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    outline: 0;
    background: transparent;
    color: #53677e;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.site-location-country-tab:hover {
    border-color: #d5e2eb;
    background: #f5f9fc;
    color: #18395f;
}

.site-location-country-tab:focus-visible {
    border-color: #3da8c7;
    box-shadow: 0 0 0 3px rgba(61, 168, 199, .16);
}

.site-location-country-tab.is-active {
    border-color: #2c77a1;
    background: linear-gradient(110deg, #173e73 0%, #3facc7 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(24, 67, 111, .16);
}

.site-location-country-tab__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 37px;
    height: 27px;
    border: 1px solid #dce6ef;
    background: #f5f8fb;
    color: #34769a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1;
}

.site-location-country-tab.is-active .site-location-country-tab__code {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
    color: #fff;
}

.site-location-country-tab__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-location-country-tab > i {
    flex: 0 0 auto;
    color: #8799aa;
    font-size: 10px;
    transition: transform .2s ease;
}

.site-location-country-tab.is-active > i {
    color: #fff;
    transform: rotate(180deg);
}

/* ---------------------------------------------------------
   COUNTRY PANEL
   --------------------------------------------------------- */

.site-locations__country-panel {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #dce5ee;
    background: #fff;
    box-shadow: 0 18px 45px rgba(17, 42, 70, .075);
}

.site-locations__country-panel[hidden],
.site-location-region-panel[hidden] {
    display: none;
}

/* ---------------------------------------------------------
   REGION LIST
   --------------------------------------------------------- */

.site-locations__region-list {
    padding: 8px;
    background: #f6f9fb;
    border-right: 1px solid #dfe7ee;
}

.site-location-region-tab {
    position: relative;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 14px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    gap: 8px;
    padding: 7px 9px;
    margin: 0 0 3px;
    border: 1px solid transparent;
    border-radius: 2px;
    outline: 0;
    background: transparent;
    color: #40566e;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.site-location-region-tab:last-child {
    margin-bottom: 0;
}

.site-location-region-tab:hover {
    border-color: #dbe5ed;
    background: #fff;
    color: #193b61;
}

.site-location-region-tab:focus-visible {
    border-color: #3da8c7;
    box-shadow: 0 0 0 3px rgba(61, 168, 199, .13);
}

.site-location-region-tab.is-active {
    border-color: #4aa9c6;
    background: linear-gradient(110deg, #173e73 0%, #3da8c7 100%);
    color: #fff;
    box-shadow: 0 7px 17px rgba(23, 62, 115, .13);
}

.site-location-region-tab__number {
    color: #3a90ae;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

.site-location-region-tab.is-active .site-location-region-tab__number {
    color: #d4af37;
}

.site-location-region-tab__content {
    min-width: 0;
}

.site-location-region-tab__content strong,
.site-location-region-tab__content small {
    display: block;
}

.site-location-region-tab__content strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-location-region-tab__content small {
    margin-top: 3px;
    color: #8a9bad;
    font-size: 9px;
    line-height: 1;
}

.site-location-region-tab.is-active .site-location-region-tab__content small {
    color: #d9e7ee;
}

.site-location-region-tab > i {
    color: #9badbc;
    font-size: 10px;
}

.site-location-region-tab.is-active > i {
    color: #d4af37;
}

/* ---------------------------------------------------------
   REGION CONTENT
   --------------------------------------------------------- */

.site-locations__region-content {
    min-width: 0;
    background: #fff;
}

.site-location-region-panel {
    height: 100%;
    padding: 24px 26px 26px;
}

.site-location-region-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e7edf2;
}

.site-location-region-panel__copy {
    min-width: 0;
}

.site-location-region-panel__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #4daecb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-location-region-panel h3 {
    margin: 0 0 7px;
    color: #18375d;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.site-location-region-panel__header p {
    max-width: 700px;
    margin: 0;
    color: #697b8f;
    font-size: 12px;
    line-height: 1.65;
}

.site-location-region-panel__link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 37px;
    padding: 8px 13px;
    border: 1px solid #d9e4eb;
    border-radius: 2px;
    background: #f8fafc;
    color: #214d78;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.site-location-region-panel__link:hover {
    border-color: #d4af37;
    background: #d4af37;
    color: #152e4d;
    transform: translateY(-1px);
}

.site-location-region-panel__link:focus-visible {
    border-color: #3da8c7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(61, 168, 199, .14);
}

.site-location-region-panel__link i {
    color: #4aa8c5;
}

.site-location-region-panel__link:hover i {
    color: #152e4d;
}

/* ---------------------------------------------------------
   CITY / AREA GRID
   --------------------------------------------------------- */

.site-location-cities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
}

.site-location-city {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 41px;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e0e8ef;
    border-radius: 2px;
    background: #fbfcfd;
    color: #263d57;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.site-location-city:hover {
    border-color: #9bcddd;
    background: #fff;
    color: #183d62;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(20, 52, 83, .06);
}

a.site-location-city:focus-visible {
    border-color: #3da8c7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(61, 168, 199, .13);
}

.site-location-city > i:first-child {
    flex: 0 0 auto;
    color: #4aa9c6;
    font-size: 11px;
}

.site-location-city span {
    flex: 1;
    min-width: 0;
}

.site-location-city > i:last-child {
    flex: 0 0 auto;
    color: #a0afbc;
    font-size: 9px;
}

.site-location-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed #d8e2ea;
    background: #fafcfd;
    color: #73869a;
    font-size: 11px;
    line-height: 1.5;
}

.site-location-empty i {
    color: #4aa9c6;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1050px) {
    .site-locations__header {
        display: block;
    }

   .site-locations__stats {
        width: fit-content;
        margin-top: 17px;
    }

    .site-locations__country-panel {
        grid-template-columns: 215px minmax(0, 1fr);
    }

    .site-location-cities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .site-locations {
        padding: 44px 0 28px;
    }

    .site-locations__country-bar {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .site-location-country-tab {
        flex: 0 0 178px;
    }

    .site-locations__country-panel {
        display: block;
        min-height: 0;
    }

    .site-locations__region-list {
        display: flex;
        gap: 6px;
        padding: 7px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #dfe7ee;
        scrollbar-width: thin;
    }

    .site-location-region-tab {
        flex: 0 0 155px;
        margin-bottom: 0;
    }

    .site-location-region-panel {
        padding: 21px;
    }

    .site-location-region-panel__header {
        display: block;
    }

    .site-location-region-panel__link {
        margin-top: 14px;
    }
}

@media (max-width: 540px) {
    .site-locations {
        padding: 38px 0 24px;
    }

    .site-locations__heading h2 {
        font-size: 29px;
    }

    .site-locations__heading p {
        font-size: 13px;
    }

   .site-locations__stats {
        width: 100%;
    }

    .site-locations__stats > div {
        flex: 1;
        min-width: 0;
        padding: 9px 6px;
    }

    .site-locations__country-bar {
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 12px;
        padding-left: 12px;
        border-right: 0;
        border-left: 0;
    }

    .site-location-country-tab {
        flex-basis: 155px;
    }

    .site-location-cities {
        grid-template-columns: 1fr;
    }

    .site-location-region-panel {
        padding: 18px 15px;
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .site-location-country-tab,
    .site-location-region-tab,
    .site-location-region-panel__link,
    .site-location-city {
        transition: none;
    }
}

/* ---------------------------------------------------------
   TOP INTRO ALIGNMENT
   --------------------------------------------------------- */
.site-locations__heading--centered h2,
.site-locations__heading--centered p {
    text-align: center;
}

.site-locations [hidden] {
    display: none !important;
}
