.castries-map-section .map-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 1/1;
}
.castries-map-container .elementor-widget-castries-map-widget {
	display: flex;
    justify-content: center;
}
.castries-map-section .map-image {
    width: 100%;
    display: block;
    height: auto;
	aspect-ratio: 1/1;
}

.castries-map-section .pin {
    position: absolute;
    cursor: pointer;
    z-index: 9;
	width: 10px;
    height: 10px;
}

.castries-map-section .pin-marker {
    width: 95px;
    height: 95px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url("../assets/pin.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.castries-map-section .pin-title {
    width: 60%;
    text-align: center;
    text-transform: uppercase;
    font-size: 7px !important;
    color: #000;
}

.castries-map-section .pin:hover .pin-marker,
.castries-map-section .pin.active .pin-marker {
    transform: translate(-50%, -50%) scale(1.2);
}

.castries-map-section .pin:hover,
.castries-map-section .pin.active {
    z-index: 9;
}

.castries-map-section .pin:hover .modal,
.castries-map-section .pin.active .modal {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.castries-map-section .modal {
    position: absolute;
    z-index: 10;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 450px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.castries-map-section .modal img {
    width: 150px;
    height: auto;
    object-fit: cover;
	aspect-ratio: 1 / 1;
}

.castries-map-section .modal-content {
    padding: 20px;
}

.castries-map-section .modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-family: sans-serif;
}

.castries-map-section .modal-content p {
    font-size: 13px;
    margin: 0;
    color: #555;
    line-height: 1.4;
}
@media (max-width: 1024px) {
    .castries-map-section .pin-marker {
        width: 85px;
        height: 85px;
    }
    .castries-map-section .pin-title {
        font-size: 6px !important;
		padding-bottom: 0;
		margin: 0;
    }
	.castries-map-section .modal-content p {
		font-size: 11px;
	}
	.castries-map-section .modal-content .modal-title {
		font-size: 14px;
		line-height: 1.25;
	}
}
@media (max-width: 768px) {
	.castries-map-section .map-container {
		min-height: 60vh;
    	overflow: visible;
	}
	.castries-map-section .pin-title {
        font-size: 3px !important;
    }
    .castries-map-section .pin-marker {
        width: 42px;
        height: 42px;
    }
    .castries-map-section .modal {
        width: 220px;
		left: -440%;
    }
    .castries-map-section .modal-content {
        padding: 6px;
    }
    .castries-map-section .modal-content .modal-title {
        font-size: 9px;
        margin-bottom: 5px;
		margin-top: 0;
    }
    .castries-map-section .modal-content p {
        font-size: 7px;
    }
    .castries-map-section .modal img {
        width: 100px;
    }
}
@media (max-width: 376px) {
	.castries-map-section .modal-content .modal-title {
        font-size: 9px;
        margin-bottom: 10px;
    }
    .castries-map-section .modal img {
        width: 80px;
    }
}
