/* Interactive Sculpture Map Styles */
.sculpture-map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #f0f8ff;
    border-radius: 0;
    overflow: hidden; /* Keep container overflow hidden to clip zoomed content */
    box-shadow: 0 10px 30px rgba(0, 72, 80, 0.1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sculpture-map {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*border: 3px solid #C4D92C;
    border-radius: 12px;
    background: #f0f8ff;*/
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center center;
    will-change: transform; /* Optimize for transform animations */
}

/* Pinch Zoom Container Styles */
.pinch-zoom-container {
    position: relative;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.pinch-zoom-element {
    display: block;
    width: 100%;
    height: auto;
}

/* Cursor styles for draggable map */
.sculpture-map.draggable {
    cursor: grab;
}

.sculpture-map.dragging {
    cursor: grabbing !important;
}

/* Mobile Zoom Controls - Right side (Mobile Only ≤767px) */
.map-zoom-controls,
div.map-zoom-controls {
    display: none !important; /* Hidden by default */
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 15px 20px !important;
    z-index: 1000 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Show zoom controls ONLY on mobile/tablet screens (≤767px) - This must come AFTER the default */
@media (max-width: 767px) {
    .map-zoom-controls,
    div.map-zoom-controls,
    body .map-zoom-controls,
    .sculpture-map-container .map-zoom-controls {
        display: flex !important;
    }
}

.zoom-btn {
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    color: #C3D92C !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.zoom-btn:hover {
    background: rgba(195, 217, 44, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.zoom-btn:active {
    transform: scale(0.95);
    background: rgba(69, 156, 98, 0.95);
}

.zoom-btn svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    visibility: visible !important;
}

.zoom-btn svg path {
    stroke: #C3D92C !important;
    fill: none !important;
}

/* Desktop: Zoom controls already hidden by default above */

.sculpture-map-image {
    width: 100%;
    height: auto;
    display: block !important;
    max-width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.sculpture-map svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sculpture-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    /*background: linear-gradient(135deg, #C4D92C 0%, #449D62 100%);
    border: 3px solid #004850;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 72, 80, 0.3);
    z-index: 10;
    animation: pinPulse 2s infinite ease-in-out;
    border: 2px solid #FFFFFF;
    background-color: #C3D92C !important;
    font-family: JUST Sans;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    background: #1B4A53;
    /* Ensure pins are interactive even when inside zoom container */
    pointer-events: auto;
    touch-action: auto;
    will-change: transform;
}

@keyframes pinPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 4px 15px rgba(0, 72, 80, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        box-shadow: 0 6px 20px rgba(0, 72, 80, 0.4);
    }
}


/*Map Location And Information Bloc Css Start Here*/
.map-info-wrap { position: absolute;bottom: 40px;right: 47px; }
.map-info-main { display: flex;flex-wrap: wrap;align-items: center; gap: 54px;}
.map-road-info { background-color: #14383F;padding: 25px 19px 10px 25px;border-radius: 8px; }
.road-list { display: flex;flex-wrap: wrap;gap: 11px; margin-bottom: 12px;}
.road-list span { width: 45px;height: 26px;border-radius: 28px; display: inline-block; vertical-align: middle; }
.road-list.blue span { background-color: #3F4CA0; }
.road-list.green span { background-color: #569664; }
.road-list.yellow span { background-color: #C3D537; }
.road-list h3 { color: #fff;font-family: JUST Sans;font-weight: 400;font-size: 18px;line-height: 30px; margin: 0; }

.map-location-info { background-color: #14383F; border-radius: 8px; padding: 15px 22px 18px 22px; max-width: 567px; width: 100%; }
.location-heading h3 {
    font-family: JUST Sans;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 9px;
    letter-spacing: 0.039em;
}
.location-list-wrap { display: flex; flex-wrap: wrap; margin-bottom: 22px; }
.location-list-wrap .location-list { width: 48.5%; border-right: 1px solid #1B4A53; padding: 5px 25px 5px 0; }
.location-list-wrap .location-list:last-child { padding: 5px 0 5px 25px; border: 0; }
.location-list-wrap .location-list h4 { margin: 0; color: #C3D92C; font-family: JUST Sans; font-weight: 800; font-size: 16px; line-height: 25px; }
.location-list-wrap .location-list span { color: #fff; font-family: JUST Sans; font-weight: 300; font-size: 15px; line-height: 25px; display: block; }
.location-list-wrap .location-list p { font-family: JUST Sans; font-weight: 300; font-size: 15px; line-height: 22px; color: #fff; margin: 6px 0 0 0;     letter-spacing: 0.00em;}
.map-location-info h5 { font-family: JUST Sans;font-weight: 400;font-size: 15px;line-height: 22px;color: #C3D92C;margin: 0; }

@media (max-width: 1600px) {
    .sculpture-interactive-map .sculpture-map-container { padding-bottom: 66px; background-color: #1B4A53; }
}

@media (max-width: 1366px) {
    .sculpture-interactive-map .sculpture-map-container {
        padding-bottom: 210px;     
    }
}
@media (max-width: 1100px) {
    .sculpture-interactive-map .sculpture-map-container {
        padding-bottom: 270px;     
    }
}
@media (max-width: 991px) { 
    .map-info-main { gap: 20px; justify-content: center; }
    .map-info-wrap { right: 0;left: 0;margin: 0 auto; }
    .map-location-info { max-width: 497px; }
}
@media (max-width: 767px) {
    .map-info-main { gap: 17px; }
    .map-info-wrap { position: relative; padding: 0 15px; bottom: 0; }
    .sculpture-interactive-map .sculpture-map-container { padding-bottom: 45px; }
    .map-road-info { width: 100%; padding: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
    .road-list { margin: 0; align-items: center; gap: 5px; }
    .road-list span { width: 18px; height: 18px; }
    .road-list h3 { font-size: 15px; line-height: 30px; }
    .map-location-info { max-width: 100%; padding: 20px 25px 31px 25px }
    .location-list-wrap .location-list {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #1B4A53;
        border-right: 0;
        padding-bottom: 18px;
        margin-bottom: 15px;
    }
    .location-list-wrap .location-list:last-child { padding: 0; margin: 0; }
    .location-list-wrap { margin-bottom: 22px; }
    
    /* Ensure map container allows zoom on mobile */
    .sculpture-map {
        touch-action: none;
        overflow: visible;
    }
    
    /* Adjust zoom controls on mobile */
    .map-zoom-controls {
        padding: 12px 15px !important;
        gap: 8px !important;
    }
    
    .zoom-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .zoom-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .sculpture-pin {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border: 2px solid #FFFFFF;
    }
}

@media (max-width: 480px) {
    .sculpture-pin {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border: 2px solid #FFFFFF;
    }
    
    /* Adjust zoom controls for very small screens */
    .map-zoom-controls {
        padding: 10px !important;
        gap: 6px !important;
    }
    
    .zoom-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .zoom-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Loading Animation */
.sculpture-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #004850;
    font-family: 'JUST Sans', sans-serif;
    font-weight: 600;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #C4D92C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Styles */
.sculpture-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.sculpture-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sculpture-popup-container {
    position: relative;
    background: white;    
    max-width: 947px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sculpture-popup-overlay.active .sculpture-popup-container {
    transform: scale(1);
}

.sculpture-popup-close {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 20px;
    height: 20px;
    appearance: none;
    background-color: transparent;
    border: 0;
}

/*.sculpture-popup-close:hover {
    background: #EF4932;
    transform: scale(1.1);
}*/

.sculpture-popup-content {
    display: flex;
    height: 100%;    
    padding: 45px 60px;
    flex-wrap: wrap; 
    flex-direction: row;
}
.sculpture-popup-image-container {
    position: relative;
    background: #f0f8ff;
    overflow: hidden;
    min-height: 425px;
    border: 11px solid #EDF4C0;
    width: 58%;
}

.sculpture-popup-image {
    width: 100%; 
    object-fit: cover;
    display: block;
    height: 425px;
}

.sculpture-popup-details {
    position: relative;
    background: white;
    padding: 76px 23px 0 26px;
    width: 42%;
}

.sculpture-popup-pin {
    position: absolute;
    top: 8px;
    left: 27px;
    width: 43px;
    height: 43px;
    background: #C3D92C;
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-family: 'JUST Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #004850;
    box-shadow: 0px 1.79px 7.17px 0px #00000040;
    border: 3.58px solid #FFFFFF;
    font-family: JUST Sans;
    font-weight: 600;
    font-size: 23.29px;
    line-height: 28.15px;
}
.sculpture-popup-title {
    font-family: 'JUST Sans', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #004850;
    margin-bottom: 12px;
    letter-spacing: 0.00em;
    line-height: 1.2;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
}
.sculpture-popup-artist {
    font-family: 'JUST Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #004850;
    margin-bottom: 9px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
    padding-bottom: 9px;
}
.sculpture-popup-year {
    font-family: 'JUST Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #004850;
    margin-bottom: 13px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
}
.sculpture-popup-material {
    font-family: 'JUST Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #004850;
    margin-bottom: 37px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
    line-height: 1.23;
    padding-right: 70px;
}
.sculpture-popup-description {
    font-family: 'JUST Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
   color: #004850;
    margin: 0;
}

.sculpture-popup-prev,
.sculpture-popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #459C62;
    border: 2px solid #459C62;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.sculpture-popup-prev {
    left: -30px;
    justify-content: flex-end;
}

.sculpture-popup-next {
    right: -30px;
    justify-content: flex-start;
}
.sculpture-popup-prev img {
    margin: 0 10px 0 0;
}

.sculpture-popup-next img {
    margin: 0 0 0 10px;
}

/*.sculpture-popup-prev:hover,
.sculpture-popup-next:hover {
    background: #C4D92C;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 72, 80, 0.3);
}*/

.sculpture-popup-prev.disabled,
.sculpture-popup-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design for Popup */

@media (max-width: 991px) {
    .sculpture-popup-content {
        padding: 34px 40px;
    }
    .sculpture-popup-details {
        padding: 70px 0 0 20px;
    }
    .sculpture-popup-material {
        padding-right: 0;
        margin-bottom: 25px;
    }
}


@media (max-width: 767px) {
    .sculpture-popup-container {
        width: 95%;
        max-width: none;
        margin: 20px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .sculpture-popup-content {
        height: auto;
        min-height: auto;
        padding: 30px 35px;
    }
    
    sculpture-popup-image-container {
        min-height: 300px;
        width: 100%;
        flex: auto;
        height: 280px;
        border: 7px solid #EDF4C0;
    }
    .sculpture-popup-pin { position: relative; left: 0; margin: 0 0 20px 0; }
    
    .sculpture-popup-details {
        padding: 10px 15px;
        border-radius: 0 0 20px 20px;
        width: 100%;
        flex: auto;
    }
    
    .sculpture-popup-title {
        font-size: 24px;
    }
    
    .sculpture-popup-artist {
        font-size: 18px;
    }
    
    .sculpture-popup-prev,
    .sculpture-popup-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .sculpture-popup-prev {
        left: -20px;
    }
    .sculpture-popup-content {
        padding: 43px 35px 20px 35px;
        height: 715px;
        overflow: auto;
    }
    
    .sculpture-popup-next {
        right: -20px;
    }
    .location-heading h3 {
        margin-bottom: 9px;
    }
    .location-list-wrap .location-list h4 {
        letter-spacing: 0.01em;
    }
    .sculpture-popup-overlay {
        padding: 0;
    }
    .sculpture-popup-close {
        top: 5px;
        right: 6px;     
        width: 15px;
        height: 15px;
    }
    .sculpture-popup-image-container {
        border: 7px solid #EDF4C0;
        width: 100%;
        min-height: 300px;
        height: 300px;
    }
    .sculpture-popup-image {
        height: 100%;
    }
}

@media (max-width: 640px) {
    .sculpture-popup-content {
        padding: 43px 12px 20px 22px;
        overflow: initial;
    }
    .sculpture-popup-title {
        font-size: 22px;
    }    
    .sculpture-popup-artist, .sculpture-popup-year, .sculpture-popup-material {
        font-size: 16px;
    }
    .sculpture-popup-close {
        top: 7px;
        right: 8px;
        width: 15px;
        height: 20px;
        position: sticky;
        left: inherit;
        float: right;
    }
}

/* Print Styles */
@media print {
    .sculpture-map-container {
        break-inside: avoid;
    }
    
    .sculpture-popup-overlay {
        display: none !important;
    }
}
