/**
 * TripFest - Hotelbeds Integration Styles
 * Стили для интеграции с Hotelbeds API
 */

/* ========== СЕКЦИЯ РЕЗУЛЬТАТОВ ПОИСКА ========== */
.search-results-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1c1f26;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ========== КАРТОЧКА ОТЕЛЯ ========== */
.hotel-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hotel-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-card-image img {
    transform: scale(1.1);
}

.hotel-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1781FE 0%, #0EA9D0 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 129, 254, 0.3);
}

.hotel-card-content {
    padding: 20px;
}

.hotel-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1c1f26;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.hotel-card-location i {
    font-size: 18px;
    color: #1781FE;
}

.hotel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.hotel-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #1781FE;
}

.hotel-card-button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #1781FE 0%, #0EA9D0 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
}

.hotel-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 129, 254, 0.4);
}

/* ========== МОДАЛЬНОЕ ОКНО ОТЕЛЯ ========== */
.hotel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.hotel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.hotel-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

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

.hotel-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hotel-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hotel-modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #1781FE 0%, #0EA9D0 100%);
    color: #fff;
}

.hotel-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
}

.hotel-modal-rating {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hotel-modal-body {
    padding: 30px;
}

.hotel-modal-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hotel-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-modal-info {
    margin-bottom: 30px;
}

.hotel-modal-info p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
}

.hotel-modal-info strong {
    color: #1c1f26;
    font-weight: 600;
    font-family: 'Noto Sans Armenian', sans-serif;
}

/* Список номеров */
.rooms-list {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.rooms-list h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1c1f26;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.room-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1c1f26;
    font-family: 'Noto Sans Armenian', sans-serif;
}

.room-price {
    font-size: 18px;
    font-weight: 700;
    color: #1781FE;
    margin: 0;
}

.hotel-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.hotel-modal-footer .btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #1781FE 0%, #0EA9D0 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
}

.hotel-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(23, 129, 254, 0.4);
}

/* ========== LOADER ========== */
.search-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-loader.active {
    display: flex;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #1781FE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-loader p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Noto Sans Armenian', 'Roboto', sans-serif;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .results-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .hotels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hotel-card-title {
        font-size: 18px;
    }

    .hotel-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .hotel-modal-header {
        padding: 20px;
    }

    .hotel-modal-header h2 {
        font-size: 22px;
    }

    .hotel-modal-body {
        padding: 20px;
    }

    .hotel-modal-image {
        height: 250px;
    }

    .room-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hotel-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hotel-card-button {
        width: 100%;
        text-align: center;
    }
}

/* ========== КАСТОМНЫЙ СКРОЛЛБАР ДЛЯ МОДАЛЬНОГО ОКНА ========== */
.hotel-modal-content::-webkit-scrollbar {
    width: 8px;
}

.hotel-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.hotel-modal-content::-webkit-scrollbar-thumb {
    background: #1781FE;
    border-radius: 4px;
}

.hotel-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0EA9D0;
}
