/* ========== ФОРМА ПОИСКА ========== */
.search-wrapper {
    padding-top: 60px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    position: relative;
}

.search-card {
    background: #e3c3a4;
    border-radius: 24px;
    padding: 35px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

.search-card h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #5d3a1a;
    margin-bottom: 30px;
}

.search-form .form-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    row-gap: 1px;
    justify-content: center;
}

.form-field {
    flex: 1;
    min-width: 160px;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b5a2b;
    margin-bottom: 8px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e6d5c0;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #b87c4a;
    box-shadow: 0 0 0 3px rgba(184, 124, 74, 0.1);
}

/* Кнопки формы */
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.search-btn {
    background: linear-gradient(135deg, #b87c4a 0%, #9b5e2e 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(184, 124, 74, 0.3);
}

.search-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #9b5e2e 0%, #7a471f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 124, 74, 0.4);
}

.search-btn:hover i {
    transform: translateX(3px);
}

.search-btn:active {
    transform: translateY(1px);
}

.reset-btn {
    background: transparent;
    border: 2px solid #b87c4a;
    color: #b87c4a;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    min-width: 140px;
}

.reset-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.reset-btn:hover {
    background: #b87c4a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 124, 74, 0.25);
}

.reset-btn:hover i {
    transform: rotate(-15deg);
}

.reset-btn:active {
    transform: translateY(1px);
}

/* Баннер наличия */
.availability-banner {
    background: #f3ede5;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #e6d5c0;
    margin-top: 30px;
}

.availability-banner p {
    color: #b87c4a;
    font-weight: 500;
}

.availability-banner i {
    margin-right: 8px;
    color: #b87c4a;
}

/* Категории номеров */
.room-category {
    margin-bottom: 60px;
}

.category-header {
    margin-bottom: 30px;
    margin-top: 60px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #5d3a1a;
    display: inline-block;
    margin-bottom: 12px;
}

.category-line {
    width: 60px;
    height: 4px;
    background: #b87c4a;
    border-radius: 2px;
}

/* Список номеров */
.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Карточка номера */
.room-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    border: 1px solid #e6d5c0;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(134, 78, 60, 0.15);
    border-color: #b87c4a;
}

.room-card-image {
    width: 320px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f3ede5;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.available {
    background: #4caf50;
    color: white;
}

.badge.unavailable {
    background: #c96f3e;
    color: white;
}

.room-card-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
}

.room-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #5d3a1a;
    margin: 0 0 12px 0;
}

.room-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6d5c0;
}

.room-card-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b4f34;
}

.room-card-specs i {
    width: 18px;
    color: #b87c4a;
    font-size: 14px;
}

.room-card-price {
    font-size: 28px;
    font-weight: 800;
    color: #b87c4a;
    margin-bottom: 24px;
}

.room-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: #9b7a5a;
}

.room-card-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* Кнопки в карточке */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-outline {
    background: transparent;
    border: 2px solid #b87c4a;
    color: #b87c4a;
}

.btn-outline:hover {
    background: #b87c4a;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: #b87c4a;
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(184, 124, 74, 0.3);
}

.btn-primary:hover {
    background: #5d3a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.btn-disabled {
    background: #e6d5c0;
    border: none;
    color: #9b7a5a;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Нет результатов */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    margin: 40px 0;
}

.no-results-message i {
    font-size: 64px;
    color: #b87c4a;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-message p {
    font-size: 18px;
    color: #6b4f34;
    margin-bottom: 10px;
}

.no-results-message .suggestion {
    font-size: 14px;
    color: #9b7a5a;
}

/* ========== МОДАЛЬНОЕ ОКНО ДЛЯ ВЫБОРА ДАТ ========== */
.date-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.date-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.date-modal-content {
    position: relative;
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.date-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #5d3a1a, #8b5a2b);
    color: white;
}

.date-modal-header i {
    font-size: 24px;
}

.date-modal-header h3 {
    flex: 1;
    font-size: 20px;
    margin: 0;
}

.date-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.date-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.date-modal-body {
    padding: 30px 24px;
    text-align: center;
}

.date-icon {
    width: 70px;
    height: 70px;
    background: #f3ede5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.date-icon i {
    font-size: 32px;
    color: #b87c4a;
}

.date-modal-body p {
    font-size: 16px;
    color: #5d3a1a;
    margin-bottom: 8px;
}

.date-modal-body .room-name {
    font-weight: 700;
    color: #b87c4a;
    margin-bottom: 15px;
    font-size: 18px;
}

.date-modal-body .sub-message {
    color: #9b7a5a;
    font-size: 13px;
    margin-top: 5px;
}

.date-modal-footer {
    display: flex;
    gap: 15px;
    padding: 0 24px 28px 24px;
}

.date-modal-btn {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.date-modal-btn i {
    font-size: 14px;
}

.date-modal-btn-primary {
    background: #b87c4a;
    color: white;
    box-shadow: 0 2px 8px rgba(184, 124, 74, 0.3);
}

.date-modal-btn-primary:hover {
    background: #5d3a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.date-modal-btn-secondary {
    background: #f3ede5;
    color: #5d3a1a;
}

.date-modal-btn-secondary:hover {
    background: #e6d5c0;
    transform: translateY(-2px);
}

/* ========== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ========== */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #5d3a1a, #8b5a2b);
    color: white;
}

.auth-modal-header i {
    font-size: 24px;
}

.auth-modal-header h3 {
    flex: 1;
    font-size: 20px;
    margin: 0;
}

.auth-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth-modal-body {
    padding: 30px 24px;
    text-align: center;
}

.auth-icon i {
    font-size: 64px;
    color: #b87c4a;
    margin-bottom: 15px;
}

.auth-modal-body p {
    font-size: 16px;
    color: #5d3a1a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-benefits {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e6d5c0;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b4f34;
}

.benefit i {
    font-size: 20px;
    color: #b87c4a;
}

.auth-modal-footer {
    display: flex;
    gap: 15px;
    padding: 0 24px 24px 24px;
}

.auth-btn-login,
.auth-btn-register {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.auth-btn-login i,
.auth-btn-register i {
    font-size: 14px;
}

.auth-btn-login {
    background: #b87c4a;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(184, 124, 74, 0.3);
}

.auth-btn-login:hover {
    background: #5d3a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.auth-btn-register {
    background: transparent;
    border: 2px solid #b87c4a;
    color: #b87c4a;
}

.auth-btn-register:hover {
    background: #b87c4a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 124, 74, 0.2);
}

.auth-modal-guest {
    text-align: center;
    padding: 0 24px 28px 24px;
    font-size: 13px;
    color: #9b7a5a;
    border-top: 1px solid #f0e8df;
    margin-top: 5px;
    padding-top: 20px;
}

.guest-link {
    background: none;
    border: none;
    color: #b87c4a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
}

.guest-link:hover {
    color: #5d3a1a;
    text-decoration: underline;
}

/* Подсветка формы поиска */
.search-card-highlight {
    transition: all 0.3s;
    box-shadow: 0 0 0 3px #b87c4a, 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (min-width: 993px) {
    .search-form .form-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-buttons {
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .search-card {
        padding: 25px 30px;
        margin: 0 20px;
    }

    .search-card h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-field {
        min-width: 140px;
    }

    .form-field input,
    .form-field select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .room-card {
        flex-direction: column;
    }

    .room-card-image {
        width: 100%;
        height: 240px;
    }

    .room-card-specs {
        gap: 15px;
    }
}

@media (max-width: 900px) and (min-width: 701px) {
    .search-wrapper {
        padding-top: 40px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    }

    .search-card {
        padding: 25px;
        max-width: 700px;
    }

    .search-card h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .search-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        row-gap: 1px;
        justify-content: center;
    }

    .form-field {
        min-width: auto;
    }

    .form-field:last-of-type {
        grid-column: span 2;
    }

    .form-field input,
    .form-field select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-buttons {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        padding-top: 40px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    }

    .search-card {
        padding: 20px;
        margin: 0 15px;
    }

    .search-card h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .search-form .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-field {
        width: 100%;
        min-width: auto;
    }

    .form-field label {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .form-field input,
    .form-field select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-buttons {
        gap: 12px;
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
    }

    .search-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }

    .category-title {
        font-size: 26px;
    }

    .room-card-title {
        font-size: 20px;
    }

    .room-card-price {
        font-size: 22px;
    }

    .room-card-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }

    .room-card-content {
        padding: 20px;
    }

    /* Адаптив модальных окон */
    .auth-modal-footer,
    .date-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .auth-btn-login,
    .auth-btn-register,
    .date-modal-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .auth-benefits {
        flex-direction: column;
        gap: 12px;
    }

    .benefit {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .auth-modal-body,
    .date-modal-body {
        padding: 25px 20px;
    }

    .auth-modal-header,
    .date-modal-header {
        padding: 16px 20px;
    }

    .auth-modal-header h3,
    .date-modal-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        padding-top: 30px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
    }

    .search-card {
        padding: 15px;
    }

    .search-card h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-field input,
    .form-field select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-field label {
        font-size: 10px;
    }

    .search-btn,
    .reset-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .room-card-image {
        height: 200px;
    }

    .room-card-title {
        font-size: 18px;
    }

    .room-card-price {
        font-size: 20px;
    }

    .room-card-specs span {
        font-size: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}