/* ==========================================================
   MOIT - Branches Offices Page
   ========================================================== */

.moit-branches-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================
   Intro
   ========================================================== */

.moit-branches-intro {
    margin-bottom: 2rem;
}

.moit-branches-intro__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.moit-branches-intro__description {
    margin: 0;
    font-size: 1.15rem;
    line-height: 2;
    color: #3f3f46;
}

/* ==========================================================
   Statistics
   ========================================================== */

.moit-branches-stats {
    margin-bottom: 2rem;
}

.moit-branches-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.moit-branches-stat-card {
    background: #ffffff;
    border: 1px solid #d9e6e3;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all .25s ease;
}

.moit-branches-stat-card:hover {
    border-color: #0c9b8f;
    transform: translateY(-3px);
}

.moit-branches-stat-card__icon {
    display: block;
    margin-bottom: .5rem;
    color: #0c9b8f;
    font-size: 1.15rem;
}

.moit-branches-stat-card__value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #0c9b8f;
}

.moit-branches-stat-card__label {
    display: block;
    margin-top: .65rem;
    font-size: .95rem;
    color: #555;
}

/* ==========================================================
   Search
   ========================================================== */

.moit-branches-search {
    margin-bottom: 2rem;
}

.moit-branches-search__wrapper {
    max-width: 100%;
}

.moit-branches-search__box {
    position: relative;
}

.moit-branches-search__box i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #0c9b8f;
}

.moit-branches-search__input {
    width: 100%;
    height: 58px;
    border: 1px solid #d9e6e3;
    border-radius: 14px;
    background: #fff;
    padding: 0 55px 0 20px;
    font-size: 1rem;
    transition: all .25s ease;
}

.moit-branches-search__input:focus {
    outline: none;
    border-color: #0c9b8f;
    box-shadow: 0 0 0 4px rgba(12,155,143,.12);
}

/* ==========================================================
   Offices
   ========================================================== */

.moit-branches-offices {
    margin-top: 2rem;
}

.moit-branches-office {
    background: #fff;
    border: 1px solid #d9e6e3;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all .25s ease;
}

.moit-branches-office:hover {
    border-color: #0c9b8f;
}

.moit-branches-office.is-open {
    border-color: #0c9b8f;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

/* ==========================================================
   Accordion Header
   ========================================================== */

.moit-branches-office__header {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
}

.moit-branches-office__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.moit-branches-office__marker {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c9b8f;
    font-size: 1rem;
    font-weight: 700;
}

.moit-branches-office__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
}

.moit-branches-office__subtitle {
    display: block;
    margin-top: .25rem;
    font-size: .9rem;
    color: #6b7280;
}

.moit-branches-office__toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c9b8f;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==========================================================
   Content
   ========================================================== */

.moit-branches-office__content {
    border-top: 1px solid #eef3f2;
    padding: 1.75rem;
}

.moit-branches-office__grid {
    display: block;
}

.moit-branches-office__info {
    width: 100%;
}

/* ==========================================================
   Fields
   ========================================================== */

.moit-branches-office__field {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef3f2;
}

.moit-branches-office__field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.moit-branches-office__label {
    margin-bottom: .5rem;
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.moit-branches-office__field p {
    margin: 0;
    line-height: 1.9;
    color: #4b5563;
}

.moit-branches-office__services {
    margin: 0;
    padding-right: 1.25rem;
}

.moit-branches-office__services li {
    margin-bottom: .5rem;
    color: #4b5563;
}

/* ==========================================================
   Map
   ========================================================== */

.moit-branches-office__map {
    margin-top: 2rem;
}

.moit-branches-office__map-inner {
    min-height: 220px;
    border: 2px dashed #cfdedb;
    border-radius: 16px;
    background: #f9fcfb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #0c9b8f;
    gap: .75rem;
    padding: 2rem;
}

.moit-branches-office__map-inner span {
    color: #6b7280;
}

/* ==========================================================
   Closing Note
   ========================================================== */

.moit-branches-note {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f9fcfb;
    border: 1px solid #d9e6e3;
}

.moit-branches-note__title {
    margin: 0 0 .75rem;
    color: #0c9b8f;
    font-size: 1rem;
    font-weight: 700;
}

.moit-branches-note__text {
    margin: 0;
    line-height: 1.9;
    color: #4b5563;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .moit-branches-stats__grid {
        grid-template-columns: 1fr;
    }

    .moit-branches-office__header {
        padding: 1rem;
    }

    .moit-branches-office__title {
        font-size: 1.15rem;
    }

    .moit-branches-office__content {
        padding: 1.25rem;
    }

}


/* ==========================================================
   V2 - Office Sections
   ========================================================== */

.moit-branches-office__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.moit-branches-office__section {
    background: #ffffff;
    border: 1px solid #e5eceb;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.moit-branches-office__section-title {
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e7efed;
    color: #0c9b8f;
    font-size: 1.15rem;
    font-weight: 700;
}

/* ==========================================================
   Contact Fields
   ========================================================== */

.moit-branches-office__field:last-child {
    margin-bottom: 0;
}

.moit-branches-office__label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;

    margin-bottom: .5rem;

    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.moit-branches-office__label svg,
.moit-branches-office__label i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #0c9b8f;
}

.moit-branches-office__field p {
    color: #4b5563;
    margin: 0;
    line-height: 1.9;
}

/* ==========================================================
   Service Tags
   ========================================================== */

.moit-branches-office__service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.moit-branches-office__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem 1rem;
    background: #eaf8f6;
    color: #0c9b8f;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid #d4efea;
}

/* ==========================================================
   Map Placeholder
   ========================================================== */

.moit-branches-office__map {
    margin-top: 0;
}

.moit-branches-office__map-inner {
    min-height: 260px;
    border: 2px dashed #cfe5e1;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #f8fcfb 0%,
            #eef8f6 100%
        );
}

.moit-branches-office__map-inner span {
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================
   Accordion Toggle
   ========================================================== */

.moit-branches-office__toggle {
    position: relative;
    font-size: 0;
}

.moit-branches-office__toggle::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.moit-branches-office.is-open
.moit-branches-office__toggle::before {
    content: '−';
}

/* ==========================================================
   Marker Placeholder
   ========================================================== */

.moit-branches-office__marker {
    position: relative;
}

.moit-branches-office__marker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0c9b8f;
    display: block;
    box-shadow: 0 0 0 6px rgba(12,155,143,.12);
}

/* ==========================================================
   Search Improvements
   ========================================================== */

.moit-branches-search__input {
    text-align: right;
}

.moit-branches-search__input::placeholder {
    color: #8b98a5;
}

/* ==========================================================
   Closing Note
   ========================================================== */

.moit-branches-note {
    margin-top: 2rem;
}

.moit-branches-note__title {
    font-size: 1.1rem;
}

.moit-branches-note__text {
    font-size: .95rem;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .moit-branches-office__section {
        padding: 1rem;
    }

    .moit-branches-office__service-tags {
        gap: .5rem;
    }

}


/* ==========================================================
   Office Content Width Fix
   ========================================================== */

.moit-branches-office__content {
    max-width: 100%;
}

.moit-branches-office__section {
    width: 100%;
}

.moit-branches-office__section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.moit-branches-office__service-tags {
    margin-top: .5rem;
}

.moit-branches-office__map-inner {
    min-height: 320px;
}

/* ==========================================================
   Accordion Header Polish
   ========================================================== */

.moit-branches-office__header {
    transition: all .25s ease;
}

.moit-branches-office.is-open .moit-branches-office__header {
    background: #fbfefe;
}

.moit-branches-office__subtitle {
    color: #7b8794;
}


/* ==========================================================
   Contact Icons
   ========================================================== */

.moit-branches-office__label {
    display:flex;
    align-items:center;
    gap:.6rem;
}

.moit-branches-office__label .icon {
    width:18px;
    height:18px;
    flex-shrink:0;
    border-radius:50%;
    background:#0c9b8f;
    opacity:.15;
}

/* ==========================================================
   Office Image
   ========================================================== */

.moit-branches-office__contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.moit-branches-office__image-placeholder {
    height: 240px;
    border-radius: 14px;
    border: 2px dashed #d7e7e3;
    background: #f8fcfb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b8794;
    font-size: .95rem;
}

@media (max-width: 768px) {

    .moit-branches-office__contact-layout {
        grid-template-columns: 1fr;
    }

}

.moit-branches-office__status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: #eaf8f6;
    color: #0c9b8f;
    font-size: .8rem;
    font-weight: 600;
}

.moit-branches-office__status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0c9b8f;
}

.moit-branches-office__updated {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef3f2;
    color: #6b7280;
    font-size: .85rem;
}


.moit-branches-office__status--active {
    background: #eaf8f6;
    color: #0c9b8f;
}

.moit-branches-office__status--pending {
    background: #fff8e6;
    color: #b58105;
}