/* === СОВРЕМЕННАЯ ФОРМА ПОИСКА === */
.hotel-booking-search-modern {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-row-modern {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-dates {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.date-field {
    flex: 1;
}

.date-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.calendar-icon {
    position: absolute;
    right: 12px;
    color: #999;
    pointer-events: none;
}

/* === ПОЛЕ ГОСТЕЙ === */
.guests-field {
    flex: 0 0 250px;
}

.guests-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.guests-trigger {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.guests-trigger:hover {
    border-color: #2271b1;
}

.guests-trigger svg {
    color: #999;
    flex-shrink: 0;
}

.guests-trigger span {
    flex: 1;
    text-align: left;
}

/* === КНОПКА ПОИСКА === */
.search-button-field {
    flex: 0 0 auto;
}

.search-submit-modern {
    padding: 12px 30px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-submit-modern:hover {
    background: #45a049;
}

/* === МОДАЛЬНОЕ ОКНО === */
.guests-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

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

.guests-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.guests-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guests-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.guests-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guests-modal-close:hover {
    color: #333;
}

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

.room-guests h4 {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.counter-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.counter-label span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.counter-label small {
    font-size: 12px;
    color: #999;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-btn:hover {
    background: #f0f0f0;
    border-color: #4CAF50;
}

.counter-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.children-ages-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ages-selectors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-selector label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.age-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.add-room-btn {
    width: 100%;
    padding: 12px;
    background: #f0f9f0;
    border: 1px dashed #4CAF50;
    border-radius: 8px;
    color: #4CAF50;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.2s;
}

.add-room-btn:hover {
    background: #e0f5e0;
}

.guests-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #45a049;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .search-row-modern {
        flex-direction: column;
    }
    
    .search-dates {
        width: 100%;
    }
    
    .guests-field,
    .search-button-field {
        width: 100%;
    }
    
    .search-submit-modern {
        width: 100%;
    }
}

/* === РЕЗУЛЬТАТЫ ПОИСКА === */
.hotel-search-results {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.results-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.search-summary {
    color: #666;
    font-size: 14px;
}

.hotel-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.hotel-no-results p {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-results-hint {
    color: #999;
    font-size: 14px;
}

/* === СПИСОК НОМЕРОВ === */
.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.room-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.room-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.room-image {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.room-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.tariff-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.room-details {
    flex: 1;
}

.room-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #2c3e50;
}

.room-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.meta-item {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}

.room-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.room-features {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.room-pricing {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.price-block {
    text-align: right;
}

.price-per-night {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.price-period {
    display: block;
    font-size: 12px;
    color: #999;
}

.total-price {
    text-align: right;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.total-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.total-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

.book-button {
    width: 100%;
    padding: 12px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.book-button:hover {
    background: #219a52;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .room-card {
        flex-direction: column;
    }
    
    .room-image {
        width: 100%;
    }
    
    .room-pricing {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .price-block,
    .total-price {
        text-align: left;
    }
    
    .book-button {
        width: auto;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .search-row {
        flex-direction: column;
    }
    
    .search-field {
        width: 100%;
    }
    
    .rooms-list {
        gap: 15px;
    }
    
    .room-card {
        padding: 15px;
    }
}

.hotel-search-results-page {
    max-width: 1200px;
    margin: 0 auto;
}

.search-form-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-form-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2c3e50;
}

.results-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.results-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.search-summary {
    color: #666;
    font-size: 14px;
}

/* Адаптивность для формы на странице результатов */
@media (max-width: 768px) {
    .search-form-wrapper,
    .results-content {
        padding: 15px;
    }
    
    .search-form-title {
        font-size: 16px;
    }
}

/* === ДЕТАЛИЗАЦИЯ ЦЕНЫ === */
.total-price-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.price-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    background: none;
    padding: 0;
}

.price-info-icon:hover,
.price-info-icon:focus {
    color: #2271b1;
    outline: none;
}

.price-info-icon svg {
    width: 16px;
    height: 16px;
}

.price-details-tooltip {
    position: relative;
}

.price-details-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.price-details-tooltip.active .price-details-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.price-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.price-details-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.price-details-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.price-details-close:hover {
    color: #333;
}

.price-details-body {
    padding: 20px;
}

.price-dates {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.price-item {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.price-item-additional {
    padding-left: 15px;
    border-left: 2px solid #3498db;
    margin-left: 5px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
}

.price-item-child {
    padding-left: 15px;
    border-left: 2px solid #27ae60;
    margin-left: 5px;
    background: #f8fff8;
    padding: 8px 12px;
    border-radius: 4px;
}

.price-item-child strong {
    color: #27ae60;
}

.price-item-additional strong {
    color: #3498db;
}

.price-details-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.price-total {
    text-align: right;
}

.price-total-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.price-total-period {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.price-total-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

/* Адаптивность */
@media (max-width: 768px) {
    .price-details-content {
        width: 280px;
        right: -50px;
    }
    
    .total-price-wrapper {
        flex-direction: column;
        align-items: flex-end;
    }
}

.price-item-free {
    color: #27ae60;
    font-weight: 500;
    background: #f0fff4;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid #27ae60;
}

/* === КАСТОМИЗАЦИЯ JQUERY UI DATEPICKER === */
.ui-datepicker {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
    padding: 15px;
}

.ui-datepicker-header {
    border-radius: 8px;
    background: #f8f9fa;
    border: none;
    padding: 10px;
}

.ui-datepicker-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    border: none;
    background: transparent;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #e0e0e0;
    border: none;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background-position: center;
}

.ui-datepicker-calendar th {
    color: #999;
    font-weight: 600;
    font-size: 12px;
    padding: 10px;
}

.ui-datepicker-calendar td {
    padding: 2px;
}

.ui-datepicker-calendar a {
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
}

/* Сегодняшний день */
.ui-datepicker-today a {
    border: 2px solid #4CAF50;
    font-weight: 600;
}

/* Дата заезда */
.ui-range-start a {
    background: #4CAF50 !important;
    color: #fff !important;
    border-radius: 50% 0 0 50%;
}

/* Дата выезда */
.ui-range-end a {
    background: #4CAF50 !important;
    color: #fff !important;
    border-radius: 0 50% 50% 0;
}

/* Диапазон между датами */
.ui-range-selected a,
.ui-range-inbetween a {
    background: #e8f5e9 !important;
    color: #333 !important;
    border-radius: 0;
}

.ui-range-inbetween a {
    background: #f0f0f0 !important;
}

/* Hover эффект */
.ui-datepicker-calendar a:hover {
    background: #f0f0f0 !important;
}

.ui-range-start a:hover,
.ui-range-end a:hover {
    background: #4CAF50 !important;
}

/* Кнопки */
.ui-datepicker-buttonpane button {
    border-radius: 6px;
    padding: 8px 16px;
}

.ui-datepicker-current {
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.ui-datepicker-close {
    background: #4CAF50;
    color: #fff;
    border: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ui-datepicker {
        width: 100%;
        max-width: 300px;
    }
    
    .ui-datepicker-calendar a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }
}