/* Stitch search / map / detail helpers
   Ported highlight styles for Leaflet markers, popups, pagination and the
   star-rating widgets that the shared jquery_custom.js / leaflet scripts emit. */

/* ---------- Pagination ---------- */
.stitch-pagination .pagination,
.stitch-pagination-list .pagination {
    margin: 0;
}
.pagination li {
    display: inline-block;
    margin: 0 2px;
    list-style: none;
}
.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9999px;
    background-color: #f2eded;
    color: #1c1b1c;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s ease-in-out;
}
.pagination li a i {
    font-size: 12px;
}
.pagination li a.current-page,
.pagination li a:hover {
    background-color: #b80049;
    color: #fff;
}
.pagination li:not(:has(a)) {
    color: #8f6f73;
    padding: 0 6px;
}

/* ---------- Star rating (emitted by jquery_custom.js starRating) ---------- */
.utf_star_rating_section {
    position: relative;
    display: inline-block;
}
.utf_star_rating_section .star,
.star-rating .star {
    width: 15px;
    height: 15px;
    display: inline-block;
    position: relative;
}
.utf_star_rating_section .star:before,
.star-rating .star:before {
    content: "\f005";
    font-family: "FontAwesome";
    color: #f0ad4e;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
}
.utf_star_rating_section .star.empty:before,
.star-rating .star.empty:before {
    color: #e4bdc2;
}
.utf_star_rating_section .star.half:after,
.star-rating .star.half:after {
    content: "\f089";
    font-family: "FontAwesome";
    color: #f0ad4e;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 50%;
}

/* ---------- Leaflet map popups / infobox ---------- */
.infoBox {
    -webkit-animation: stitchFadeIn .9s;
    animation: stitchFadeIn .9s;
}
@keyframes stitchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-webkit-keyframes stitchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Leaflet map markers ---------- */
.custom-div-icon {
    background: transparent;
    border: none;
}
.map-marker-container {
    position: absolute;
    margin-top: 10px;
    transform: translate3d(-50%, -100%, 0);
}
.marker-container {
    position: relative;
    margin: 10px auto;
    width: 40px;
    height: 40px;
    z-index: 1;
    border-radius: 50%;
    cursor: pointer;
    top: -5px;
    perspective: 1000;
    transition: transform .25s ease, filter .25s ease;
}
.marker-card {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all .4s ease-in-out;
    position: absolute;
    z-index: 1;
}
.marker-container:hover .marker-card,
.map-marker-container.clicked .marker-card {
    transform: rotateY(180deg) translateY(-4px);
}
.marker-arrow {
    width: 0;
    height: 0;
    content: "";
    border-style: solid;
    border-width: 12px 6px 0;
    border-color: #b80049 transparent transparent;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    transition: transform .25s ease, border-color .25s ease;
}
.face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    text-align: center;
    border-radius: 30px;
    color: #fff;
    z-index: 100;
}
.face i {
    line-height: 34px;
    font-size: 20px;
}
.face.front {
    background-color: #fff;
    border: 2px solid #b80049;
    color: #b80049;
    z-index: 100;
}
.face.back {
    transform: rotateY(180deg);
    box-sizing: border-box;
    background: #b80049;
    border-color: #b80049;
    color: #fff;
}
.face.back i {
    line-height: 38px;
    font-size: 18px;
}
.mapgray .face.front {
    border-color: #8f6f73;
    color: #8f6f73;
}
.leaflet-marker-icon.enter-mark {
    z-index: 10000 !important;
}
.map-marker-container.enter-mark {
    z-index: 9999;
}
.map-marker-container.enter-mark .marker-container {
    transform: translateY(-6px) scale(1.22);
    filter: drop-shadow(0 10px 14px rgba(184, 0, 73, .38));
}
.map-marker-container.enter-mark .marker-card {
    transform: rotateY(180deg) translateY(-4px);
}
.map-marker-container.enter-mark .face.front,
.map-marker-container.enter-mark .face.back {
    background: #b80049;
    border-color: #b80049;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(184, 0, 73, .18);
}
.map-marker-container.enter-mark .face i,
.map-marker-container.enter-mark .im-icon-Home-5:before {
    color: #fff;
}
.map-marker-container.enter-mark .marker-arrow {
    border-top-color: #b80049;
    transform: translateX(-50%) scale(1.18);
}

/* ---------- Leaflet zoom controls ---------- */
.zoomControlWrapper {
    position: absolute;
    right: 0;
    right: auto;
    width: 70px;
}
.custom-zoom-in,
.custom-zoom-out {
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    margin: 5px 15px;
    transition: color .3s, background-color .3s;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .2);
    text-align: center;
    font-size: 15px;
    height: 34px;
    width: 34px;
}
.custom-zoom-in:hover,
.custom-zoom-out:hover {
    background-color: #b80049;
    color: #fff;
}
.custom-zoom-in:before,
.custom-zoom-out:before {
    font-family: "FontAwesome";
    width: 100%;
    line-height: 35px;
}
.custom-zoom-in:before { content: "\f067"; }
.custom-zoom-out:before { content: "\f068"; }

/* ---------- Map / list layout ---------- */
#map {
    height: 100%;
    width: 100%;
    margin: 0;
    z-index: 1;
}
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: 271px !important;
}
.infoBox .map-box {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
.infoBox .listing-img-container {
    display: block;
    position: relative;
}
.infoBox .listing-img-container img {
    width: 100%;
    height: auto;
    display: block;
}
.infoBox .listing-item-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    color: #fff;
}
.infoBox .listing-item-content h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.infoBox .listing-item-content span {
    font-size: 12px;
    opacity: .9;
}
.infoBox .listing-content {
    padding: 8px 14px 12px;
}
.infoBox .utf_counter_star_rating {
    font-size: 12px;
    color: #5b3f43;
}

/* ---------- Search "load more" loader ---------- */
.moreLoader {
    display: flex;
    justify-content: center;
}
.moreLoader.hidden {
    display: none;
}

/* ---------- Detail page reviews toggle ---------- */
.listing-reviews-item {
    list-style: none;
}

/* Fix rtl range styling when distance slider is reused */
#distance {
    accent-color: #b80049;
}
