/* Region Maps Frontend Styling - Wrapped in .region-map-wrapper */

/* Frontend Map Styling */

.region-map-wrapper {
    font-family: 'Inter', sans-serif;
}

.region-map-wrapper .region-map,
.region-map-wrapper #region-map-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.region-map-wrapper #region-map-container {
    max-height: 825px;
}

.region-map-wrapper .region-map {
    position: relative;
}

.gm-style .gm-style-mtc ul,
.gm-style .gm-style-mtc li {
    min-width: 100%;
}

/* Map Container with Relative Positioning */
.region-map-wrapper .map-popup-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.expert-qualification {
    color: #002B46B2;
}

[dir="ltr"] .gm-style-mtc-bbw .gm-style-mtc:last-of-type>button {
    border-radius: 0 4px 4px 0 !important;
}

[dir="ltr"] .gm-style-mtc-bbw .gm-style-mtc:first-of-type>button {
    border-radius: 4px 0 0 4px !important;
    min-width: 103px !important;
}

[dir="ltr"] .gm-style-mtc-bbw .gm-style-mtc:first-of-type>button[aria-checked="true"],
[dir="ltr"] .gm-style-mtc-bbw .gm-style-mtc:last-of-type>button[aria-checked="true"] {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* RTL Styles for Google Maps Controls */
[dir="rtl"] .gm-style-mtc-bbw .gm-style-mtc:last-of-type>button {
    border-radius: 4px 0 0 4px !important;
}

[dir="rtl"] .gm-style-mtc-bbw .gm-style-mtc:first-of-type>button {
    border-radius: 0 4px 4px 0 !important;
    min-width: 103px !important;
}

[dir="rtl"] .gm-style-mtc-bbw .gm-style-mtc:first-of-type>button[aria-checked="true"],
[dir="rtl"] .gm-style-mtc-bbw .gm-style-mtc:last-of-type>button[aria-checked="true"] {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.expert-more-info-title {
    color: #002B46;
    font-size: 20px;
}

/* Ensure map containers have relative positioning */
.region-map-wrapper #region-map-container,
.region-map-wrapper .region-map {
    position: relative !important;
    z-index: 1;
}

/* Map controls */
.region-map-wrapper .gm-style-mtc button,
.region-map-wrapper .gm-svpc {
    border-radius: 4px !important;
}

/* Custom info windows */
.region-map-wrapper .gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    padding: 0 !important;
}

.region-map-wrapper .gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.region-map-wrapper .gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0) 100%) !important;
}

/* HTML Div Markers */
.region-map-wrapper .expert-count-marker {
    background: #00B5D3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 181, 211, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    position: absolute;
    transform: translate(-50%, -50%);
}

.region-map-wrapper .expert-count-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 181, 211, 1);
}

.region-map-wrapper .marker-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00B5D3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 181, 211, 0.8);
}

.region-map-wrapper .marker-number {
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 1;
}

/* Ensure Google Maps markers are properly centered */
.region-map-wrapper .gm-style img[src*="marker"] {
    transform: translate(-50%, -100%);
}

.region-map-wrapper.dealers-map-wrapper .gm-style img[src*="marker"] {
    transform: unset;
}


/* Custom marker styling for better visibility */
.region-map-wrapper .gm-style .gm-style-iw-c {
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Expert list in info window */
.region-map-wrapper .expert-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.region-map-wrapper .expert-list::-webkit-scrollbar {
    width: 6px;
}

.region-map-wrapper .expert-list::-webkit-scrollbar-track {
    background: transparent;
}

.region-map-wrapper .expert-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.region-map-wrapper .expert-list::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

/* Expert item styling */
.region-map-wrapper .expert-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.region-map-wrapper .expert-details {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.region-map-wrapper .expert-contact {
    margin-top: 5px;
}

.region-map-wrapper .expert-contact a {
    color: #0073aa;
    text-decoration: none;
}

.region-map-wrapper .expert-contact a:hover {
    text-decoration: underline;
}

/* Polygon hover effects */
.region-map-wrapper #polygon-hover-info {
    animation: fadeIn 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.region-map-wrapper #polygon-hover-info div {
    position: relative;
}

.region-map-wrapper #polygon-hover-info div::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Region Popup */
.region-map-wrapper .region-popup {
    position: absolute;
    background: white;
    /* border-radius: 12px; */
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    max-width: 400px;
    width: 90%;
    max-height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.region-map-wrapper h3.popup-title {
    text-align: center;
    margin: 0 auto;
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
    color: #002B46;
}

.region-map-wrapper.dealers-map-wrapper h3.popup-title {
    margin: unset !important;
    margin-right: auto;
    font-family: Inter;
    font-weight: 500;
    font-size: 18px;
    color: #002B4699;
}


.region-map-wrapper .popup-close {
    color: #002B46 !important;
    font-weight: 300 !important;
}



.region-map-wrapper.dealers-map-wrapper p.dealer-address {
    font-family: Inter;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--dark-blue, #002B46);
}

.region-map-wrapper.dealers-map-wrapper .popup-dealer-info {
    border-radius: 8px;
    border-width: 1px;
    padding: 24px;
    background: #F2FBFD;
    border: 1px solid #C2EDF5;
}

.region-map-wrapper.dealers-map-wrapper .rmd-contact-container a {
    justify-content: flex-start;
    align-items: flex-start !important;
}

.region-map-wrapper.dealers-map-wrapper .rmd-expert-more-info-contact-content {
    border-top: 1px solid #002B4612;
}



.region-map-wrapper.dealers-map-wrapper .dealer-distance {
    max-width: max-content;
    padding: 6px 12px;
    background: #C2EDF5;
    border-radius: 8px;
    font-family: Inter;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 16px;
    color: #002B46 !important;
}

/* Desktop: Slide from left */
@media (min-width: 769px) {
    .region-map-wrapper .region-popup {
        top: 0;
        left: -450px;
        /* Start off-screen to the left */
        transform: translateX(0);
        min-height: 100%;
    }

    .region-map-wrapper .region-popup.active {
        opacity: 1;
        visibility: visible;
        left: 0;
        /* Slide to visible position */
    }

    [dir="rtl"] .region-map-wrapper .region-popup.active {
        left: unset;
        right: 0;
    }
}

/* Mobile: Slide from bottom */
@media (max-width: 768px) {

    .region-map-wrapper.dealers-map-wrapper .rmd-contact-link {
        display: none;
    }

    .region-map-wrapper.dealers-map-wrapper .dealer-address-mobile {
        display: block;
    }

    .region-map-wrapper.dealers-map-wrapper .rmd-contact-container a {
        align-items: center !important;
    }

    .region-map-wrapper.dealers-map-wrapper .rmd-expert-more-info-contact-content {
        border-top: unset;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .region-map-wrapper .popup-close {
        position: absolute !important;
    }

    .region-map-wrapper .region-popup {
        bottom: -100vh;
        width: 100%;
        max-width: none;
        max-height: 70vh;
        min-height: 33vh;
    }

    [dir="rtl"] .region-map-wrapper h3.popup-title {
        position: relative;
        top: 1px;
    }

    .region-map-wrapper .region-popup.active {
        opacity: 1;
        visibility: visible;
        bottom: 0;
        /* Slide to visible position */
    }
}

.region-map-wrapper .popup-header {
    color: #002B4699;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.region-map-wrapper .popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #002B4699;
}

.region-map-wrapper .popup-close {
    background: none;
    border: none;
    color: #002B4699;
    font-size: 24px;
    cursor: pointer;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    position: relative;
    font-weight: 200;
    z-index: 10;
}

.region-map-wrapper .popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Desktop close button styling */
@media (min-width: 769px) {
    .region-map-wrapper .popup-close {
        font-size: 28px;
        width: 25px;
        height: 25px;
        position: absolute;
    }
}

.region-map-wrapper .contact-image {
    border: 50%;
    background-color: #00B5D3;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

.region-map-wrapper .expert-position-button {
    background-color: #007290;
    color: white;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 15px !important;
}

.region-map-wrapper .expert-image {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.region-map-wrapper .expert-more-info-contact-content {
    border-top: 1px solid #C3EDF5;
    margin-top: 12.5px;
    padding-top: 12.5px;
}

/* Add border-bottom to contact content when expanded info is visible (desktop only) */
@media (min-width: 769px) {
    /* .region-map-wrapper .expert-item.info-expanded .expert-more-info-contact-content {
        border-bottom: 1px solid #C3EDF5;
        padding-bottom: 12.5px;
        margin-bottom: 12.5px;
    } */
}

.region-map-wrapper .expert-more-info-region-container {
    border-bottom: 1px solid #C3EDF5;
    border-top: 1px solid #C3EDF5;
    padding: 12.5px 0;
    margin-bottom: 25px;
}

.region-map-wrapper .popup-content {
    padding: 20px;
    padding-top: 0;
    overflow-y: auto;
    flex: 1;
    height: 0;
}

/* Override global scrollbar hiding for popup content on desktop */
@media (min-width: 769px) {
    .region-map-wrapper.dealers-map-wrapper .popup-close {
        right: 20px;
    }

    .region-map-wrapper .popup-content {
        margin-right: 3px;
    }

    .region-map-wrapper .popup-content::-webkit-scrollbar {
        width: 8px;
        background: #f1f1f1;
    }

    .region-map-wrapper .popup-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .region-map-wrapper .popup-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

    .region-map-wrapper .popup-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

.region-map-wrapper .popup-summary {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.region-map-wrapper .popup-expert-count {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.region-map-wrapper .popup-expert-count strong {
    color: #00B5D3;
    font-size: 18px;
}

.region-map-wrapper .popup-experts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.region-map-wrapper .expert-item {
    padding: 20px;
    border: 1px solid #C2DEF5;
    border-radius: 8px;
    background: #F2FBFD;
    transition: all 0.2s;
}

/* Region Map Display (RMD) Expert Cards - Prefixed Classes */

/* Common RMD Classes */
.region-map-wrapper .rmd-expert-item {
    padding: 20px;
    border: 1px solid #C2DEF5;
    border-radius: 8px;
    background: #F2FBFD;
    transition: all 0.2s;
}

.region-map-wrapper .rmd-expert-item:hover {
    box-shadow: 0 4px 12px rgba(0, 181, 211, 0.15);
}

.region-map-wrapper .rmd-expert-position-button {
    background-color: #007290;
    color: white;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    width: fit-content;
}

.region-map-wrapper .rmd-expert-groups-container {
    margin-bottom: 8px;
}

.region-map-wrapper .rmd-expert-group-tag {
    background-color: #00B5D3;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

.region-map-wrapper .rmd-expert-name-title {
    color: #002B46;
    font-size: 24px;
    font-weight: 400;
}

.region-map-wrapper .rmd-expert-qualification {
    color: #002B46B2;
    font-size: 16px;
    font-weight: 400;
}

.region-map-wrapper .rmd-expert-img-container {
    flex-shrink: 0;
}

.region-map-wrapper .rmd-expert-image {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

/* RMD Desktop Layout */
.region-map-wrapper .rmd-expert-row {
    display: flex;
    flex-direction: column;
}

.region-map-wrapper .rmd-expert-row-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* .region-map-wrapper .rmd-expert-content {
    margin-top: 15px;
} */

.region-map-wrapper .rmd-expert-more-info-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #002B46;
    font-size: 14px;
    margin-top: 10px;
}

.region-map-wrapper .rmd-expert-more-info-link:hover {
    color: #00B5D3;
}

.region-map-wrapper .rmd-more-info-text {
    color: #002B46;
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
}

.region-map-wrapper .rmd-more-info-arrow {
    transition: transform 0.3s ease;
}

.region-map-wrapper .rmd-expert-item.rmd-info-expanded .rmd-more-info-arrow {
    transform: rotate(180deg);
}

/* .region-map-wrapper .rmd-expert-more-info-container {
    margin-top: 15px;
    border-top: 1px solid #C3EDF5;
    padding-top: 15px;
} */

.region-map-wrapper .rmd-expert-more-info-content {
    display: flex;
    flex-direction: column;
}

.region-map-wrapper .rmd-expert-more-info-title {
    color: #002B46;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.region-map-wrapper .rmd-expert-more-info-region-container {
    border-bottom: 1px solid #C3EDF5;
    border-top: 1px solid #C3EDF5;
    padding: 20px 0;
    margin-bottom: 25px;
}


.region-map-wrapper .rmd-expert-more-info-region-name {
    font-weight: 400;
    color: #002B46;
    font-size: 16px;
}

.region-map-wrapper .rmd-expert-more-info-provinces {
    color: #002B46B2;
    font-size: 14px;
}

.region-map-wrapper .rmd-expert-more-info-about-container {
    padding-bottom: 15px;
}

.region-map-wrapper .rmd-expert-more-info-about-content {
    color: #002B46;
    line-height: 1.6;
}

.region-map-wrapper .rmd-expert-more-info-contact-container {
    padding-top: 12.5px;
}

.region-map-wrapper .rmd-expert-more-info-contact-content {
    border-top: 1px solid #C3EDF5;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.region-map-wrapper .rmd-contact-container a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.region-map-wrapper .rmd-contact-container:hover a {
    color: #00B5D3;
}

.region-map-wrapper.dealers-map-wrapper .rmd-contact-link span {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}
@media (min-width: 768px) {
    .region-map-wrapper.dealers-map-wrapper .rmd-contact-link span {
        line-height: normal;
    }
}

.region-map-wrapper.dealers-map-wrapper .rmd-contact-link span svg{
    margin-right: 2px;
}

@media (max-width: 768px) {
    .region-map-wrapper.dealers-map-wrapper .rmd-contact-image {
        margin-top: 6px;
    }    
}

.region-map-wrapper .rmd-contact-image {
    border-radius: 50%;
    background-color: #00B5D3;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-map-wrapper .rmd-contact-image img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.region-map-wrapper .rmd-contact-title {
    font-weight: 700;
    position: relative;
    top: 4px;
    font-size: 14px;
    line-height: normal;
    margin-bottom: 2px;
    color: var(--dark-blue, #002B46);
}

@media (min-width: 768px) {
    .region-map-wrapper.dealers-map-wrapper .rmd-contact-title {
        top: 0;
    }
}

.region-map-wrapper .rmd-contact-link {
    font-size: 14px;
    color: #002B46B2;
}

.region-map-wrapper .rmd-expert-header-mobile {
    padding-bottom: 10px;
}

.region-map-wrapper .rmd-expert-image-mobile {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.region-map-wrapper .rmd-expert-name-mobile {
    font-size: 20px;
    font-weight: 600;
    color: #002B46;
    margin-bottom: 5px;
}

.region-map-wrapper .rmd-expert-position-mobile {
    color: #002B46B2;
    font-size: 16px;
    font-weight: 400;
}

.region-map-wrapper .rmd-contact-container-mobile {
    margin-bottom: 15px;
}

.region-map-wrapper .rmd-contact-image-mobile {
    width: 40px;
    height: 40px;
    background: #00B5D3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-map-wrapper .rmd-contact-image-mobile img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.region-map-wrapper .rmd-contact-info-mobile {
    font-weight: 700;
    position: relative;
    top: 4px;
    font-size: 14px;
}

.region-map-wrapper .rmd-contact-title-mobile {
    font-size: 14px;
    color: #002B46;
}

.region-map-wrapper .rmd-contact-link-mobile {
    font-size: 12px;
    color: #002B46B2;
}

/* Mobile specific adjustments for RMD */
@media (max-width: 768px) {

    .region-map-wrapper.dealers-map-wrapper .popup-header {
        border-bottom: 1px solid #EEF0F2;
        margin-bottom: 20px;
        padding: 20px;
    }

    .region-map-wrapper.dealers-map-wrapper h3.popup-title {
        margin: 0 auto !important;
    }

    .region-map-wrapper .rmd-expert-position-button {
        margin-bottom: 10px !important;
    }

    .region-map-wrapper .rmd-expert-more-info-contact-content {
        border-top: none;
        display: flex;
        flex-direction: row;
    }

    .region-map-wrapper .rmd-expert-more-info-contact-content {
        padding: 0;
    }
}

.more-info-text {
    color: #002B46;
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
}

.region-map-wrapper .expert-item:hover {
    box-shadow: 0 4px 12px rgba(0, 181, 211, 0.15);
}

.region-map-wrapper .expert-name-title {
    color: #002B46;
    font-size: 24px;
    font-weight: 400;
}

.region-map-wrapper .more-info-btn {
    text-decoration: underline;
}

.region-map-wrapper .expert-position,
.region-map-wrapper .expert-group {
    color: #002B46B2;
    font-size: 16px;
    font-weight: 400;
}

.region-map-wrapper .contact-title {
    font-weight: 700;
    position: relative;
    top: 4px;
    font-size: 14px;
}

.region-map-wrapper .contact-link {
    font-weight: 400;
    font-size: 16px;
    color: #002B46B2;
}

.region-map-wrapper .expert-contact {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.region-map-wrapper .expert-phone,
.region-map-wrapper .expert-email {
    color: #00B5D3;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid #00B5D3;
    border-radius: 20px;
    transition: all 0.2s;
}

.region-map-wrapper .expert-phone:hover,
.region-map-wrapper .expert-email:hover {
    background: #00B5D3;
    color: white;
}

.region-map-wrapper .expert-profile {
    color: #00B5D3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.2s;
}

.region-map-wrapper .expert-profile:hover {
    color: #008ba3;
}

.region-map-wrapper .no-experts {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}


/* Responsive popup adjustments */
@media (max-width: 768px) {
    .region-map-wrapper .popup-header {
        padding: 15px;
    }

    .region-map-wrapper .popup-title {
        font-size: 18px;
    }

    .region-map-wrapper .popup-content {
        padding: 15px;
        padding-top: 0;
    }

    .region-map-wrapper .expert-contact {
        flex-direction: column;
        gap: 8px;
    }
}

/* Mobile Bottom Sheet Styles - Scoped to prevent conflicts */
.region-map-wrapper .mobile-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.region-map-wrapper .mobile-bottom-sheet.active {
    opacity: 1;
    visibility: visible;
}

.region-map-wrapper .bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.region-map-wrapper .bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    /* border-radius: 20px 20px 0 0; */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.region-map-wrapper .mobile-bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

.region-map-wrapper .bottom-sheet-header {
    padding: 20px 20px 10px;
    background: #F2FBFD;
    border-bottom: 1px solid #C3EDF5;
}

.bottom-sheet-header-icon-wrapper {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #C3EDF5;
    background-color: white;
}

.region-map-wrapper .bottom-sheet-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.region-map-wrapper .bottom-sheet-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.region-map-wrapper .expert-header-mobile {
    padding-bottom: 10px;
}

.region-map-wrapper .expert-image-mobile {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.region-map-wrapper .expert-name-title-mobile {
    font-size: 20px;
    font-weight: 600;
    color: #002B46;
}

.region-map-wrapper .expert-position-mobile {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.region-map-wrapper .expert-contact-mobile {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}


.region-map-wrapper .contact-image-mobile {
    width: 40px;
    height: 40px;
    background: #00B5D3;
    /* border: 1px solid #00B5D3; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-map-wrapper .contact-image-mobile img {
    width: 20px;
    height: 20px;
}

.region-map-wrapper .contact-info-mobile {
    font-weight: 700;
    position: relative;
    top: 4px;
    font-size: 14px;
}


.region-map-wrapper .contact-link-mobile {
    font-size: 16px;
    font-weight: 500;
    color: #002B46;
}

.region-map-wrapper .expert-details-mobile h5 {
    font-size: 18px;
    font-weight: 600;
    color: #002B46;
    margin-bottom: 10px;
}

.region-map-wrapper .expert-details-mobile p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

body.region-bottom-sheet-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    .region-map-wrapper .expert-position-button {
        margin-bottom: 10px !important;
    }

    .region-map-wrapper .expert-more-info-contact-content {
        border-top: none;
    }

    .expert-more-info-contact-content {
        display: flex;
    }

    .region-map-wrapper .rmd-expert-name-title {
        font-size: 22px;
        font-weight: 500;
    }

    .experts-container .expert-row-header .expert-qualification {
        color: #002c45 !important;
    }
}