/* Уникальные стили программы тура JuniorJet (префикс jj-) */
.jj-tour-program {
    font-family: 'Inter', sans-serif;
    color: #1a1c1c;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.4;
    font-size: 14px;
}
.jj-tour-program * {
    box-sizing: border-box;
}

/* Иконки Material Symbols */
.jj-icon {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* Заголовки */
.jj-header { margin-bottom: 20px; }
.jj-title { font-size: 32px; font-weight: 700; color: #1e1e1e; margin-bottom: 8px; line-height: 1.2; }
.jj-subtitle { color: #666; font-size: 14px; margin: 0; }

/* Основные секции */
.jj-section { 
    margin-bottom: 20px; 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 16px; 
    border: 1px solid #ddd; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}
.jj-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1e1e1e;
}

/* Дни программы */
.jj-day-block { margin-bottom: 16px; }
.jj-day-header-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.jj-day-badge { 
    display: inline-block; 
    position: relative;
    z-index: 2;
    padding: 4px 10px; 
    border-radius: 12px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: #1e1e1e; 
    margin: 0;
}
.jj-day-divider {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}
.jj-bg-blue { background-color: #EBF2FF; }
.jj-bg-purple { background-color: #F3E8FF; }
.jj-bg-green { background-color: #E8F5E9; }
.jj-bg-gray { background-color: #dce3f0; }
.jj-bg-light { background-color: #e8e8e8; }

/* Универсальные карточки (События + Экскурсии) */
.jj-event-card { 
    padding: 6px 8px; 
    border-radius: 6px; 
    margin-bottom: 4px; 
    transition: background-color 0.2s; 
    border: 1px solid transparent; 
    -webkit-tap-highlight-color: transparent; 
}
.jj-event-card.jj-has-toggle { cursor: pointer; }
.jj-event-card.jj-has-toggle:hover { background-color: #f9f9f9; }
.jj-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.jj-event-title { 
    font-size: 16px; 
    font-weight: 600; 
    color: #1e1e1e; 
    margin: 0; 
    flex-grow: 1;
    padding-right: 8px;
}
.jj-chevron {
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.jj-event-card.jj-expanded .jj-chevron { transform: rotate(180deg); }

.jj-event-desc { 
    font-size: 13px; 
    color: #666; 
    margin: 0; 
    margin-top: 4px;
}
.jj-event-desc.jj-clamp {
    display: -webkit-box; 
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; 
    overflow: hidden;
}
.jj-event-card.jj-expanded .jj-event-desc.jj-clamp { 
    -webkit-line-clamp: 9999; 
}

/* Информационные блоки (База/Документы) */
.jj-info-container { 
    display: grid; 
    gap: 12px; 
    margin-bottom: 20px; 
}
.jj-info-grid-2 { grid-template-columns: 1fr 1fr; }
.jj-info-grid-1 { grid-template-columns: 1fr; }
@media (max-width: 768px) { 
    .jj-info-container { grid-template-columns: 1fr; } 
}

.jj-info-card { 
    padding: 16px; 
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
}
.jj-info-card--blue { background-color: #EBF2FF; }
.jj-info-card--purple { background-color: #F3E8FF; }
.jj-info-title { 
    font-size: 16px; 
    font-weight: 600; 
    margin: 0 0 8px 0; 
    color: #1e1e1e;
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

/* Аккордеоны базовые */
.jj-accordion { border-bottom: 1px solid #ddd; }
.jj-accordion:last-child { border-bottom: none; }
.jj-accordion-btn { 
    width: 100%; 
    text-align: left; 
    background-color: #f3f3f3; 
    border: none; 
    padding: 10px 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    color: #1e1e1e; 
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 2px;
    -webkit-tap-highlight-color: transparent;
}
.jj-accordion-btn:hover { background-color: #e8e8e8; }
.jj-accordion-icon { transition: transform 0.2s; color: #666; font-size: 20px; font-weight: bold; }
.jj-accordion-btn.jj-active .jj-accordion-icon { transform: rotate(180deg); }
.jj-accordion-content { 
    display: none; 
    padding: 8px 8px 12px 8px; 
    font-size: 13px; 
    color: #666; 
}
.jj-accordion-content.jj-active { display: block; }

/* Размещение (Отели) */
.jj-hotel-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
    margin-top: 8px; 
}
.jj-hotel-card { 
    background: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden;
}
.jj-hotel-header {
    background: #f3f3f3;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.jj-hotel-body { padding: 12px; }
.jj-hotel-title { font-size: 16px; font-weight: 600; margin: 0; color: #1e1e1e; }
.jj-hotel-badge { 
    display: inline-block; 
    background: #dadada; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 700; 
    margin: 0; 
    color: #1a1c1c; 
}
.jj-hotel-img { 
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    border-radius: 4px; 
    float: left;
    margin: 0 12px 4px 0; 
}

/* Фотогалерея */
.jj-gallery-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}
.jj-gallery-carousel::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
.jj-gallery-thumb {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}
.jj-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.jj-gallery-thumb:hover img { transform: scale(1.05); }

/* Лайтбокс Галереи */
.jj-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    flex-direction: column;
    color: #fff;
}
.jj-lightbox.jj-active { display: flex; }
.jj-lb-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}
.jj-lb-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2;}
.jj-lb-author { font-size: 13px; color: #ccc; margin-top: 4px; }
.jj-lb-close {
    font-size: 36px;
    line-height: 24px;
    cursor: pointer;
    padding: 0 0 10px 10px;
}
.jj-lb-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.jj-lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}
.jj-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.2s;
}
.jj-lb-nav:hover { color: #fff; }
.jj-lb-prev { left: 0; }
.jj-lb-next { right: 0; }
@media (max-width: 768px) {
    .jj-lb-nav { display: none; /* На мобилках свайп */ }
}
.jj-lb-footer {
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.jj-lb-details-btn {
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    color: #ddd;
}
.jj-lb-details-content {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #bbb;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 6px;
}
.jj-lb-details-content.jj-active { display: block; }
.jj-lb-details-content a { color: #fff; text-decoration: underline; }

/* FAQ */
.jj-faq-wrapper { 
    background: #ffffff; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    margin-bottom: 20px; 
}
.jj-faq-header {
    background-color: #f3f3f3;
    padding: 16px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 12px 12px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
}
.jj-faq-item { border-bottom: 1px solid #ddd; }
.jj-faq-item:last-child { border-bottom: none; }
.jj-faq-btn { 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    padding: 12px 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600; 
    color: #1e1e1e; 
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.jj-faq-btn:hover { background-color: #f9f9f9; }
.jj-faq-icon { color: #666; font-size: 20px; font-weight: 400; line-height: 1; }
.jj-faq-content { 
    display: none; 
    padding: 0 16px 12px 16px; 
    font-size: 13px; 
    color: #666; 
}
.jj-faq-content.jj-active { display: block; }

/* SEO Блок */
.jj-seo-section { 
    background: #f3f3f3; 
    border-radius: 12px; 
    padding: 16px; 
    margin-bottom: 20px; 
    font-size: 13px; 
    color: #666; 
}
.jj-seo-fade { 
    position: relative; 
    max-height: 4.5em; 
    overflow: hidden; 
}
.jj-seo-fade::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; 
    width: 100%; height: 2em; 
    background: linear-gradient(to bottom, rgba(243,243,243,0), rgba(243,243,243,1)); 
    pointer-events: none; 
}
.jj-seo-fade.jj-expanded { max-height: 1000px; }
.jj-seo-fade.jj-expanded::after { display: none; }
.jj-seo-btn { 
    color: #1e1e1e; 
    font-weight: 700; 
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    margin-top: 8px; 
    text-decoration: underline; 
    font-family: inherit;
}

/* Полезные статьи */
.jj-articles-section { margin-bottom: 20px; }
.jj-articles-scroll { 
    display: flex; 
    overflow-x: auto; 
    gap: 12px; 
    padding-bottom: 12px; 
    scrollbar-width: none; 
}
.jj-articles-scroll::-webkit-scrollbar { display: none; }
.jj-article-card { 
    flex-shrink: 0; 
    width: 200px; 
    height: 200px;
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    overflow: hidden; 
    display: block; 
    text-decoration: none; 
    transition: box-shadow 0.2s; 
}
.jj-article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.jj-article-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Блок Тегов */
.jj-tags-section {
    margin-top: 24px;
    margin-bottom: 24px;
}
.jj-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jj-tag-link {
    display: inline-block;
    background: #f3f3f3;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid #ddd;
}
.jj-tag-link:hover { background: #e8e8e8; }