/* Подключение шрифта Gilroy локально */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.woff2') format('woff2'),
         url('../fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.woff2') format('woff2'),
         url('../fonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.woff2') format('woff2'),
         url('../fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.woff2') format('woff2'),
         url('../fonts/Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/**
 * Стили для агрегатора туров Нячанг
 */

/* ВАЖНО: Применяем Gilroy ко всем элементам плагина */
.nhatrang-tours-container,
.nhatrang-tours-container *,
.nhatrang-tours-container *::before,
.nhatrang-tours-container *::after {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Общий контейнер */
.nhatrang-tours-container {
    max-width: 1200px;
    margin: 20px auto;
    color: #333;
}

/* Заголовок */
.nhatrang-tours-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.nhatrang-tours-header h1 {
    font-size: 2em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.nhatrang-tours-header p {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 0;
}

/* Основной контейнер */
.nhatrang-tours-main {
    display: flex;
    gap: 30px;
}

/* Боковая панель */
.nhatrang-tours-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Список туров */
.nhatrang-tours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nhatrang-tour-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nhatrang-company-description {
    font-size: 0.9em;
    color: #666;
    margin: 8px 0 0 0;
    line-height: 1.5;
    font-weight: 400;
}

.nhatrang-tour-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.nhatrang-tour-item.active {
    border-color: #3498db;
    background: #f8fbff;
}

.nhatrang-tour-item h3 {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.nhatrang-tour-description {
    display: none;
}

/* Опции тура в левом меню - СКРЫТЫ */
.nhatrang-tour-options {
    display: none;
}

/* Контент справа */
.nhatrang-tours-content {
    flex: 1;
}

.nhatrang-tour-details {
    display: none;
}

.nhatrang-tour-details.active {
    display: block;
}

.nhatrang-tour-details h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.nhatrang-tour-details-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Опции тура в правом блоке */
.nhatrang-tour-options-right {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.nhatrang-tour-options-right .nhatrang-tour-option-btn {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.nhatrang-tour-options-right .nhatrang-tour-option-btn:hover {
    border-color: #D2FF1F;
    background: #f8fbff;
    transform: translateY(-2px);
}

.nhatrang-tour-options-right .nhatrang-tour-option-btn.active {
    border-color: #D2FF1F;
    background: #D2FF1F;
    color: #292929;
    box-shadow: 0 4px 8px rgba(210, 255, 31, 0.3);
}

/* Список компаний - НОВЫЙ ДИЗАЙН БЕЗ ИЗОБРАЖЕНИЙ */
.nhatrang-companies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nhatrang-companies-container {
    display: none;
}

.nhatrang-companies-container.active {
    display: block;
}

.nhatrang-company-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

/* Контент карточки */
.nhatrang-company-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Верхняя часть */
.nhatrang-company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.nhatrang-company-title-section {
    flex: 1;
}

.nhatrang-company-name {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

/* Теги */
.nhatrang-company-tags {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.nhatrang-company-tag {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85em;
    color: #555;
}

.nhatrang-company-tag.highlight {
    background: #FFF3E0;
    border-color: #FFB74D;
    color: #E65100;
}

.nhatrang-company-tag.beach {
    background: #E3F2FD;
    border-color: #64B5F6;
    color: #1565C0;
}

/* Нижняя часть - цена и кнопка */
.nhatrang-company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.nhatrang-company-price-section {
    display: flex;
    flex-direction: column;
}

.nhatrang-company-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
}

.nhatrang-company-price-label {
    font-size: 0.85em;
    color: #999;
    font-weight: 400;
}

.nhatrang-company-price-note {
    font-size: 0.8em;
    color: #FF6B35;
    margin-top: 2px;
}

.nhatrang-company-book-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #FF6B35;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none !important;
    text-align: center;
}

.nhatrang-company-book-btn:hover {
    background: #E55A25;
    transform: scale(1.05);
    color: white !important;
}

.nhatrang-company-book-btn:visited {
    color: white !important;
}

.nhatrang-company-book-btn:active {
    color: white !important;
}

.nhatrang-company-book-btn:focus {
    color: white !important;
    outline: none;
}

/* Пустое состояние */
.nhatrang-tours-empty,
.nhatrang-companies-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #7f8c8d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nhatrang-tours-main {
        flex-direction: column;
    }

    .nhatrang-tours-sidebar {
        width: 100%;
    }

    .nhatrang-company-card {
        flex-direction: column;
    }

    .nhatrang-company-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .nhatrang-company-book-btn {
        width: 100%;
    }

    .nhatrang-tour-options-right {
        flex-direction: row;
    }

    .nhatrang-tour-options-right .nhatrang-tour-option-btn {
        flex: 1;
    }
}

/* Анимация загрузки */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nhatrang-company-card {
    animation: fadeIn 0.3s ease;
}

/* WhatsApp стили */
.nhatrang-company-whatsapp {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.nhatrang-whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nhatrang-whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}