/**
 * Image Points - Frontend Styles
 *
 * Handles pin animations, tooltip styling, and responsive layouts.
 */

/* Pin pulse animation */
@-moz-keyframes Ani {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        border: 1px solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    70% {
        box-shadow: 0 0 50px #fff;
        border: 1px solid #fff;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0);
        border: 0 solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(1.5);
        transform: scale(1.5)
    }
}

@-webkit-keyframes Ani {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        border: 1px solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    70% {
        box-shadow: 0 0 50px #fff;
        border: 1px solid #fff;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0);
        border: 0 solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(1.5);
        transform: scale(1.5)
    }
}

@keyframes Ani {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        border: 1px solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    70% {
        box-shadow: 0 0 50px #fff;
        border: 1px solid #fff;
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    100% {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0);
        border: 0 solid rgba(255, 255, 255, 0);
        -webkit-transform: scale(1.5);
        transform: scale(1.5)
    }
}

/* Custom tooltip */
#imagePointsTip {
    display: none;
    position: absolute;
    z-index: 2147483647;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    white-space: nowrap;
    cursor: default;
    max-width: 80vw;
    box-sizing: border-box;
}

#imagePointsTip.ipt-active {
    display: block !important;
}

#imagePointsTip:before {
    content: "";
    position: absolute;
}

#imagePointsTip.ipt-n:before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(0, 0, 0, 0.9);
    bottom: -10px;
    left: 50%;
    margin-left: -8px;
}

#imagePointsTip.ipt-s:before {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.9);
    top: -10px;
    left: 50%;
    margin-left: -8px;
}

#imagePointsTip.ipt-e:before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid rgba(0, 0, 0, 0.9);
    left: -10px;
    top: 50%;
    margin-top: -8px;
}

#imagePointsTip.ipt-w:before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(0, 0, 0, 0.9);
    right: -10px;
    top: 50%;
    margin-top: -8px;
}

/* Layout */
.wrap_svl {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
    vertical-align: top;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}

.wrap_svl>* {
    font-size: 16px;
    font-size: 1rem;
    line-height: normal;
}

.images_wrap img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.drag_element {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 1px;
    min-height: 1px;
}

.point_style {
    position: relative;
    z-index: 10;
    display: block;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    box-sizing: border-box;
    text-align: center;
}

.point_style img {
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    max-width: inherit;
    margin: 0;
    padding: 0;
}

.image_points_hastooltip {
    cursor: pointer;
}

body .wrap_svl img.pins_image_hover {
    display: block !important;
    opacity: 0;
    pointer-events: none;
}

body .wrap_svl .point_style.has-hover:hover img.pins_image {
    opacity: 0;
}

body .wrap_svl .point_style.has-hover:hover img.pins_image_hover {
    opacity: 1;
}

/* Tooltip content styling */
.tolltip_points {
    text-align: center;
}

.tolltip_points img {
    width: 130px;
    height: 130px;
    border: 1px solid #fff;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
}

.tolltip_points .points_name {
    display: block;
    font-size: 16px;
}

.tolltip_points .points_desc {
    display: block;
    font-size: 14px;
}

.mobile_points_wrap {
    display: none;
}

.mobile_points_box {
    width: 50%;
    float: left;
    padding: 0 5px 15px 5px;
    text-align: center;
}

.img_points_box {
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #fff;
}

.img_points_box img {
    width: 100%;
    height: 100%;
}

.mobile_points_box:nth-child(2n+1) {
    clear: both;
}

ul.list_content_point {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

ul.list_content_point li {
    position: relative;
    padding: 3px 0 0 20px;
    margin: 0 0 5px 0;
}

ul.list_content_point li:before {
    content: "";
    font-family: FontAwesome;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
}

ul.list_content_point li.address_point:before {
    content: "\f041";
}

ul.list_content_point li.person_point:before {
    content: "\f183";
}

ul.list_content_point li.tel_point:before {
    content: "\f095";
}

ul.list_content_point li.fax_point:before {
    content: "\f1ac";
    font-size: 15px;
    top: 4px;
}

ul.list_content_point li.mail_point:before {
    content: "\f0e0";
    font-size: 15px;
    top: 4px;
}

.box_view_html {
    color: #fff;
    font-weight: 300;
    max-width: 530px;
    white-space: normal;
    overflow: hidden;
    position: relative;
}

.thumb_point {
    float: left;
    width: 30%;
}

.has-thumb .content_point {
    width: 70%;
    float: left;
    padding: 0 0 0 15px;
}

.has-thumb .content_point h3 {
    font-size: 19px;
}

.linkto_point {
    text-align: right;
    margin: 20px 0 0 0;
}

.wrap_svl_center {
    text-align: center;
}

.wrap_svl_center_box {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

body .point_style a img,
body .point_style img {
    max-width: inherit !important;
    vertical-align: inherit;
    border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    box-shadow: none !important;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.pins_animation {
    border: 3px solid rgba(255, 255, 255, .5);
    width: 30px;
    height: 30px;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, .5);
    pointer-events: none;
}

.pins_animation.image_points_pulse {
    -moz-animation: Ani 2s infinite;
    -webkit-animation: Ani 2s infinite;
    animation: Ani 2s infinite;
}

span.close_image_points {
    display: none;
}

body .point_style a:hover img {
    background: transparent !important;
}

span.close_image_points svg {
    width: 25px;
    height: 25px;
}

@media (max-width: 500px) {
    .image_points_popup_full #imagePointsTip {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .image_points_popup_full span.close_image_points {
        display: block;
        float: right;
        width: 25px;
        height: 25px;
    }

    .image_points_popup_full span.close_image_points svg {
        fill: #fff;
    }
}

/* Responsive pin scaling */
@media (max-width: 600px) {
    .point_style img {
        transform: scale(0.7);
        transform-origin: top left;
    }

    .pins_animation {
        transform: scale(0.7);
        transform-origin: top left;
    }
}

@media (max-width: 400px) {
    .point_style img {
        transform: scale(0.5);
        transform-origin: center;
    }

    .pins_animation {
        transform: scale(0.5);
        transform-origin: center;
    }
}
