.breadcrumb {
    position: relative;
    z-index: 1;
    padding-top: 300px;
    padding-bottom: 40px;
    background-image: url('/assets/img/background/contact.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.breadcrumb::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.5);
    content: "";
}

.breadcrumb h1 {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    color: #dadada;
    font-size: 50px;
    font-weight: 800;
}

.locations-section {
    position: relative;
    z-index: 10;
    width: min(1020px, calc(100% - 40px));
    box-sizing: border-box;
    margin: -40px auto 80px;
    padding: 50px 60px 60px;
    border-radius: 12px;
    background-color: #f5f7fa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    color: #202936;
}

.locations-section::before {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
    background: url('/assets/img/background/small_logo.webp') no-repeat center;
    background-size: 200px;
    content: "";
    filter: blur(1px);
    opacity: 0.1;
    pointer-events: none;
}

.locations-section > * {
    position: relative;
    z-index: 1;
}

.office-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
    border-bottom: 1px solid #dce1e7;
}

.office-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    gap: 9px;
    padding: 10px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #667080;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.office-tab:hover {
    color: #17365f;
}

.office-tab:focus-visible {
    outline: 2px solid #2e6aa6;
    outline-offset: 2px;
}

.office-tab.active {
    border-bottom-color: #17365f;
    color: #17365f;
}

.office-panel[hidden] {
    display: none;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.office-grid.single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
}

.dealer-grid {
    margin-top: 18px;
}

.office-card {
    display: flex;
    min-width: 0;
    min-height: 350px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid #dfe3e8;
    border-top: 3px solid #204198;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 47, 66, 0.04);
}

.office-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f3;
}

.office-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3fb;
    color: #204198;
    font-size: 17px;
}

.office-type {
    display: block;
    margin-bottom: 3px;
    color: #788392;
    font-size: 11px;
    font-weight: 700;
}

.office-card h2 {
    margin: 0;
    color: #172a46;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.office-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0;
}

.office-details > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
}

.office-details dt {
    color: #204198;
    font-size: 14px;
    line-height: 1.6;
}

.office-details dd {
    min-width: 0;
    color: #414c59;
    font-size: 14px;
    line-height: 1.65;
}

.office-details a {
    color: #245b8f;
    text-decoration: none;
}

.office-details a:hover {
    text-decoration: underline;
}

.email-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.email-links a {
    overflow-wrap: anywhere;
}

.map-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    color: #17365f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.map-link .fa-external-link-alt {
    font-size: 10px;
}

.map-link:hover {
    color: #204198;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .breadcrumb {
        padding-top: 150px;
        padding-bottom: 50px;
    }

    .breadcrumb h1 {
        font-size: 32px;
    }

    .locations-section {
        width: 100%;
        margin: -40px auto 60px;
        padding: 40px 20px 44px;
    }

    .locations-section::before {
        width: 150px;
        height: 150px;
        background-size: 150px;
    }

    .office-tabs {
        gap: 0;
    }

    .office-tab {
        min-width: 0;
        flex: 1;
        padding: 10px 8px;
        font-size: 14px;
    }

    .office-grid,
    .office-grid.single {
        grid-template-columns: minmax(0, 1fr);
    }


    .office-card {
        min-height: 0;
        padding: 22px 20px;
    }

    .office-details dd {
        font-size: 13px;
    }
}

/* Mobile watermark removal */
@media screen and (max-width: 768px) {
  .locations-section::before {
    display: none;
    content: none;
  }
}
