.interactive-map-wrapper {
    max-width: 100%;
    position: relative;
    font-family: sans-serif;
}

.interactive-map-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.interactive-map-base-img {
    width: 100%;
    height: auto;
    display: block;
}

.interactive-map-marker {
    position: absolute;
    transform: translate(-15px, -15px);
    /* Center the plus icon */
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.imap-modal-header{
	display: none !important;
}
/* The circular icon */
.map-marker-icon {
	width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 8px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.plus-icon {
    font-size: 25px;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* The content wrapper */
.map-marker-content-wrapper {
    margin-left: -35px;
    margin-top: 25px;
    background-color: #fff;
    /* Default collapsed is white */
    color: #1d3163;
    padding: 10px 20px 10px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;

    /* Collapsed state styles */
    width: var(--collapsed-width, 200px);
    white-space: normal; 
    /* To simulate the border around the blue box later */
    border: 15px solid #fff;
}
.interactive-map-marker.active .map-marker-body::-webkit-scrollbar {
    display: none;
}
.interactive-map-marker.active .map-marker-body {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.map-marker-title {
    margin: 0;
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif !important;
    font-size: 35px !important;
    font-weight: 300 !important;
    color: #fff !important;
	line-height: 1.2;
    word-break: break-word;

}

.map-marker-body {
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
	max-height: 0;
}

.map-marker-desc {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 20px;
}

.map-marker-desc p {
    margin: 0 0 10px 0;
}

.map-marker-btn {
    color: #fff !important;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
	margin-bottom: 10px;
}

.map-btn-arrow {
    width: 25px !important;
    height: auto;
    object-fit: contain;
}

.map-marker-btn:hover {
    text-decoration: none;
}

/* Active (Expanded) State */
.interactive-map-marker.active {
    z-index: 20;
}

.interactive-map-marker.active .map-marker-icon {
    /* When expanded, the background color of the icon is same but cross rotates */
    transform: translate(0px, 0px);
}

.interactive-map-marker.active .plus-icon {
    transform: rotate(45deg);
}

.interactive-map-marker.active .map-marker-content-wrapper {
    width: var(--expanded-width, 300px);
    white-space: normal;
    color: #fff;
}

.interactive-map-marker.active .map-marker-title {
    font-size: 35px;
}

.interactive-map-marker.active .map-marker-body {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
	max-width: calc(100% - 50px);
	max-height: 550px;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
	overflow-y: auto;
    /* Fade in after expanding */
}

/* Flipped State for Desktop Edge Cases */
.interactive-map-marker.flipped {
    /* No need to reverse row, we will absolute position the wrapper */
}

.interactive-map-marker.flipped .map-marker-content-wrapper {
    position: absolute;
    right: 15px;
    /* Overlaps the 30px icon perfectly by 15px from the right */
    top: 0;
    margin-left: 0;
}

/* CSS variable support for the theme color */
.interactive-map-wrapper {
    --theme-color: #0F2963;
}

.map-marker-icon {
    background-color: #3673EE;
}

.map-marker-content-wrapper {
    background-color: #0F2963;
    color: #fff;
}

.interactive-map-marker.active .map-marker-content-wrapper {
    border: 15px solid #fff;
    background-color: #0F2963;
    color: #fff;
}

/* --- Media Modal Styles --- */
.imap-media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imap-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 230, 230, 0.9);
    z-index: 1;
}

.imap-modal-dialog {
    position: relative;
    z-index: 2;
    width: 90%;
    display: flex;
    flex-direction: column;
}

.imap-modal-header {
    margin-bottom: 10px;
    padding-left: 5px;
}

.imap-modal-title {
    font-family: sans-serif;
    font-size: 16px;
    color: #555;
}

.imap-modal-blue-box {
    background-color: #5a8dec;
    padding: 40px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.imap-modal-white-box {
    background-color: #fff;
    padding: 20px;
    position: relative;
}

.imap-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 30px;
    height: 30px;
    background-color: #1a2a47;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1;
    user-select: none;
}

.imap-modal-close:hover {
    background-color: #000;
}

.imap-modal-media-container {
    width: 100%;
    background-color: #000;
    /* Dark background for letterboxing */
}

.imap-modal-media-container video,
.imap-modal-media-container img,
.imap-modal-media-container iframe {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {

	.map-marker-icon {
        width: 25px;
        height: 25px;
        border: 3px solid #fff;
	}
	.plus-icon img {
		width: 12px;
	}
	.plus-icon {
		display: flex;
		align-items: center;
	}
    .map-marker-title,
    .interactive-map-marker.active .map-marker-title {
        font-size: 24px;
    }

    .map-marker-desc {
        font-size: 16px;
    }

    .map-marker-btn {
        font-size: 16px;
    }

    .map-btn-arrow {
        width: 16px !important;
    }

    /* On mobile, completely hide the inline expanding wrapper */
    .map-marker-content-wrapper {
        display: none !important;
    }

    .imap-modal-blue-box {
        padding: 20px;
    }

    .imap-modal-white-box {
        padding: 15px;
    }

    .imap-modal-close {
        top: -15px;
        right: -15px;
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
}