.office-search-section {
    padding: 40px 0;
    text-align: left;
}

.office-title {
    color: #1D4656;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.office-search-box {
    background: #F7F7F7;
    border-radius: 24px;
    padding: 12px 16px;
    gap: 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.office-search-clear {
    display: none;
}

.office-search-box .office-search-clear {
    color: #71717180;
}

.office-search-icon {
    color: #50C3CB;
    font-size: 22px;
}

.office-search-divider {
    width: 2px;
    height: 30px;
    background: #E8E8E8;
}

.office-search-input {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    background: transparent;
    font-weight: 400;
    word-wrap: break-word
}

.office-search-input::placeholder {
    color: #717171;
}

.office-search-input:focus {
    background: transparent;
}

.office-search-box:focus-within {
    border-color: #50C3CB;
}

.office-location {
    gap: 8px;
    padding: 10px 16px;
}

.office-location-item .office-location:hover {
    background-color: #F7F7F7;
}

.office-location-icon {
    width: 24px;
    height: 24px;
}

.office-location-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #3E3A39;
}

/* Custom gap 18px untuk location list */
.office-location-list {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

/* Mobile: Horizontal scroll */
@media (max-width: 991.98px) {
    .office-search-section {
        padding-bottom: 0;
    }

    .office-location-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 18px !important;
        padding-bottom: 10px;
        padding-left: 0 !important;
        padding-right: 16px;
        margin-left: -16px;
        margin-right: 0 !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Hide scrollbar for Chrome, Safari */
    .office-location-list::-webkit-scrollbar {
        display: none;
    }

    .office-location-list .col-6,
    .office-location-list .col-md-4,
    .office-location-list .col-lg-2 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.office-location-item {
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.office-location-item .office-location {
    padding: 8px 12px;
    border-radius: 36px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.office-location-item .office-location-close {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #717171;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    will-change: opacity;
}

.office-location-item.active .office-location {
    background: #77CCD1;
    color: white;
}

.office-location-item.active .office-location-text {
    color: white;
}

.office-location-item.active .office-location-close {
    opacity: 1;
    visibility: visible;
    color: rgba(255, 255, 255, 0.7);
}

.office-location-item.active .office-location-close:hover {
    color: white;
}

.office-card-section {
    padding: 20px 0;
}

.office-card {
    border: 1px solid #E8E8E8;
    border-radius: 24px;
    overflow: visible;
    background: #fff;
    padding-bottom: 18px;
    height: 100%;
    text-align: left;
    position: relative;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    background-color: #77CCD11A;
    border: 1px solid #50C3CB80;
}

.office-card:hover .office-contact {
    background-color: white;
}

.office-card:hover .office-card-image {
    position: unset;
}

.office-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 120px;
    position: relative;
    overflow: visible;
}

.office-card-info {
    padding: 18px 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 103px;
    justify-content: flex-end;
}

.office-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(119, 204, 209, 0.1);
    padding: 4px 8px;
    border-radius: 64px;
    font-size: 12px;
    font-family: Lato;
    color: #1D4656;
}

.office-badge img {
    width: 16px;
}

.office-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 45px;
}

.office-brand {
    font-family: 'Lato';
    font-size: 14px;
}

.office-brand a {
    color: #3E3A39;
}

.office-name {
    font-family: 'Lato';
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.office-card-image {
    width: 148px;
    height: 148px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
    position: absolute;
    top: -25px;
    right: 0px;
    z-index: 10;
}

.office-card-image-logo {
    object-fit: cover;
    position: absolute;
    width: 120px;
    height: 120px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
    right: 0;
    top: 0;
}

.office-card-image-building {
    opacity: 1;
}

.office-card-image-logo {
    opacity: 0;
}

.office-card:hover .office-card-image-building {
    opacity: 0;
}

.office-card:hover .office-card-image-logo {
    opacity: 1;
}

.office-card:hover .office-card-image {
    width: 120px;
}

.office-card-body {
    padding: 0 16px;
}

.office-contact {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 106px;
    justify-content: space-between;
}

.office-address,
.office-phone {
    display: flex;
    gap: 6px;
    color: #717171;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.office-address a,
.office-phone a {
    color: #717171;
}

.office-address img {
    height: fit-content;
}

.office-address span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: normal;
}

.office-point-badge {
    display: flex;
    padding: 4px 8px;
    margin: 6px 16px 6px auto;
    background: rgba(119, 204, 209, 0.10);
    border-radius: 64px;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    width: fit-content;
    z-index: 999;
    position: relative;
}

.office-point-badge.empty-point {
    background: transparent;
    padding: 0;
    margin: 0;
    min-height: 26px;
}

.office-point-badge-text {
    color: #1D4656;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

/* Pagination Styles */
.pagination-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
}

.pagination-showing {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

.pagination-showing-text {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.pagination-showing-number {
    color: #EE4733;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    word-wrap: break-word;
}

.pagination-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
}

.pagination-btn-arrow {
    padding: 11px;
    background: transparent;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn-arrow:hover:not(.disabled) {
    background: #77CCD126;
}

.pagination-btn-arrow.disabled {
    background: #F7F7F7;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn-arrow.disabled i {
    color: #717171;
}

.pagination-arrow-icon {
    width: 18px;
    height: 18px;
    position: relative;
}

.pagination-arrow-icon i {
    width: 18px;
    height: 18px;
    position: relative;
    color: #1C1B1F;
}

.pagination-arrow-bg {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 0;
    background: #D9D9D9;
}

.pagination-numbers {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.pagination-btn-number {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn-number:hover:not(.active):not(:disabled) {
    background: #77CCD126;
}

.pagination-btn-number.active {
    background: #77CCD1;
    color: white;
    font-weight: 700;
}

.pagination-btn-number:disabled {
    cursor: default;
}

.pagination-go-to {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
}

.pagination-go-to-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.pagination-go-to-text {
    color: #717171;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

.pagination-go-to-input {
    width: 60px;
    padding: 10px;
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    text-align: center;
    color: #3E3A39;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.pagination-go-to-input:hover,
.pagination-go-to-input:focus {
    border: 1px solid #50C3CB;
}

/* responsive */
@media (max-width: 768px) {
    .office-title {
        font-size: 24px;
    }

    .office-card-section {
        padding: 20px;
    }

    .pagination-wrapper {
        justify-content: center;
        padding: 40px 0 20px;
        flex-direction: column;
        width: 100%;
    }

    .pagination-showing {
        display: none !important;
    }

    .pagination-go-to {
        display: none !important;
    }

    .pagination-controls {
        justify-content: center !important;
        width: 100%;
        flex-wrap: wrap;
    }

    .office-contact {
        min-height: 90px;
    }
}