/*
 * HTML-карта сайта /site_map: свёрнутые ветки (предзаказ, журнал) на <details>.
 * Базовые стили страницы — resources/assets/sass/parisclub/pages/site_map/_site_map.scss (app.css);
 * здесь только ветки, чтобы не пересобирать app.css.
 */

.site-map-index .sm-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 20px;
}

.site-map-index .sm-expand-all {
    padding: 0;
    border: 0;
    border-bottom: 1px dashed currentColor;
    background: none;
    color: #0ba5ea;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.site-map-index .sm-expand-all:hover {
    color: #0884bb;
}

/* Ветка: вместо точки — стрелка, на любом уровне */
.site-map-index .site-map-item ul li.sm-branch {
    position: relative;
    padding-left: 17px;
}

.site-map-index .site-map-item ul.main-wrap li.sm-branch:before {
    display: none;
}

.site-map-index .sm-branch > details > summary {
    display: block;
    list-style: none;
    cursor: pointer;
}

.site-map-index .sm-branch > details > summary::-webkit-details-marker {
    display: none;
}

.site-map-index .sm-branch > details > summary::marker {
    content: "";
}

.site-map-index .sm-branch > details > summary:focus {
    outline: none;
}

.site-map-index .sm-branch > details > summary:focus-visible {
    outline: 1px dotted #0ba5ea;
    outline-offset: 2px;
}

.site-map-index .sm-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
}

.site-map-index .sm-toggle:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 1px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #0ba5ea;
    border-bottom: 2px solid #0ba5ea;
    transform: rotate(-45deg);
    transition: transform .15s;
}

.site-map-index .sm-branch > details[open] > summary > .sm-toggle:before {
    top: 0;
    left: 2px;
    transform: rotate(45deg);
}

.site-map-index .sm-count {
    margin-left: 6px;
    color: #9b9b9b;
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .site-map-index .sm-toggle:before {
        transition: none;
    }
}
