/* ==========================================
   Riviera Alean Search — стили плагина (v11.12)
   ========================================== */

.ralean-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Заголовок без синей полоски */
.ralean-search-heading {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    font-weight: 600;
}

/* Компактная форма */
.ralean-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.ralean-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ralean-form-row:last-child {
    margin-bottom: 0;
}

.ralean-field {
    flex: 1;
    min-width: 120px;
}

.ralean-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #555;
}

.ralean-field select,
.ralean-field input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}

.ralean-toggle-btn {
    width: 100%;
    background: #f8f9fa;
    color: #0073aa;
    border: 1px dashed #0073aa;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ralean-toggle-btn:hover {
    background: #e9f5fb;
    border-style: solid;
}

.ralean-advanced-filters {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.ralean-submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ralean-submit-btn:hover {
    background: #005a87;
}

.ralean-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.ralean-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ralean-summary {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
}

.ralean-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ralean-error-block {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Компактные карточки отелей */
.ralean-hotel-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.ralean-hotel-header {
    background: #2c3e50;
    color: #fff;
    padding: 8px 10px;
}

.ralean-hotel-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ralean-hotel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    opacity: 0.9;
}

/* Строка номера */
.ralean-room-row {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ralean-room-row:last-of-type {
    border-bottom: none;
}

.ralean-room-row.hidden-room {
    display: none !important;
}

.ralean-room-info {
    flex: 1;
    min-width: 150px;
}

.ralean-room-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    margin-bottom: 1px;
}

.ralean-room-place {
    font-size: 10px;
    color: #666;
}

.ralean-room-details {
    flex: 1;
    min-width: 150px;
    font-size: 11px;
    color: #555;
}

/* Кнопка под ценой */
.ralean-room-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 120px;
}

.ralean-room-price {
    font-size: 14px;
    font-weight: 700;
    color: #27ae60;
}

.ralean-book-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.ralean-book-btn:hover {
    background: #229954;
}

.ralean-show-more-btn {
    display: block;
    width: 100%;
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.ralean-show-more-btn:hover {
    background: #d5dbdb;
}

/* Блок "Выбранный тур" */
.ralean-selected-tour {
    background: #d4edda;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ralean-selected-tour h3 {
    margin: 0 0 12px;
    color: #155724;
    font-size: 18px;
}

.ralean-selected-summary {
    background: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.ralean-restart-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ralean-restart-btn:hover {
    background: #005a87;
}

/* Пагинация - компактная и вписывается в контейнер */
.ralean-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    padding: 8px;
    flex-wrap: wrap;
}

.ralean-page-link {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #24292f;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ralean-page-link:hover {
    background: #f3f4f6;
    border-color: #afb8c1;
}

.ralean-page-link.active {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

.ralean-page-dots {
    padding: 0 4px;
    color: #666;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 600px) {
    .ralean-form-row {
        flex-direction: column;
    }
    .ralean-field {
        flex: 1 1 100%;
    }
    .ralean-room-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ralean-room-price-wrap {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
    }
    .ralean-pagination {
        gap: 2px;
    }
    .ralean-page-link {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
        padding: 0 4px;
    }
}
/* Показ всех номеров при клике на "Показать ещё" */
.ralean-hotel-group.show-all-rooms .ralean-room-row.hidden-room {
    display: flex !important;
}
/* ==========================================
   Стили админ-панели плагина (v12.3)
   ========================================== */
.ralean-admin-wrap .button {
    margin-right: 8px;
    margin-bottom: 8px;
}

.ralean-admin-wrap .ralean-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ralean-admin-wrap .ralean-row input[type="number"] {
    margin-right: 8px;
}

.ralean-cache-result.updated {
    background-color: #edfaef;
    border: 1px solid #00a32a;
    color: #00a32a;
}

.ralean-cache-result.error {
    background-color: #fcf0f1;
    border: 1px solid #d63638;
    color: #d63638;
}