/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    flex: 1;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.navbar {
    background-color: #212529 !important;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-brand:hover {
    color: #f8f9fa !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.logout {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logout:hover {
    color: #ffffff !important;
}

/* ============================================
   КАРТОЧКИ
   ============================================ */
.card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-title {
    font-weight: 600;
    color: #212529;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card-text {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-body {
    padding: 0;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: #ffffff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    color: #ffffff;
}

.btn-outline-primary {
    color: #212529;
    border-color: #212529;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: #212529;
    color: #ffffff;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #ffffff;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #ffffff;
}

/* ============================================
   ФОРМЫ
   ============================================ */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #212529;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #212529;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

.control-label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.help-block {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ============================================
   ДЖУМБОТРОН
   ============================================ */
.jumbotron {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
}

.jumbotron h1 {
    font-weight: 700;
    color: #212529;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.jumbotron .lead {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 300;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.review-item {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.review-item strong {
    color: #212529;
    font-weight: 600;
}

.review-item .rating {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 1px;
}

.review-item .text-muted {
    font-size: 0.85rem;
    color: #6c757d !important;
}

/* ============================================
   БАДЖИ
   ============================================ */
.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */
.table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #212529;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    padding: 20px 0;
    margin-top: 40px;
}

.footer p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   ССЫЛКИ
   ============================================ */
a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #495057;
    text-decoration: underline;
}

/* ============================================
   АЛАРТЫ
   ============================================ */
.alert {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ============================================
   ФОРМА ПОИСКА
   ============================================ */
.search-form {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination {
    justify-content: center;
    gap: 4px;
}

.pagination .page-link {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #212529;
    border-radius: 6px;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 16px 0;
    margin: 0;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #212529;
}

.breadcrumb-item.active {
    color: #495057;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
    content: '/';
}

/* ============================================
   КАРТОЧКИ ТУРОВ В СЕТКЕ
   ============================================ */
.tour-card {
    height: 100%;
}

.tour-card .card-body {
    display: flex;
    flex-direction: column;
}

.tour-card .card-text {
    flex: 1;
}

.tour-card .btn {
    align-self: flex-start;
    margin-top: 12px;
}

/* ============================================
   ДЕТАЛИ ТУРА
   ============================================ */
.tour-details p {
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tour-details strong {
    color: #212529;
    font-weight: 600;
}

.description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.description h4 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 12px;
}

.description p {
    color: #495057;
    line-height: 1.8;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */
@media (max-width: 768px) {
    .jumbotron {
        padding: 24px 16px;
    }

    .jumbotron h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 16px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .search-form {
        padding: 16px;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table td {
        padding: 8px 12px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ============================================ */
.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mt-3 {
    margin-top: 16px !important;
}

.mt-4 {
    margin-top: 24px !important;
}

.p-4 {
    padding: 24px !important;
}

.p-3 {
    padding: 16px !important;
}

.text-center {
    text-align: center !important;
}

.w-100 {
    width: 100% !important;
}

/* ============================================
   СКРОЛЛБАР
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #212529;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #343a40;
}