/* --- ОБЩИЕ --- */
:root { --accent: #d4af37; --link: #1a73e8; }
.wppe-widget-block { margin: 40px 0; }

/* --- КАРТА --- */
.smart-map-wrapper { width: 100%; height: 480px; margin: 30px 0; background: #222; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.widget-subheader { font-size: 22px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: #333; }

/* --- ФОТО (Скролл контейнер) --- */
.places-photos-container { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.places-photos-container::-webkit-scrollbar { height: 8px; }
.places-photos-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.place-photo { height: 180px; border-radius: 12px; flex: 0 0 auto; cursor: zoom-in; transition: transform 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); object-fit: cover; }
.place-photo:hover { transform: scale(1.02); }

/* --- ОТЗЫВЫ --- */
.review-card { background: #fdfdfd; padding: 25px; border-radius: 12px; border: 1px solid #eee; margin-bottom: 15px; }
.review-header { display: flex; align-items: center; margin-bottom: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; margin-right: 15px; }
.review-author { font-weight: 700; }
.review-link { font-size: 13px; color: #999; text-decoration: none; display: flex; align-items: center; gap: 5px; margin-top: 15px; }
.read-more-btn { color: var(--link); font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; display: inline-block; border-bottom: 1px dashed var(--link); }
.review-full { display: none; }

/* --- МОДАЛЬНОЕ ОКНО (FIXED Z-INDEX) --- */
.wppe-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999999; /* Очень высокий индекс */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.wppe-modal-overlay.show {
    display: flex;
    opacity: 1;
}
.wppe-modal-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.wppe-modal-overlay.show .wppe-modal-img {
    transform: scale(1);
}
.wppe-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

/* --- STICKY ROUTE FOOTER --- */
.wppe-route-sticky {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%); /* Спрятан внизу */
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 99999;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wppe-route-sticky.visible {
    transform: translateX(-50%) translateY(0); /* Показываем */
}

.wppe-sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.wppe-sticky-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wppe-sticky-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.wppe-sticky-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wppe-sticky-btn {
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.wppe-sticky-btn:hover {
    background: #1d4ed8;
}

.wppe-sticky-btn svg {
    width: 16px; height: 16px;
}

@media (max-width: 480px) {
    .wppe-route-sticky {
        width: 94%;
        bottom: 15px;
        padding: 12px 15px;
    }
}