/* Стили для страницы profiles.php */

/* Глобальные переменные для темы */
:root {
    --primary-color: #d81b60; /* Основной розовый */
    --primary-hover-color: #a0144a;
    --secondary-color: #1f1f1f; /* Темно-серый для блоков */
    --background-color: #121212; /* Основной фон */
    --text-color: #e0e0e0; /* Основной текст */
    --text-muted-color: #a0a0a0; /* Приглушенный текст */
    --border-color: #333; /* Цвет границ */
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень для карточек */
    --hero-overlay-start: rgba(0, 0, 0, 0.6);
    --hero-overlay-end: rgba(0, 0, 0, 0.9);
    --section-bg: rgba(255, 255, 255, 0.03);
    --section-border: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--background-color) !important;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif; /* Пример шрифта */
}

/* Общий контейнер контента (если нужен специфичный фон/отступы) */
/* .main-content { */
    /* background-color: #121212; */
/* } */

/* --- Основная сетка (Фильтры + Анкеты) --- */
.profiles-page-row {
    /* Можно добавить отступы, если нужно */
}

.filters-col {
    /* Стили для колонки фильтров */
    /* background-color: #1e1e1e; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    /* border: 1px solid #333; */
    /* margin-bottom: 20px; */ /* Отступ снизу на мобильных */
}

.profiles-col {
    /* Стили для колонки с анкетами */
    padding-left: 30px; /* Отступ от фильтров */
}

@media (max-width: 991.98px) {
    .profiles-col {
        padding-left: 15px; /* Уменьшаем отступ на планшетах/мобильных */
        margin-top: 30px; /* Добавляем отступ сверху */
    }
}


/* --- Блок фильтров --- */
.filters-container {
    background-color: #1f1f1f; /* Явный цвет */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #e0e0e0; /* Явный цвет текста в фильтрах */
}

.filters-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    color: #ffffff; /* Явный цвет заголовка */
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: inherit; /* Наследуем от .filters-container */
}

.filters-container .form-control,
.filters-container .form-select {
    background-color: #121212 !important; /* Явный цвет */
    border-color: #333 !important;
    color: #e0e0e0 !important;
    border-radius: 8px;
}

.filters-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.filters-container .form-select option {
    background-color: #1F1F1F !important; /* Явный цвет */
    color: #f0f0f0 !important;
}

.filters-container .form-check-label {
     color: inherit; /* Наследуем от .filters-container */
}

.filters-container .form-check-input {
    background-color: #121212 !important; /* Явный цвет */
    border-color: #333 !important;
}

.filters-container .form-check-input:checked {
    background-color: #d81b60 !important; /* Явный цвет */
    border-color: #d81b60 !important;
}

.active-filters {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
}

.active-filter-item {
    display: inline-block;
    background-color: #d81b60; /* Явный цвет */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 3px;
    font-size: 0.85rem;
}

.active-filter-item .close {
    color: white;
    margin-left: 5px;
    opacity: 0.7;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.active-filter-item .close:hover {
    opacity: 1;
}

.reset-filters-btn {
    font-size: 0.9rem;
    margin-top: 10px;
}
/* Ссылка на доп фильтры */
.advanced-filters-toggle {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    transition: all 0.3s ease;
     color: #9ec5fe !important; /* Явный цвет */
     text-decoration: none;
}
.advanced-filters-toggle:hover {
    letter-spacing: 0.5px;
    color: #c7dfff !important; /* Явный цвет */
}
.advanced-filters-toggle i {
    transition: transform 0.3s ease;
}
.advanced-filters-toggle.collapsed i {
    transform: rotate(0deg);
}
.advanced-filters-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-buttons .btn-primary {
    color: white;
}


/* --- Секции (VIP, Популярные) и Слайдеры --- */
.section-container {
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 30px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #e0e0e0; /* Явный цвет текста по умолчанию */
}

.section-title {
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    /* margin-top: 60px; */ /* Убираем верхний отступ, если секция первая */
    position: relative;
    padding-bottom: 15px;
    color: #ffffff; /* Явный цвет заголовков секций */
}

.section-title span {
    color: #d81b60; /* Явный цвет */
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #d81b60; /* Явный цвет */
    margin: 10px auto 0;
}

.profiles-slider-container {
    position: relative;
    padding: 0 30px; /* Оставляем отступы для кнопок */
}

.profiles-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0; /* Оставляем внутренний отступ */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 25px;
}

.profiles-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- Слайд анкеты --- */
.profile-slide {
    flex: 0 0 auto; /* Не растягивать, не сжимать, базовая ширина авто */
    width: 260px; /* Ширина слайда */
    height: 380px; /* Высота слайда */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Явный цвет */
    transition: all 0.3s ease;
    background-color: #1f1f1f; /* Явный цвет */
    color: #e0e0e0; /* Явный цвет */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-slide:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2); /* Явный цвет */
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-slide a.profile-card-link { /* Используем общий класс ссылки */
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
    position: relative; /* Для позиционирования дочерних элементов */
}
.profile-slide a.profile-card-link:hover {
    text-decoration: none !important;
}

.profile-slide .profile-slide-img { /* Специфичный класс для img в слайде */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.profile-slide:hover .profile-slide-img {
    transform: scale(1.05);
}

.profile-slide .profile-slide-overlay { /* Специфичный класс для overlay в слайде */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.1));
    padding: 15px;
    color: white;
    transition: background 0.3s ease;
}
.profile-slide:hover .profile-slide-overlay {
     background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.15));
}


.profile-slide .profile-slide-title { /* Специфичный класс для title в слайде */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.profile-slide .profile-slide-info { /* Специфичный класс для info в слайде */
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.profile-slide .profile-slide-info i {
    margin-right: 5px;
}

/* --- Общие элементы карточки/слайда (цена, vip) --- */
.profile-card-price { /* Общий стиль для цены */
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d81b60; /* Явный цвет */
    color: white;
    padding: 4px 10px; /* Уменьшил немного */
    border-radius: 20px;
    font-size: 0.8rem; /* Уменьшил немного */
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vip-badge { /* Общий стиль для VIP */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FFD700; /* Золотой */
    color: #333; /* Темный текст на золотом */
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* --- Контролы слайдера --- */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color, #9b4f96); /* Используем переменную или запасной цвет */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-control:hover {
    background-color: var(--secondary-color, #d81b60);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: -10px;
}

.slider-control.next {
    right: -10px;
}

/* --- Блок результатов основной сетки --- */
.results-container {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px; /* Отступ от слайдеров */
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0; /* Явный цвет текста */
}

/* Заголовок основного блока анкет */
.main-profiles-title { /* Если используется такой заголовок */
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: #ffffff; /* Явный цвет */
    position: relative;
}

/* Строка с количеством и сортировкой */
.results-header-row { /* Добавляем класс для этой строки */
     margin-bottom: 20px;
     background-color: rgba(255, 255, 255, 0.03);
     padding: 10px 15px;
     border-radius: 8px;
     border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-count {
    /* background-color: rgba(255, 255, 255, 0.03); */
    /* padding: 10px 15px; */
    /* border-radius: 8px; */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    font-weight: 500;
    color: inherit; /* Наследуем */
    margin: 0; /* Убираем лишние отступы */
    display: flex;
    align-items: center;
    height: 100%; /* Для выравнивания по центру с селектом */
}

.profile-count span {
    font-weight: 700;
    color: #d81b60; /* Явный цвет */
    padding: 3px 8px;
    background-color: rgba(216, 27, 96, 0.1);
    border-radius: 20px;
    margin-left: 8px;
}

.sort-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* background-color: rgba(255, 255, 255, 0.03); */
    /* padding: 10px 15px; */
    /* border-radius: 8px; */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    margin: 0; /* Убираем лишние отступы */
}

.sort-options .sort-label {
    font-weight: 500;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0; /* Убираем отступ снизу */
}

.sort-options .form-select {
    background-color: #1f1f1f !important; /* Явный цвет */
    border-color: #333 !important;
    color: #e0e0e0 !important;
    max-width: 200px;
    display: inline-block;
    width: auto;
    border-radius: 20px; /* Скругленные края */
    font-weight: 500;
    padding: 8px 30px 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem; /* Уменьшаем шрифт селекта */
}

/* --- Карточка анкеты в основной сетке --- */
.profile-card {
    background-color: #1f1f1f; /* Явный цвет */
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Явный цвет */
    transition: all 0.3s ease;
    height: 400px; /* Фиксированная высота */
    position: relative;
    overflow: hidden; /* Важно, чтобы изображение не вылезало */
    color: #e0e0e0; /* Явный цвет */
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2); /* Явный цвет */
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-card a.profile-card-link { /* Общий класс ссылки */
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
    position: relative; /* Для позиционирования дочерних элементов */
}
.profile-card a.profile-card-link:hover {
     text-decoration: none !important;
}


.profile-card .profile-image { /* Специфичный класс для img в карточке */
    width: 100%;
    height: 100%; /* Растягиваем на всю высоту карточки */
    object-fit: cover; /* Масштабируем с сохранением пропорций, обрезая лишнее */
    object-position: center; /* Центрируем изображение */
    transition: transform 0.4s ease;
    display: block;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.profile-card .card-img-overlay { /* Специфичный класс для overlay в карточке */
    position: absolute;
    top: 0; /* Растягиваем на всю карточку */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Прижимаем контент к низу */
    padding: 20px;
    color: white;
    transition: background 0.3s ease;
}
.profile-card:hover .card-img-overlay {
     background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.15));
}


.profile-card .card-title { /* Специфичный класс для title в карточке */
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.profile-card .card-info { /* Специфичный класс для info в карточке */
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.profile-card .card-info i {
    margin-right: 5px;
}

.profile-card .card-img-overlay .btn-primary { /* Кнопка/span "Подробнее" */
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    color: white;
    align-self: flex-start; /* Выравниваем по левому краю */
    margin-top: 10px;
    background-color: #d81b60; /* Явный цвет кнопки */
    border-color: #d81b60; /* Явный цвет */
    transition: all 0.3s ease;
}
.profile-card:hover .card-img-overlay .btn-primary {
    background-color: #a0144a; /* Явный цвет */
    border-color: #a0144a; /* Явный цвет */
    transform: scale(1.05);
}


/* --- Пагинация --- */
.pagination-container {
    margin-top: 40px;
    margin-bottom: 40px; /* Отступ снизу */
}

.pagination .page-link {
    background-color: #1f1f1f; /* Явный цвет */
    border-color: #333;
    color: white; /* Светлый текст */
    border-radius: 50%; /* Круглые кнопки */
    margin: 0 5px; /* Отступы между кнопками */
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Плавный переход */
}

.pagination .page-link:hover {
    background-color: #d81b60; /* Явный цвет */
    border-color: #d81b60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: #d81b60 !important; /* Явный цвет */
    border-color: #d81b60 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-color: #333;
    box-shadow: none;
    pointer-events: none; /* Делаем некликабельной */
}

/* --- Блок "Анкеты не найдены" --- */
.no-profiles {
    background-color: #1f1f1f; /* Явный цвет */
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    border: 1px dashed #333;
    margin-top: 30px; /* Отступ сверху, если сетка пуста */
    color: #e0e0e0; /* Явный цвет текста */
}

.no-profiles-icon i {
    font-size: 4rem;
    color: #d81b60; /* Явный цвет */
    margin-bottom: 25px;
}

.no-profiles-text {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffffff; /* Явный цвет заголовка */
}

.no-profiles p {
    color: inherit; /* Наследуем */
    margin-bottom: 10px;
}

.no-profiles a.reset-filters-btn {
     color: #9ec5fe !important; /* Явный цвет */
}
.no-profiles a.reset-filters-btn:hover {
     color: #c7dfff !important; /* Явный цвет */
}

/* --- Стили для галереи фотографий профиля --- */
.profile-gallery {
    margin-top: 20px;
}

.gallery-item {
    display: block;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    /* height: 250px; */ /* Убираем фиксированную высоту */
    aspect-ratio: 3 / 4; /* Задаем соотношение сторон 3:4 */
    object-fit: cover; /* Масштабируем и обрезаем для одинакового вида */
    transition: transform 0.4s ease;
    display: block; /* Убираем возможные отступы под img */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Стили для lightbox галереи */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* --- Стили для страницы детального просмотра профиля (profile.php) --- */

.profile-container {
    background-color: #1f1f1f;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    border: 1px solid #333;
}

.profile-header {
    margin-bottom: 40px;
}

.profile-photo-container {
    position: relative;
    margin-bottom: 30px;
}

.profile-main-photo {
    width: 100%;
    /* max-height: 500px; */ /* Убираем, пусть высота определяется контентом */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.verified-badge {
    position: absolute;
    top: 15px; /* Немного опустим */
    right: 15px; /* Немного отодвинем */
    background-color: rgba(33, 150, 243, 0.8);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
}

.profile-thumbnails-grid {
    /* Стили для сетки миниатюр */
    margin-top: 15px; /* Отступ сверху */
}

.profile-thumbnails-grid .col-3 {
    padding: 2px; /* Маленькие отступы для сетки */
}

.thumbnail-img {
    width: 100%;
    height: 70px; /* Фиксированная высота миниатюр */
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img.active {
    opacity: 1;
    border-color: #d81b60;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(216, 27, 96, 0.5);
}

.thumbnail-img:hover:not(.active) {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.3);
}

.view-all-photos-btn {
    margin-top: 10px;
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.view-all-photos-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

/* УДАЛЯЕМ СТАРЫЕ СТИЛИ ДЛЯ ГОРИЗОНТАЛЬНОЙ ПРОКРУТКИ */
/* .profile-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
} */

/* .thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
} */

/* .thumbnail-item.active {
    opacity: 1;
    border-color: #d81b60;
} */

/* .thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-3px);
} */

/* .view-all-photos {
    flex: 0 0 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
} */

/* .view-all-photos:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
} */


.profile-name {
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-vip-badge {
    display: inline-block;
    background-color: #d81b60;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-meta-item i {
    color: #d81b60;
    font-size: 18px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.profile-contact-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.4);
}

.btn-telegram {
    background-color: #0088cc;
}

.btn-telegram:hover {
    background-color: #006699;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 153, 0.4);
}

.btn-phone {
    background-color: #d81b60;
}

.btn-phone:hover {
    background-color: #a0144a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 20, 74, 0.4);
}

.admin-buttons {
    display: flex;
    gap: 10px;
}

.admin-btn {
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.profile-content {
    margin-top: 40px;
}

.profile-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.profile-section-icon {
    position: absolute;
    top: -15px;
    left: 25px;
    background-color: #d81b60;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.profile-description {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.service-item i {
    color: #d81b60;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.price-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.price-amount {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.price-currency {
    color: #d81b60;
    font-weight: normal;
}

/* --- Новый дизайн страницы профиля --- */

.profile-page-container {
    padding-top: 0; /* Убираем отступ сверху, если навбар фиксированный */
}

/* --- Hero Section --- */
.profile-hero {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    /* Убрали градиент отсюда, т.к. он в inline-стиле */
}

.profile-hero .container {
    position: relative;
    z-index: 2;
}

.hero-main-photo {
    width: 200px; /* Размер фото */
    height: 200px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
}

.hero-verified-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #1da1f2; /* Twitter blue */
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translate(25%, 25%); /* Сдвигаем немного */
}

.hero-info {
    /* Стили для блока информации */
}

.hero-name {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-vip-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--card-shadow);
}

.hero-location {
    color: rgba(255, 255, 255, 0.85);
}

.hero-contact-buttons .btn {
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-contact-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.admin-buttons .btn-sm {
    font-size: 0.8rem;
    padding: 5px 10px;
}


/* --- Основной контент профиля --- */
.main-profile-content {
    /* Общие стили для контейнера контента */
}

.modern-profile-section {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.modern-section-title {
    font-size: 1.5rem; /* Уменьшаем немного */
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.modern-section-title i {
    color: var(--primary-color);
    font-size: 1.3rem; /* Делаем иконку чуть меньше */
}

.modern-section-content {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

/* Стили для тегов услуг */
.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    background-color: var(--section-bg);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--section-border);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-tag i {
    color: var(--primary-color);
    opacity: 0.8;
}

.service-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.service-tag:hover i {
    color: white;
    opacity: 1;
}

/* Стили для галереи */
.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb img {
    width: 100%;
    /* height: 250px; */ /* Убираем фиксированную высоту */
    aspect-ratio: 3 / 4; /* Задаем соотношение сторон 3:4 */
    object-fit: cover; /* Масштабируем и обрезаем для одинакового вида */
    transition: transform 0.4s ease;
    display: block; /* Убираем возможные отступы под img */
}

.gallery-thumb:hover {
    transform: translateY(-5px); /* Немного приподнимаем при наведении */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Убираем transform для img при наведении на контейнер, чтобы избежать двойного эффекта */
/* .gallery-thumb:hover img {
     transform: scale(1.05); 
}*/


/* Стили для боковой колонки */
.profile-details-list li,
.profile-prices-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--section-border);
}

.profile-details-list li:last-child,
.profile-prices-list li:last-child {
    border-bottom: none;
}

.profile-details-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px; /* Фикс ширина для иконок */
    text-align: center;
}

.profile-details-list span {
    flex-grow: 1;
    color: var(--text-muted-color);
}

.profile-details-list span strong {
    color: var(--text-color);
    margin-right: 5px;
}

.profile-prices-list .price-duration {
    color: var(--text-muted-color);
    display: flex;
    align-items: center;
}

.profile-prices-list .price-duration i {
    margin-right: 8px;
    color: var(--primary-color);
}

.profile-prices-list .price-amount {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.profile-availability {
    font-style: italic;
    color: var(--text-muted-color);
    background-color: var(--section-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Добавляем класс для обертки сайдбара */
.sidebar-profile {
    /* Можно добавить стили если нужно */
}

/* Стили для .sticky-lg-top теперь применяются через CSS */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: -webkit-sticky;
        position: sticky;
        top: 20px; /* Возвращаем фиксированный top */
        /* z-index: 1020; */ /* Убираем z-index временно */
    }
    /* Возможно, потребуется задать top для конкретных элементов, если простой top:20px не сработает */
}

/* Удаляем старые стили для контейнера, шапки, фото, миниатюр */
.profile-container,
.profile-header,
/* .profile-photo-container, -- нужны базовые стили? */
/* .profile-main-photo, -- нужны базовые стили? */
.verified-badge, /* Заменен на .hero-verified-badge */
.profile-thumbnails-grid,
.thumbnail-img,
.view-all-photos-btn,
.profile-name, /* Заменен на .hero-name */
.profile-vip-badge, /* Заменен на .hero-vip-badge */
.profile-meta,
.profile-meta-item,
.contact-buttons,
.profile-contact-btn,
.btn-whatsapp,
.btn-telegram,
.btn-phone,
.profile-content, /* Логика контента изменена */
.profile-section, /* Заменен на .modern-profile-section */
.profile-section-icon,
.profile-section-title,
.profile-description,
.services-grid,
.service-item,
.prices-grid,
.price-item,
.price-duration,
.price-amount,
.price-currency {
    /* display: none !important; */ /* Можно временно скрыть, чтобы убедиться, что новые стили применились */
    /* Или просто удалить эти селекторы из файла */
}

/* Стили для старой галереи тоже можно удалить */
.profile-gallery,
.gallery-item,
.lightbox,
.lightbox-content,
.lightbox-img,
.lightbox-close,
.lightbox-nav,
.lightbox-prev,
.lightbox-next {
   /* display: none !important; */
}

/* Добавляем немного адаптивности */
@media (max-width: 991.98px) {
    .profile-hero {
        padding: 40px 0;
        text-align: center;
    }
    .hero-main-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    .hero-info {
        text-align: center;
    }
    .hero-contact-buttons {
        justify-content: center;
    }
    .sticky-lg-top {
        position: static !important; /* Отключаем залипание на мобильных */
    }
}

@media (max-width: 767.98px) {
    .hero-name {
        font-size: 2rem;
    }
    .hero-contact-buttons .btn-lg {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    .modern-section-title {
        font-size: 1.3rem;
    }
    .gallery-thumb img {
        height: 150px;
    }
}


/* --- Стили для filters.php (если они здесь были, оставить или перенести) --- */
/* ... стили для .filters-container, .filter-group и т.д. ... */

/* --- Стили для profiles.php (карточки и пагинация) --- */
/* ... стили для .profile-card, .pagination и т.д. ... */

/* --- Стили для index.php (слайдеры и секции) --- */
/* ... стили для .profiles-slider, .profile-slide и т.д. ... */

/* --- СТИЛИ ДЛЯ СЛАЙДЕРОВ (СКОПИРОВАНЫ ИЗ index.php) --- */
.profiles-slider-container {
    position: relative;
    /* margin: 40px 0; */ /* Убираем или корректируем отступ для profiles.php */
    padding: 0 30px; /* Оставляем отступы для кнопок */
}

.profiles-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0; /* Оставляем внутренний отступ */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 25px;
}

.profiles-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Стили для слайда - УЖЕ ЕСТЬ ВЫШЕ как .profile-slide */
/* .profile-slide { ... } */
/* .profile-slide-img { ... } */
/* .profile-slide:hover .profile-slide-img { ... } */
/* .profile-slide-overlay { ... } */
/* .profile-slide:hover .profile-slide-overlay { ... } */
/* .profile-slide-title { ... } */
/* .profile-slide-info { ... } */
/* .profile-slide-vip { ... } */
/* .profile-slide-price { ... } */

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color, #9b4f96); /* Используем переменную или запасной цвет */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-control:hover {
    background-color: var(--secondary-color, #d81b60);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: -10px;
}

.slider-control.next {
    right: -10px;
}
/* Убеждаемся что стили слайдера не конфликтуют с основной сеткой */
.profiles-col .profiles-slider-container {
     margin-bottom: 30px; /* Добавляем отступ снизу для слайдеров */
}

/* Разделитель между слайдерами и сеткой */
.profiles-divider {
    border-top: 1px solid var(--border-color, #333);
    margin: 40px 0;
}


/* Убедитесь, что стили ниже не конфликтуют с новыми стилями профиля */