/* ============================================================
   Office Manager — Frontend Styles
   Desktop: Tab bar + card rows
   Mobile (≤768px): Dropdown + accordion
   ============================================================ */

/* ── Reset & Base ── */
.lo-offices-wrap {
    font-family: "Montserrat", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    color: #2C2C32;
    /* --color-text-dark from style.css */
    line-height: 1.6;
}

.lo-offices-wrap *,
.lo-offices-wrap *::before,
.lo-offices-wrap *::after {
    box-sizing: border-box;
}

/* ── Tab Bar (Desktop) ── */
.lo-tabs-bar {
    display: flex;
    justify-content: flex-start;
    /* Ensure left alignment */
    align-items: flex-start;
    gap: 40px;
    border-bottom: none;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .lo-tabs-bar {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: calc(50vw - 50% + 60px);
        padding-right: calc(50vw - 50% + 60px);
    }
}

.lo-tab {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    padding: 12px 0;
    width: auto !important;
    /* Force width to match content */
    flex: 0 0 auto !important;
    /* Prevent stretching */
    font-size: 16px;
    font-weight: 700;
    color: #707070;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
    text-transform: capitalize;
    outline: none !important;
    box-shadow: none !important;
    text-align: left;
}

.lo-tab:hover,
.lo-tab:active,
.lo-tab:focus {
    background: transparent !important;
    background-color: transparent !important;
}

.lo-tab--active {
    color: #0A4480 !important;
}

.lo-tab--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: #0A4480;
}

/* ── Mobile Dropdown ── */
.lo-mobile-select-wrap {
    display: none;
    /* shown on mobile */
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.lo-select-outer {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.lo-mobile-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #F7F7F7;
    border: 1px solid #CBCBCB;
    border-radius: 15px;
    padding: 10px 40px 10px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #0A4480;
    cursor: pointer;
    font-family: "aktiv-grotesk-extended", sans-serif !important;
    line-height: normal;
}

.lo-mobile-select:focus {
    outline: none;
    border-color: #0A52B9;
    box-shadow: 0 0 0 3px rgba(10, 82, 185, 0.1);
}

.lo-select-icon {
    flex-shrink: 0;
    color: #2C2C32;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.lo-select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #2C2C32;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ── Panels ── */
.lo-panel {
    display: none;
}

.lo-panel--active {
    display: block;
    background-color: #FFFFFF !important;
    padding: 20px 0px 40px 0px;
}

@media (min-width: 769px) {
    .lo-panel--active {
        background-color: #F2F2F2 !important;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: calc(50vw - 50% + 60px);
        /* Aligning with theme padding 60px */
        padding-right: calc(50vw - 50% + 60px);
        /* Blue bar from screenshot */
    }
}

.lo-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
}

/* ═══════════════════════════════════════════
   DESKTOP: Office Card Rows
   ═══════════════════════════════════════════ */
.lo-office-card {
    border-bottom: 1px solid #dcdcdc;
    /* Subtle separator on gray bg */
    padding: 40px 0;
}

.lo-office-card--last {
    border-bottom: none !important;
}

.lo-office-name {
    font-family: "aktiv-grotesk-extended", sans-serif !important;
    font-size: 18px;
    font-weight: 800;
    /* h6 / buttons style from style.css */
    color: #0A4480;
    /* slightly deeper blue for headers */
    line-height: 1.3;
}

/* Overriding the color slightly to match the bold blue links in the screenshot */
.lo-office-name,
.lo-contact-name {
    color: #0A4480;
}

.lo-office-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.4fr;
    gap: 24px;
}

/* ── Field Labels ── */
.lo-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.lo-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lo-label {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A4480;
}

/* ── Address Column ── */
.lo-address-text {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2C2C32;
    margin: 4px 0 10px 25px;
    /* 20px to align under 'Address' text */
    line-height: 1.5;
    text-align: left;
}

.lo-maps-link {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0A4480;
    text-decoration: underline;
    margin: 17px 0 17px 20px;
    /* Consistent alignment */
    transition: color 0.2s;
}

.lo-maps-link:hover {
    color: #002270;
}

/* ── Phone Column ── */
.lo-phone-text {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2C2C32;
    margin: 4px 0 0 23px;
    /* 23px to align under 'Tel. No' text */
    line-height: 1.5;
    text-align: left;
}

/* ── Contact Column ── */
.lo-contact-block {
    margin-bottom: 14px;
}

.lo-contact-block:last-child {
    margin-bottom: 0;
}

.lo-contact-block--subsequent {
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.lo-contact-name,
.lo-contact-title {
    font-family: "Montserrat", sans-serif;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0A4480;
    margin: 0 0 2px 0;
    line-height: 1.4;
}

/* .lo-contact-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #2C2C32;
    font-size: 13px;
} */

.lo-contact-phone {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #2C2C32;
    margin: 2px 0;
}

.lo-contact-email {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #2C2C32;
    margin: 2px 0;
    word-break: break-all;
}


/* ═══════════════════════════════════════════
   MOBILE: Accordion
   ═══════════════════════════════════════════ */
.lo-accordion-item {
    display: none;
    /* hidden on desktop, shown on mobile */
}

.lo-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 4px;
    cursor: pointer;
    text-align: left;
    font-family: "aktiv-grotesk-extended", sans-serif !important;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

.lo-accordion-trigger:hover,
.lo-accordion-trigger:active,
.lo-accordion-trigger:focus {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.lo-accordion-title {
    font-size: 15px;
    font-weight: 700;
    color: #0A52B9;
    line-height: 1.35;
    flex: 1;
    padding-right: 10px;
}

.lo-accordion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A52B9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lo-accordion-item.lo-accordion--open .lo-accordion-arrow {
    transform: rotate(90deg);
}

.lo-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
}

.lo-accordion-item.lo-accordion--open .lo-accordion-content {
    max-height: 1200px;
    padding: 16px 4px 20px;
}

/* Accordion inner fields */
.lo-acc-field {
    margin-bottom: 12px;
}

.lo-acc-field-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lo-acc-field-header .lo-label {
    font-size: 13px;
}

.lo-acc-field p {
    font-family: "Montserrat", sans-serif;
    color: #2C2C32;
    margin: 0 0 0 22px;
    line-height: 1.55;
    font-weight: 500 !important;
}

.lo-acc-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.lo-acc-contact .lo-contact-name {
    font-size: 13.5px;
}

.lo-acc-contact .lo-contact-title {
    font-size: 12.5px;
}

.lo-acc-contact .lo-contact-phone,
.lo-acc-contact .lo-contact-email {
    font-size: 12.5px;
}

.lo-acc-contact .lo-maps-link {
    font-size: 12.5px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINT: ≤768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop elements */
    .lo-tabs-bar {
        display: none;
    }

    .lo-office-card {
        display: none;
    }

    /* Show mobile elements */
    .lo-mobile-select-wrap {
        display: flex !important;
    }

    .lo-accordion-item {
        display: block;
    }
}

/* ── Desktop only: hide mobile elements ── */
@media (min-width: 769px) {
    .lo-mobile-select-wrap {
        display: none;
    }

    .lo-accordion-item {
        display: none;
    }

    .lo-office-card {
        display: block;
    }
}