/* RTS Media Proofs CSS — Живая фото- и видеофиксация со склада г. Тольятти */

/* Скролл и общее позиционирование */
html {
    scroll-behavior: smooth;
}

/* Плавающая кнопка быстрого скролла на карте */
.rts-map-scroll-down-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.rts-map-scroll-down-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Секция медиа-доказательств */
.rts-media-proofs-section {
    background: #0b1120;
    padding: 40px 24px 60px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rts-media-inner {
    max-width: 1380px;
    margin: 0 auto;
}

/* Хедер секции */
.rts-media-header {
    text-align: center;
    margin-bottom: 32px;
}
.rts-media-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.rts-media-title {
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
    line-height: 1.25;
}
.rts-media-subtitle {
    font-size: 15px;
    color: #94a3b8;
    max-width: 780px;
    margin: 0 auto 18px auto;
    line-height: 1.5;
}
.rts-media-stats-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #cbd5e1;
}
.rts-media-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.rts-media-stat-item i {
    color: #38bdf8;
}

/* Баннер выбранной модели */
.rts-model-alert {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #93c5fd;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.rts-model-alert strong {
    color: #fff;
}

/* Официальные каналы */
.rts-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.rts-channel-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.rts-channel-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.rts-channel-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.rts-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.icon-rutube {
    background: rgba(225, 29, 72, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(225, 29, 72, 0.3);
}
.icon-catalog {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}
.icon-max {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.rts-channel-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.rts-channel-info p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}
.rts-channel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
}
.btn-rutube {
    background: #e11d48;
    color: #fff;
}
.btn-rutube:hover { background: #be123c; }

.btn-catalog {
    background: #2563eb;
    color: #fff;
}
.btn-catalog:hover { background: #1d4ed8; }

.btn-max {
    background: #10b981;
    color: #fff;
}
.btn-max:hover { background: #059669; }

/* Панель фильтров галереи */
.rts-gallery-controls {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rts-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.rts-type-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rts-media-type-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rts-media-type-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.rts-media-type-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.rts-search-wrap {
    flex: 1;
    max-width: 380px;
    position: relative;
}
.rts-search-wrap input {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 14px 8px 36px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.rts-search-wrap input:focus {
    border-color: #3b82f6;
}
.rts-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
}

/* Модели в галерее */
.rts-models-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.rts-filter-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-right: 4px;
}
.rts-gallery-model-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}
.rts-gallery-model-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.rts-gallery-model-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.rts-media-total-badge {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

/* Сетка карточек */
.rts-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Карточка медиа */
.rts-media-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.rts-media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.rts-card-media-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #0f172a;
    overflow: hidden;
    cursor: pointer;
}
.rts-card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.rts-media-card:hover .rts-card-media-wrap img {
    transform: scale(1.04);
}

/* Бейджи поверх превью */
.rts-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
    transition: all 0.2s;
}
.rts-media-card:hover .rts-play-badge {
    transform: translate(-50%, -50%) scale(1.12);
    background: #e11d48;
}

.rts-photo-zoom-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
    transition: all 0.2s;
}
.rts-media-card:hover .rts-photo-zoom-badge {
    transform: translate(-50%, -50%) scale(1.12);
    background: #10b981;
}

.rts-badge-chip {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}
.rts-chip-video {
    top: 10px;
    left: 10px;
    background: rgba(225, 29, 72, 0.9);
    color: #fff;
}
.rts-chip-photo {
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
}
.rts-chip-otk {
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}
.rts-chip-seal {
    top: 10px;
    right: 10px;
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

/* Тело карточки */
.rts-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.rts-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}
.rts-tag-model {
    font-weight: 800;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
}
.rts-tag-city {
    color: #94a3b8;
    font-weight: 600;
}
.rts-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rts-card-logistics {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.4;
}
.rts-card-logistics div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.rts-card-logistics div:last-child {
    margin-bottom: 0;
}
.rts-card-logistics i {
    color: #38bdf8;
    font-size: 11px;
}

/* Футер карточки */
.rts-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rts-btn-watch {
    flex: 1;
    background: #e11d48;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}
.rts-btn-watch:hover {
    background: #be123c;
}

.rts-btn-view-photo {
    flex: 1;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}
.rts-btn-view-photo:hover {
    background: #1d4ed8;
}

.rts-btn-chat-ask {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.rts-btn-chat-ask:hover {
    background: #10b981;
    color: #fff;
}

/* Пагинация */
.rts-media-pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.rts-btn-load-more {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.rts-btn-load-more:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* Модальные окна */
.rts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rts-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    max-width: 840px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    display: flex;
    flex-direction: column;
}

.rts-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rts-modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.rts-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s;
}
.rts-modal-close-btn:hover {
    background: #ef4444;
    color: #fff;
}

.rts-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}
.rts-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rts-photo-wrapper {
    background: #000;
    text-align: center;
    max-height: 70vh;
    overflow: auto;
}
.rts-photo-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.rts-modal-footer {
    padding: 12px 18px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.rts-modal-note {
    font-size: 12px;
    color: #94a3b8;
}
.rts-modal-actions {
    display: flex;
    gap: 10px;
}

/* Пустое состояние */
.rts-media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #1e293b;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}
.rts-media-empty h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}
.rts-media-empty p {
    font-size: 13px;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 16px auto;
    line-height: 1.5;
}
.rts-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 768px) {
    #map-container {
        height: 420px !important;
        min-height: 420px !important;
    }
    .rts-media-proofs-section {
        padding: 30px 14px 50px 14px;
    }
    .rts-media-title {
        font-size: 22px;
    }
    .rts-channels-grid {
        grid-template-columns: 1fr;
    }
    .rts-media-grid {
        grid-template-columns: 1fr;
    }
    .rts-map-scroll-down-btn {
        bottom: 14px;
        right: 14px;
        font-size: 11px;
        padding: 8px 14px;
    }
}
