/* tourist.css - Стили для ЛК туриста: профиль, приватные объявления, предложения гидов, заявки, групповые экскурсии, бронирование, флип-карточки, адаптив | css, турист, лк, стили, профиль, объявления, заявки, групповые, бронирование, адаптив */

/**
 * tourist.css - Стили для личного кабинета туриста
 * 
 * 📌 НАЗНАЧЕНИЕ:
 * Обеспечивает оформление всех страниц личного кабинета туриста (ЛК туриста).
 * Включает стили для профиля, приватных объявлений, предложений гидов,
 * заявок на экскурсии, групповых экскурсий, бронирования, важных сообщений,
 * флип-карточек (просмотр профиля гида), модальных окон и адаптивной вёрстки.
 * 
 * 🔧 ОСНОВНЫЕ КОМПОНЕНТЫ:
 * - Переменные (CSS-переменные): цвета, тени, радиусы, переходы
 * - Профиль туриста (аватар, имя, кнопки действий)
 * - Приватные объявления (.private-card) — создание и управление
 * - Предложения гидов (.guide-offer-card) — просмотр и бронирование
 * - Заявки (.request-card) — статусы (pending, accepted, rejected, completed, cancelled)
 * - Групповые экскурсии (.group-tour-card) — даты, участники, запись
 * - Запланированные экскурсии (.scheduled-tabs, .scheduled-subpanel)
 * - Флип-карточки (.tourist-flip-*) — переворот для просмотра профиля гида
 * - Модальное окно профиля гида (#guideProfileModal)
 * - Модальное окно бронирования (.booking-modal)
 * - Важные сообщения (.important-messages-container)
 * - Фильтры (.filters-panel) с поиском и сортировкой
 * - Уведомления (.urgent-notifications-container)
 * - Футер (.new-footer)
 * - Адаптивность (медиазапросы для мобильных устройств)
 * 
 * ⚠️ ОСОБЕННОСТИ:
 * - Использует CSS-переменные, согласованные с gid.css и landing.css
 * - Адаптивная сетка карточек (grid: repeat(auto-fill, minmax(380px, 1fr)))
 * - Анимации появления (fadeIn, slideUp, slideIn, pulse)
 * - Стили для статусов заявок (ожидание, принято, отклонено, завершено, отменено)
 * - Флип-карточки с 3D-переворотом и предпросмотром профиля гида
 * - Модальное окно бронирования с выбором даты, времени, количества участников
 * - Модальное окно профиля гида (аватар, имя, опыт, город, девиз, предложения, описание)
 * - Стилизованный select в фильтрах с кастомной стрелкой
 * - Адаптивные стили для мобильных устройств (768px)
 * 
 * 📁 СВЯЗАННЫЕ ФАЙЛЫ:
 * - 03_lk_tourist.php (HTML-шаблон ЛК туриста)
 * - tourist-functions.js (основная логика ЛК туриста)
 * - tourist-flip-card.css (стили флип-карточек, часть этого файла)
 * - landing.css (глобальные переменные и шапка)
 * - gid.css (частично переиспользуются стили профиля)
 * - spravka.php (справочная система)
 * 
 * 🏷️ КЛЮЧЕВЫЕ СЛОВА ДЛЯ ПОИСКА:
 * css, турист, лк, стили, профиль, объявления, заявки, групповые, бронирование,
 * адаптив, флип-карточки, профиль гида, модальные окна, фильтры, уведомления,
 * статусы, заявки, групповые экскурсии, приватные объявления, чат, отзывы,
 * tourist, cabinet, profile, bookings, group-tours, flip-card
 */
           
        :root {
            --color-primary: #1f6392;
            --color-success: #2b5e3b;
            --color-warning: #f39c12;
            --color-danger: #dc3545;
            --color-info: #9b59b6;
            --color-text-dark: #1f3a5f;
            --color-text-light: #5b6e8c;
            --color-border: #cbd5e1;
            --color-bg-light: #f8fafc;
            --shadow-sm: 0 10px 20px rgba(0,0,0,0.05);
            --shadow-md: 0 20px 35px -12px rgba(0,0,0,0.1);
            --radius-md: 1.2rem;
            --radius-lg: 1.5rem;
            --radius-xl: 2rem;
            --transition: all 0.2s ease;
        }
        
        * {
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
        }
        
        body {
            background: #f5f7fa;
        }
        
        .cabinet-wrapper {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        
        .profile-bar {
            background: white;
            border-radius: var(--radius-lg);
            padding: 1rem 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
        }
        
        .avatar-container {
            position: relative;
            display: inline-block;
        }
        
        .profile-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--color-primary);
            background: #e9ecef;
            transition: all 0.3s ease;
        }
        
        .avatar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }
        
        .avatar-container:hover .avatar-overlay {
            opacity: 1;
        }
        
        .avatar-overlay span {
            color: white;
            font-size: 0.7rem;
            text-align: center;
            font-weight: bold;
        }
        
        .edit-avatar-icon {
            position: absolute;
            bottom: 0;
            right: 0;
            background: var(--color-primary);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            cursor: pointer;
            border: 2px solid white;
            transition: all 0.3s ease;
            z-index: 5;
        }
        
        .edit-avatar-icon:hover {
            background: var(--color-success);
            transform: scale(1.1);
        }
        
        .profile-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--color-text-dark);
        }
        
        .profile-name span {
            font-weight: normal;
            color: var(--color-text-light);
            font-size: 0.9rem;
        }
        
        .action-buttons {
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }
        
        .contact-admin-btn {
            background: var(--color-primary);
            color: white;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .contact-admin-btn:hover {
            background: #0e4a6e;
            transform: translateY(-2px);
        }
        
        .logout-btn {
            background: var(--color-danger);
            color: white;
            border: none;
            padding: 0.6rem 1.5rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
        }
        
        .logout-btn:hover {
            background: #c82333;
            transform: translateY(-2px);
        }
        
        .create-private-btn {
            background: var(--color-info);
            color: white;
            font-size: 1.1rem;
            padding: 1rem 2rem;
            margin-bottom: 2rem;
            width: 100%;
            border: none;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .create-private-btn:hover {
            background: #8e44ad;
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        
        .tabs-switch {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            border-bottom: 2px solid var(--color-border);
            padding-bottom: 0.5rem;
        }
        
        .tab-btn {
            background: none;
            border: none;
            padding: 0.8rem 1.8rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            color: var(--color-text-light);
            border-radius: 2rem;
            position: relative;
        }
        
        .tab-btn:hover {
            color: var(--color-primary);
            background: #e9ecef;
        }
        
        .tab-btn.active {
            color: white;
            background: var(--color-primary);
        }
        
        .response-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #dc3545;
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            animation: pulse 1s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .tab-panel {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .tab-panel.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .filters-panel {
            background: var(--color-bg-light);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--color-border);
        }
        
        .filters-form {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: flex-end;
        }
        
        .filter-group {
            flex: 1;
            min-width: 180px;
        }
        
        .filter-group label {
            font-weight: 600;
            display: block;
            margin-bottom: 0.4rem;
            color: var(--color-text-dark);
            font-size: 0.85rem;
        }
        
        .filter-group input {
            width: 100%;
            padding: 0.7rem 1rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--color-border);
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .filter-group input:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(31,99,146,0.1);
        }
        
        .filter-actions {
            display: flex;
            gap: 0.8rem;
        }
        
        .btn-filter {
            background: var(--color-primary);
            color: white;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-filter:hover {
            background: #0e4a6e;
            transform: translateY(-2px);
        }
        
        .btn-reset-filters {
            background: #95a5a6;
            color: white;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-reset-filters:hover {
            background: #7f8c8d;
            transform: translateY(-2px);
        }
        
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }
        
        /* Стили для карточек приватных объявлений */
        .private-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            border-left: 6px solid var(--color-info);
            position: relative;
        }
        
        .private-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        /* Стили для карточек предложений гидов */
        .guide-offer-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            border-left: 6px solid var(--color-primary);
        }
        
        .guide-offer-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .offer-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eef2f6;
        }
        
        .guide-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .guide-avatar-small {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #1f6392;
        }
        
        .guide-details {
            flex: 1;
        }
        
        .guide-name {
            font-weight: 600;
            font-size: 16px;
            color: #1f3a5f;
        }
        
        .card-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: #0f2c3d;
            line-height: 1.3;
        }
        
        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.7rem;
            color: var(--color-text-light);
            margin-bottom: 0.75rem;
            border-bottom: 1px dashed #e2e8f0;
            padding-bottom: 0.5rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .city-badge {
            background: #e3f2fd;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #1976d2;
        }
        
        .price-badge {
            background: #e8f5e9;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #2e7d32;
        }
        
        .duration-badge {
            background: #fff3e0;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #f39c12;
        }
        
        .people-badge {
            background: #e8f0fe;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #1f6392;
        }
        
        .private-badge {
            background: #f3e5f5;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--color-info);
        }
        
        .card-desc-wrapper {
            flex: 1;
            margin: 0.5rem 0;
        }
        
        .card-desc {
            color: #2d3e50;
            line-height: 1.5;
            font-size: 0.9rem;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            transition: all 0.3s ease;
        }
        
        .card-desc.expanded {
            display: block;
            -webkit-line-clamp: unset;
        }
        
        .expand-link {
            display: inline-block;
            color: #3498db;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 0.5rem;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .expand-link:hover {
            color: #ff6600;
            text-decoration: underline;
        }
        
        .card-actions {
            display: flex;
            gap: 0.8rem;
            margin-top: 1rem;
            justify-content: flex-end;
            flex-wrap: wrap;
        }
        
        .btn-book {
            background: var(--color-success);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-book:hover {
            background: #1e4529;
            transform: translateY(-2px);
        }
        
        .btn-chat-offer {
            background: #27ae60;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-chat-offer:hover {
            background: #229954;
            transform: translateY(-2px);
        }
        
        .btn-edit {
            background: #f39c12;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-edit:hover {
            background: #e67e22;
            transform: translateY(-2px);
        }
        
        .btn-delete {
            background: var(--color-danger);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-delete:hover {
            background: #c82333;
            transform: translateY(-2px);
        }
        
        .empty-message {
            background: #f1f5f9;
            text-align: center;
            padding: 2rem;
            border-radius: var(--radius-xl);
            color: #4a627a;
            font-style: italic;
        }
        
        .info-note {
            background: #e8f0fe;
            border-radius: 0.8rem;
            padding: 0.8rem;
            margin-top: 1rem;
            font-size: 0.85rem;
            color: #1f6392;
            text-align: center;
        }
        
        .contact-info {
            background: #e8f5e9;
            padding: 0.8rem;
            border-radius: 0.8rem;
            margin-top: 0.8rem;
            font-size: 0.85rem;
            border-left: 3px solid var(--color-success);
        }
        
        .offer-list {
            margin-top: 0.8rem;
            background: var(--color-bg-light);
            border-radius: 1rem;
            padding: 0.7rem;
        }
        
        .single-offer {
            border-top: 1px solid #e2edf2;
            padding: 0.7rem 0;
            font-size: 0.85rem;
        }
        
        .single-offer:first-child {
            border-top: none;
            padding-top: 0;
        }
        
        .single-offer.rejected {
            background: #fee2e2;
            border-left: 3px solid var(--color-danger);
            border-radius: 0.5rem;
            padding: 0.7rem;
            margin: 0.5rem 0;
        }
        
        .status-badge {
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            display: inline-block;
        }
        
        .status-accepted {
            background: #d4edda;
            color: #155724;
        }
        
        .status-pending {
            background: #fff3cd;
            color: #856404;
        }
        
        .status-rejected {
            background: #f8d7da;
            color: #721c24;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: var(--radius-lg);
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.2s ease;
        }
        
        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-content h3 {
            margin-bottom: 1rem;
            color: var(--color-text-dark);
        }
        
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }
        
        .form-group {
            margin-bottom: 1.2rem;
        }
        
        .form-group label {
            font-weight: 600;
            display: block;
            margin-bottom: 0.4rem;
            color: var(--color-text-dark);
            font-size: 0.85rem;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            font-size: 0.95rem;
            font-family: inherit;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        
        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }
        
        .modal-buttons button {
            flex: 1;
            padding: 0.8rem;
            border-radius: 2rem;
            border: none;
            font-weight: 600;
            cursor: pointer;
        }
        
        .btn-submit {
            background: var(--color-success);
            color: white;
        }
        
        .btn-cancel {
            background: #95a5a6;
            color: white;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 0.8s linear infinite;
            margin-right: 8px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 1rem;
            border-radius: 1rem;
            border-left: 4px solid #28a745;
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2000;
            max-width: 90%;
            width: 400px;
            text-align: center;
        }
        
        /* Модальное окно бронирования */
        .booking-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .booking-modal.active {
            display: flex;
        }
        
        .booking-modal-content {
            max-width: 550px;
            width: 90%;
            background: white;
            border-radius: 24px;
            overflow: hidden;
            animation: slideUp 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .booking-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: linear-gradient(135deg, #1f6392 0%, #0e4a6e 100%);
            color: white;
        }
        
        .booking-header h3 {
            margin: 0;
            font-size: 1.2rem;
        }
        
        .booking-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .booking-close:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .booking-info {
            padding: 20px 24px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .excursion-preview {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .excursion-icon {
            font-size: 2rem;
            background: white;
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .excursion-details h4 {
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            color: #1f3a5f;
        }
        
        .excursion-meta {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        
        .meta-tag {
            font-size: 0.8rem;
            color: #5b6e8c;
        }
        
        .booking-warning {
            display: flex;
            gap: 12px;
            background: #fff3e0;
            border-left: 3px solid #f39c12;
            padding: 12px;
            border-radius: 12px;
        }
        
        .warning-icon {
            font-size: 1.2rem;
        }
        
        .warning-text {
            font-size: 0.8rem;
            color: #856404;
        }
        
        .warning-text ul {
            margin: 6px 0 0 20px;
        }
        
        .booking-form {
            padding: 20px 24px;
        }
        
        .date-selectors {
            display: flex;
            gap: 8px;
        }
        
        .date-selectors select {
            flex: 1;
            padding: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            background: white;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .time-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            background: white;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .participants-control {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #f8fafc;
            padding: 4px 8px;
            border-radius: 32px;
            width: fit-content;
        }
        
        .participant-btn {
            width: 32px;
            height: 32px;
            border: none;
            background: white;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #1f6392;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .participant-btn:hover {
            background: #1f6392;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(31, 99, 146, 0.2);
        }
        
        #bookingParticipants {
            width: 48px;
            text-align: center;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            background: transparent;
            padding: 6px 0;
            color: #1f3a5f;
        }
        
        .participants-note {
            display: block;
            font-size: 0.7rem;
            color: #666;
            margin-top: 4px;
        }
        
        textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #cbd5e1;
            border-radius: 16px;
            font-family: inherit;
            resize: vertical;
            font-size: 0.9rem;
        }
        
        .price-summary {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 16px;
            margin-top: 20px;
        }
        
        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            font-size: 0.9rem;
        }
        
        .summary-row.total {
            border-top: 1px solid #cbd5e1;
            margin-top: 8px;
            padding-top: 12px;
            font-weight: 700;
            font-size: 1rem;
            color: #2b5e3b;
        }
        
        .booking-actions {
            display: flex;
            gap: 12px;
            padding: 16px 24px 24px;
            border-top: 1px solid #e2e8f0;
            background: white;
        }
        
        .booking-actions button {
            flex: 1;
            padding: 12px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }
        
        .booking-actions .btn-cancel {
            background: #e9ecef;
            border: none;
            color: #5b6e8c;
        }
        
        .booking-actions .btn-cancel:hover {
            background: #dee2e6;
        }
        
        .booking-actions .btn-submit {
            background: #2b5e3b;
            border: none;
            color: white;
        }
        
        .booking-actions .btn-submit:hover {
            background: #1e4529;
            transform: translateY(-2px);
        }
        
        .urgent-notifications-container {
            margin-bottom: 1.5rem;
        }
        
        .urgent-notification {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
            border-radius: 1rem;
            padding: 1rem 1.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
            animation: slideIn 0.3s ease;
            position: relative;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @media (max-width: 768px) {
            .profile-bar {
                flex-direction: column;
                text-align: center;
            }
            .profile-info {
                flex-direction: column;
            }
            .action-buttons {
                width: 100%;
                justify-content: center;
            }
            .tabs-switch {
                flex-direction: column;
            }
            .tab-btn {
                width: 100%;
                text-align: center;
            }
            .filters-form {
                flex-direction: column;
            }
            .filter-actions {
                width: 100%;
            }
            .btn-filter, .btn-reset-filters {
                flex: 1;
            }
            .cards-grid {
                grid-template-columns: 1fr;
            }
            .form-row {
                grid-template-columns: 1fr;
            }
            .urgent-notification {
                flex-direction: column;
                align-items: flex-start;
            }
            .booking-modal-content {
                width: 95%;
            }
            .excursion-preview {
                flex-direction: column;
                text-align: center;
            }
            .excursion-meta {
                justify-content: center;
            }
            .date-selectors {
                flex-direction: column;
            }
        }
        
        /* Кнопка "Скрыть/Показать на доске" */
.btn-toggle-board {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-toggle-board:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* ============================================
   ГРУППОВЫЕ ЭКСКУРСИИ ДЛЯ ТУРИСТА - ОБНОВЛЕННЫЙ ДИЗАЙН
   ============================================ */

/* Контейнер с экскурсиями */
.group-tours-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Карточка экскурсии */
.group-tour-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
}

.group-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Шапка карточки */
.tour-card-header {
    position: relative;
    background: linear-gradient(135deg, #1f6392 0%, #0e4a6e 100%);
    padding: 1.2rem 1.5rem;
    color: white;
}

.tour-card-header .tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tour-card-header .tour-guide {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Бейджи */
.tour-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1f3a5f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tour-badge.city {
    background: #e3f2fd;
    color: #1976d2;
}

.tour-badge.duration {
    background: #fff3e0;
    color: #f39c12;
}

.tour-badge.price {
    background: #e8f5e9;
    color: #2e7d32;
}

.tour-badge.people {
    background: #e8f0fe;
    color: #1f6392;
}

/* Описание */
.tour-description {
    padding: 1.2rem 1.5rem;
    color: #4a627a;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid #eef2f6;
}

/* Блок дат */
.tour-dates-section {
    padding: 1rem 1.5rem;
    background: #ffffff;
}

.dates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dates-header strong {
    font-size: 0.9rem;
    color: #1f3a5f;
    font-weight: 600;
}

/* Сетка дат */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Карточка даты */
.date-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #27ae60;
    transition: all 0.2s;
}

.date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #27ae60;
}

.date-card.closed::before {
    background: #dc3545;
}

.date-card.closed:hover {
    border-color: #dc3545;
}

/* Дата и время */
.date-datetime {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.date-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f3a5f;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.date-time {
    font-size: 0.85rem;
    color: #5b6e8c;
}

/* Прогресс участников */
.participants-progress {
    margin: 0.8rem 0;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 1rem;
    height: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: #27ae60;
    height: 100%;
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.date-card.closed .progress-fill {
    background: #dc3545;
}

.participants-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #5b6e8c;
}

.participants-number {
    font-weight: 600;
    color: #1f3a5f;
}

.available-badge {
    color: #27ae60;
    font-weight: 600;
    background: #e8f5e9;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
}

.full-badge {
    color: #dc3545;
    font-weight: 600;
    background: #fee2e2;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
}

/* Кнопка записи */
.date-actions {
    margin-top: 1rem;
}

.btn-join-tour {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #1e4529 100%);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-join-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-join-tour:active {
    transform: translateY(0);
}

/* Пустое состояние */
.empty-message {
    background: #f1f5f9;
    text-align: center;
    padding: 2rem;
    border-radius: 1.5rem;
    color: #4a627a;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dates-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-card-header .tour-title {
        font-size: 1.1rem;
    }
    
    .tour-badges {
        gap: 0.5rem;
    }
    
    .tour-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* ============================================
   ВАЖНЫЕ СООБЩЕНИЯ
   ============================================ */
.important-messages-container {
    margin-bottom: 1rem;
}

.important-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.important-messages-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.btn-important-message {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-important-message:hover {
    background: #0e4a6e;
    transform: translateY(-1px);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
}

.important-message-card {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    position: relative;
}

.important-message-card .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.important-message-card .message-date {
    font-size: 0.7rem;
    color: #856404;
}

.important-message-card .message-tour {
    font-weight: 600;
    font-size: 0.8rem;
    color: #856404;
    background: rgba(0,0,0,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.important-message-card .message-text {
    font-size: 0.9rem;
    color: #1f3a5f;
    line-height: 1.4;
    word-break: break-word;
}

.empty-messages {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.8rem;
    background: #f8fafc;
    border-radius: 1rem;
}

/* Модальное окно отправки сообщения */
#importantMessageModal .modal-content {
    max-width: 500px;
}

#importantMessageModal select {
    width: 100%;
    padding: 0.7rem;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
}

#importantMessageModal textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
    resize: vertical;
    font-family: inherit;
}

/* ============================================
   ПЕРЕКЛЮЧАТЕЛИ ВКЛАДКИ "ЗАПЛАНИРОВАННЫЕ"
   ============================================ */
.scheduled-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 3rem;
    width: fit-content;
}

.scheduled-tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #5b6e8c;
}

.scheduled-tab-btn.active {
    background: #1f6392;
    color: white;
    box-shadow: 0 2px 8px rgba(31,99,146,0.2);
}

.scheduled-tab-btn:hover:not(.active) {
    background: #e9ecef;
    color: #1f3a5f;
}

.scheduled-subpanel {
    display: none;
}

.scheduled-subpanel.active {
    display: block;
}

/* Карточки групповых записей */
.group-booking-card {
    border-left: 6px solid #f39c12;
}

.group-booking-card .status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.group-booking-card .status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.btn-edit-group-booking {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-group-booking:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-delete-group-booking {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-group-booking:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Стили для flip-карточек туриста */
.offer-card {
    padding: 20px;
    position: relative;
    background: white;
    border-radius: 16px;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.tourist-flip-btn-profile-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1f6392;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tourist-flip-btn-profile-corner:hover {
    background: #0e4a6e;
    transform: translateY(-1px);
}

.offer-card .guide-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f6;
    padding-right: 90px;
}

.offer-card .offer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f2c3d;
    margin-bottom: 12px;
}

.offer-card .offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.offer-card .tag {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #5b6e8c;
}

.offer-card .offer-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2b5e3b;
    margin: 12px 0;
}

.offer-card .offer-description {
    color: #4a627a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 12px 0;
    flex: 1;
}

.offer-card .offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.offer-card .btn-chat {
    flex: 1;
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.offer-card .btn-chat:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* Кнопка профиля на карточке предложения гида */
.guide-profile-btn {
    transition: all 0.2s ease;
}

.guide-profile-btn:hover {
    background: #0e4a6e !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 99, 146, 0.3);
}

.guide-profile-btn:active {
    transform: scale(0.95);
}

/* Модальное окно профиля гида */
#guideProfileModal .modal-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1f6392;
    margin: 0 auto 15px;
    display: block;
}

.profile-initials-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f6392, #0e4a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.profile-name-large {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f2c3d;
    text-align: center;
    margin-bottom: 5px;
}

.profile-experience {
    font-size: 0.8rem;
    color: #1f6392;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f6;
}

.profile-section {
    margin-bottom: 15px;
    text-align: left;
}

.profile-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
}

.profile-slogan {
    font-style: italic;
    color: #5b6e8c;
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.profile-proposals-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.profile-tag {
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #1f6392;
    border: 1px solid #e2e8f0;
}

.profile-description {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    max-height: 150px;
    overflow-y: auto;
}

/* Стили для select в фильтрах (чтобы были как input) */
.filter-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31,99,146,0.1);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .filter-group select {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Стили для карточек заявок */
.request-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 6px solid var(--color-primary);
    position: relative;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.request-card.pending {
    border-left-color: #f39c12;
    background: #fffef7;
}

.request-card.accepted {
    border-left-color: #2b5e3b;
    background: #f5fff5;
}

.request-card.rejected {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.request-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.request-status .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.request-status .status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.request-status .status-badge.accepted {
    background: #d4edda;
    color: #155724;
}

.request-status .status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.request-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2c3d;
    margin-bottom: 0.5rem;
    padding-right: 100px;
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #5b6e8c;
}

.request-date {
    color: #f39c12;
}

.request-guide {
    font-weight: 500;
    color: #1f6392;
}

.request-price {
    font-weight: 600;
    color: #2b5e3b;
}

.request-participants {
    color: #1f6392;
}

.request-comment {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #475569;
    margin: 10px 0;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-chat-request {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chat-request:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-cancel-request {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-request:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-rebook {
    background: #1f6392;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rebook:hover {
    background: #0e4a6e;
    transform: translateY(-1px);
}

/* Стили для карточек архива */
.archive-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 6px solid #6c757d;
    position: relative;
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.archive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f6;
}

.archive-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.archive-guide {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f6392;
}

.archive-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2c3d;
    margin-bottom: 10px;
}

.archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #5b6e8c;
}

.archive-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-review {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.2s;
}

/* Статус completed для заявок */
.request-card.completed {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

.request-status .status-badge.completed {
    background: #6c757d;
    color: white;
}

/* Статус отмены для заявок */
.request-card.cancelled {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.request-status .status-badge.cancelled {
    background: #dc3545;
    color: white;
}

/* Стили для модального окна сообщений */
.message-group-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.message-group-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-group-header {
    padding: 15px;
    cursor: pointer;
    position: relative;
}

.message-group-date {
    font-size: 0.7rem;
    color: #1f6392;
    margin-bottom: 5px;
}

.message-group-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1f3a5f;
    margin-bottom: 5px;
}

.message-group-preview {
    font-size: 0.8rem;
    color: #5b6e8c;
    padding-right: 30px;
}

.message-group-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 0.8rem;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eef2f6;
}

.message-item:last-child {
    border-bottom: none;
}

.message-cancellation {
    background: #fff5f5;
}

.message-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-text {
    font-size: 0.85rem;
    color: #1f3a5f;
    line-height: 1.4;
}

.message-time {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 5px;
}

/* ============================================
   НОВЫЙ ФУТЕР (единый с главной страницей)
   ============================================ */
.new-footer {
    background: #0a1e2f;
    color: #cbd5e1;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.new-footer a {
    color: #94a3b8;
    text-decoration: none;
}
.new-footer a:hover {
    color: white;
}
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}


.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-name-large {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f2c3d;
}

.header-action-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f1f5f9;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

.header-action-icon:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.settings-gear-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f1f5f9;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.settings-gear-icon:hover {
    background: #e2e8f0;
    transform: scale(1.05) rotate(30deg);
}


/* ============================================
   ФИЛЬТРЫ ДЛЯ "МОИ ОБЪЯВЛЕНИЯ"
   ============================================ */

/* Контейнер фильтров */
.filters-panel {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.filters-panel:hover {
    border-color: #cbd5e1;
}

/* Форма фильтров */
.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

/* Группа фильтра */
.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #334155;
    letter-spacing: 0.3px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dce2ec;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #1e293b;
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #1f6392;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 99, 146, 0.1);
}

.filter-group input::placeholder {
    color: #94a3b8;
}

/* Кнопки действий */
.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 9px 22px;
    background: #1f6392;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: #0e4a6e;
    transform: translateY(-1px);
}

.btn-filter:active {
    transform: translateY(0px);
}

.btn-reset-filters {
    padding: 9px 22px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.btn-reset-filters:active {
    transform: translateY(0px);
}

/* Подсказка под фильтрами */
.filters-hint {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-left: 2px;
}

.filters-hint i {
    margin-right: 4px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .filter-actions button {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
    }
    
    .filters-panel {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .filters-panel {
        padding: 12px 14px;
    }
    
    .filter-group label {
        font-size: 0.75rem;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .btn-filter,
    .btn-reset-filters {
        font-size: 13px;
        padding: 8px 14px;
    }
}


/* ============================================
   КНОПКА "ЧАТ С ГИДОМ" В ЗАЯВКАХ (переопределение)
   ============================================ */

/* Кнопка "Чат с гидом" в приватных заявках */
.private-card .btn-chat {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: #1f6392 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    min-width: auto !important;
}

.private-card .btn-chat:hover {
    background: #0e4a6e !important;
    transform: translateY(-1px) !important;
}

.private-card .btn-chat:active {
    transform: translateY(0px) !important;
}

/* Если кнопка в .offer-list или .single-offer */
.offer-list .btn-chat,
.single-offer .btn-chat {
    display: inline-block !important;
    padding: 6px 16px !important;
    background: #1f6392 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.offer-list .btn-chat:hover,
.single-offer .btn-chat:hover {
    background: #0e4a6e !important;
    transform: translateY(-1px) !important;
}

.offer-list .btn-chat:active,
.single-offer .btn-chat:active {
    transform: translateY(0px) !important;
}


/* ============================================
   TOGGLE SWITCH ДЛЯ ЧАТА С АДМИНИСТРАТОРОМ
   ============================================ */

.toggle-switch {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Фон переключателя */
.toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Круглый ползунок (белый кружок) */
.toggle-switch .toggle-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ВКЛЮЧЕНО: фон синий */
.toggle-switch input:checked + .toggle-slider {
    background: #1f6392;
}

/* ВКЛЮЧЕНО: ползунок смещается вправо */
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Ховер эффект */
.toggle-switch .toggle-slider:hover {
    box-shadow: 0 0 0 4px rgba(31, 99, 146, 0.15);
}

.toggle-switch input:checked + .toggle-slider:hover {
    box-shadow: 0 0 0 4px rgba(31, 99, 146, 0.25);
}

/* Отключённое состояние */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Стили для контейнера */
.shesterenka-form-group-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.shesterenka-form-group-inline label {
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: block;
}


/* ===== ПОДВКЛАДКИ АРХИВА ===== */
.archive-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #e2e8f0;
}

.subtab-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subtab-btn:hover {
    background: #f1f5f9;
    color: #1f6392;
}

.subtab-btn.active {
    background: #1f6392;
    color: white;
    box-shadow: 0 2px 8px rgba(31, 99, 146, 0.3);
}

.subtab-btn .reviews-tab-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: top;
    min-width: 18px;
    text-align: center;
}

.subtab-panel {
    display: none;
}

.subtab-panel.active {
    display: block;
}

/* ===== СПИСОК ОТЗЫВОВ (как в Важное) ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-excursion-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.review-excursion-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #1f6392;
}

.review-excursion-info {
    flex: 1;
    min-width: 200px;
}

.review-excursion-info .excursion-title {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 4px;
}

.review-excursion-info .excursion-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.review-excursion-info .excursion-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.review-status-not_submitted {
    background: #f1f5f9;
    color: #64748b;
}

.review-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.review-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.review-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.review-excursion-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-review {
    padding: 6px 18px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-review-write {
    background: #1f6392;
    color: white;
}

.btn-review-write:hover {
    background: #155a7a;
    transform: scale(1.02);
}

.btn-review-view {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-review-view:hover {
    background: #cbd5e1;
}

.btn-review-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ===== ЗВЁЗДЫ ДЛЯ КАРТОЧЕК ЭКСКУРСИЙ ===== */
.excursion-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.2s;
}

.excursion-rating:hover {
    background: #f1f5f9;
}

.excursion-rating .stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 1px;
}

.excursion-rating .reviews-count {
    font-size: 13px;
    color: #64748b;
}

.excursion-rating .rating-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* ===== СТИЛИ ДЛЯ МОДАЛОК ОТЗЫВОВ ===== */

/* Оверлей для модалок */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Контент модалки просмотра отзыва */
.review-view-modal .modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.review-view-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.review-view-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.review-view-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.review-view-modal .modal-close:hover {
    color: #1e293b;
}

.review-view-modal .modal-body {
    padding: 24px;
}

.review-view-modal .excursion-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #1f6392;
}

.review-view-modal .excursion-info h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 16px;
}

.review-view-modal .excursion-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.review-view-modal .rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-view-modal .stars-display {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 2px;
}

.review-view-modal .rating-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.review-view-modal .status-display {
    font-size: 14px;
    margin-bottom: 10px;
}

.review-view-modal .comment-display {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #1f6392;
    margin-bottom: 10px;
}

.review-view-modal .comment-display p {
    margin: 8px 0 0 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-view-modal .review-warning {
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin: 15px 0;
}

.review-view-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    margin: 0 -24px -24px -24px;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

.review-view-modal .btn-secondary {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #e2e8f0;
    color: #1e293b;
    transition: background 0.2s;
}

.review-view-modal .btn-secondary:hover {
    background: #cbd5e1;
}

/* Модалка написания отзыва уже есть стили в reviewWriteModal.html */


/* ===== ЗВЁЗДЫ РЕЙТИНГА В КАРТОЧКАХ ===== */
.offer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    cursor: pointer;
}

.offer-rating:hover .rating-stars {
    opacity: 0.8;
}

.offer-rating .rating-stars {
    font-size: 16px;
    letter-spacing: 1px;
}

.offer-rating .rating-value {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.offer-rating .reviews-count {
    font-size: 13px;
    color: #94a3b8;
}


/* ============================================================
   ФИЛЬТРЫ АРХИВА
   ============================================================ */
.archive-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.archive-filter-btn {
    padding: 8px 18px;
    border: 2px solid #dce2ec;
    border-radius: 20px;
    background: white;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.archive-filter-btn:hover {
    border-color: #1f6392;
    color: #1f6392;
}

.archive-filter-btn.active {
    border-color: #1f6392;
    background: #1f6392;
    color: white;
}

.archive-filter-btn.active:hover {
    background: #1a5276;
    border-color: #1a5276;
}

/* Счётчик в архиве */
.archive-total {
    margin-left: auto;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

/* ============================================
   КНОПКА ПРИНЯТЬ ПРЕДЛОЖЕНИЕ ГИДА
   ============================================ */

.accept-private-offer-btn {
    background: #2b5e3b !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.accept-private-offer-btn:hover {
    background: #1e4529 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(43, 94, 59, 0.3) !important;
}

.accept-private-offer-btn:active {
    transform: scale(0.96) !important;
}