/* Каталог и категория: рубрикатор, раскладка. ТЗ SEO п.5 */

.load-more-wrap { 
    width: 100%; 
    margin-top: 24px; 
    margin-bottom: 16px; 
}
@media all and (max-width: 767px){
    .load-more-wrap{
        padding: 0 20px;
    }
    .mp-items-title-container h2{
        padding: 0 15px;
        font-size: 20px;
    }
    .home-page-content{
        padding: 0 15px;
    }
}
.load-more-btn {
  display: block; 
  width: 100%; 
  max-width: 100%;
  padding: 14px 20px; 
  font-size: 1rem; 
  font-weight: 500;
  border: none; 
  border-radius: 8px; 
  background: #1354b9;
  cursor: pointer; 
  transition: background .2s, border-color .2s;
  color: #fff;
}
.load-more-btn:hover:not(:disabled) { 
    background:rgb(31, 103, 220); 
}
.load-more-btn:disabled { opacity: 0.7; cursor: wait; }
a.load-more-btn-link {
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
a.load-more-btn-link:hover {
  color: #fff;
}

/* Левая панель-рубрикатор: layout страниц со списками экскурсий */
    .excursions-list-page .excursions-page-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    .excursions-list-page .excursions-page-main {
        flex: 1;
        min-width: 0;
        order: 2; /* в DOM main идёт первым, но визуально — справа */
    }
    .excursions-list-page .excursion-rubricator-side {
        order: 1;
        width: 250px;
        flex-shrink: 0;
        background: #fff;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 5px 5px 12px 0 rgba(0, 0, 0, .18), -3px -3px 4px 0 rgba(255, 255, 255, 1);
        position: sticky;
        top: 202px;
        align-self: flex-start;
        max-height: calc(100vh - 300px);
        overflow-y: auto;
    }
    @media (max-width: 1023px) {
        .excursions-list-page .excursion-rubricator-side { display: none; }
        .excursions-list-page .excursions-page-layout { display: block; }
    }
    .excursion-rubricator-sidebar { font-size: 14px; }
    .erub-type { margin-bottom: 12px; }
    .erub-type-title { font-weight: 600; color: #333; padding: 6px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
    .erub-type-list, .erub-sub-list, .erub-discount-list { list-style: none; padding: 0; margin: 0; }
    .erub-cat-row { display: flex; align-items: center; gap: 4px; }
    .erub-link { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 6px 8px; color: #333; text-decoration: none; border-radius: 6px; line-height: 1.25; }
    .erub-link:hover { background: #f0f4fa; color: #1354b9; }
    .erub-link--active { background: #e8eef7; color: #1354b9; font-weight: 600; }
    .erub-link--discount { background: #fff5e8; color: #b45309; }
    .erub-link--discount:hover { background: #ffe8c8; color: #92400e; }
    .erub-name { word-break: break-word; }
    .erub-count { color: #888; font-size: 12px; flex-shrink: 0; }
    .erub-toggle { background: transparent; border: 0; cursor: pointer; padding: 4px 6px; color: #666; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
    .erub-toggle:hover { background: #f0f4fa; color: #1354b9; }
    .erub-toggle .erub-chevron { transition: transform .2s; transform: rotate(0deg); }
    .erub-toggle[aria-expanded="true"] .erub-chevron { transform: rotate(180deg); }
    .erub-sub-list { padding-left: 14px; margin-top: 2px; border-left: 2px solid #eef2f7; }
    .erub-sub-item .erub-link { padding: 5px 8px; font-size: 13px; }
    .erub-discount-list { margin-bottom: 10px; display: none !important; }

    .category-description {
        padding: 20px 0;
    }
    .category-info-top { margin-bottom: 16px; }

/* Layout страниц со списками экскурсий: левая панель + основной контент */
    .category-list-page .excursions-page-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    .category-list-page .excursions-page-main {
        flex: 1;
        min-width: 0;
        order: 2;
    }
    .category-list-page .excursion-rubricator-side {
        order: 1;
        width: 250px;
        flex-shrink: 0;
        background: #fff;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 5px 5px 12px 0 rgba(0,0,0,.18), -3px -3px 4px 0 rgba(255,255,255,1);
        position: sticky;
        top: 30px;
        align-self: flex-start;
        max-height: calc(100vh - 250px);
        overflow-y: auto;
    }
    @media (max-width: 1023px) {
        .category-list-page .excursion-rubricator-side { display: none; }
        .category-list-page .excursions-page-layout { display: block; }
    }
    .excursion-rubricator-sidebar { font-size: 14px; }
    .erub-type { margin-bottom: 12px; }
    .erub-type-title { font-weight: 600; color: #333; padding: 6px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
    .erub-type-list, .erub-sub-list, .erub-discount-list { list-style: none; padding: 0; margin: 0; }
    .erub-cat-row { display: flex; align-items: center; gap: 4px; }
    .erub-link { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 6px 8px; color: #333; text-decoration: none; border-radius: 6px; line-height: 1.25; }
    .erub-link:hover { background: #f0f4fa; color: #1354b9; }
    .erub-link--active { background: #e8eef7; color: #1354b9; font-weight: 600; }
    .erub-link--discount { background: #fff5e8; color: #b45309; }
    .erub-link--discount:hover { background: #ffe8c8; color: #92400e; }
    .erub-name { word-break: break-word; }
    .erub-count { color: #888; font-size: 12px; flex-shrink: 0; }
    .erub-toggle { background: transparent; border: 0; cursor: pointer; padding: 4px 6px; color: #666; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
    .erub-toggle:hover { background: #f0f4fa; color: #1354b9; }
    .erub-toggle .erub-chevron { transition: transform .2s; transform: rotate(0deg); }
    .erub-toggle[aria-expanded="true"] .erub-chevron { transform: rotate(180deg); }
    .erub-sub-list { padding-left: 14px; margin-top: 2px; border-left: 2px solid #eef2f7; }
    .erub-sub-item .erub-link { padding: 5px 8px; font-size: 13px; }
    .erub-discount-list { margin-bottom: 10px; display: none !important; }

    @media all and (max-width:767px){
        .category-description{
            padding: 0 15px;
        }
    }
    .category-description {
        margin: 0 0 20px;
        background-color: #f8f9fa;
        border-radius: 5px;
    }
    .category-info-top{
        display: flex;
        align-items: center;
        /* Как у .breadcrumb-container: 20px под строкой поиска. */
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .mp-h1{
        margin: 0;
    }
    .no-excursions{
        display: block;
        margin: 30px auto;
        padding: 10px 15px;
        background: #e3e3e3;
        width: 100%;
        text-align: center;
    }
