@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

.elyurdi-room-search-wrap {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    direction: rtl;
}

.elyurdi-room-search {
    background: #FFFFFF;
    border: 1px solid #F2F2F2;
    border-radius: 22px;
    padding: 28px 32px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.elyurdi-room-search__header {
    margin-bottom: 20px;
}

.elyurdi-room-search__title {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #20352B;
    margin: 0;
}

.elyurdi-room-search__form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.elyurdi-room-search__row {
    display: flex;
    flex: 1;
    gap: 14px;
    min-width: 0;
}

.elyurdi-room-search__field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.elyurdi-room-search__label {
    display: block;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #20352B;
    margin-bottom: 8px;
    line-height: 1.4;
}

.elyurdi-room-search__input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 14px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #20352B;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
}

.elyurdi-room-search__input:hover {
    border-color: #B08A46;
    background: #F8F4EC;
}

.elyurdi-room-search__input:focus {
    border-color: #B08A46;
    box-shadow: 0 0 0 4px rgba(176, 138, 70, 0.12);
}

.elyurdi-room-search__input::placeholder {
    color: #B0A89C;
    font-weight: 400;
}

.elyurdi-room-search__input option {
    background: #FFFFFF;
    color: #20352B;
}

.elyurdi-room-search select.elyurdi-room-search__input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B08A46' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-left: 44px;
    cursor: pointer;
}

.elyurdi-room-search__actions {
    flex: 0 0 220px;
    padding-top: 29px;
}

.elyurdi-room-search__btn {
    width: 100%;
    height: 58px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #B08A46, #C59B53);
    border: none;
    border-radius: 14px;
    padding: 0 24px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(176, 138, 70, 0.3);
    white-space: nowrap;
}

.elyurdi-room-search__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(176, 138, 70, 0.4);
}

.elyurdi-room-search__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(176, 138, 70, 0.25);
}

.elyurdi-room-search__results {
    margin-top: 28px;
}

.elyurdi-room-search__loading {
    text-align: center;
    padding: 40px 20px;
}

.elyurdi-room-search__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8E8E8;
    border-top-color: #B08A46;
    border-radius: 50%;
    animation: elyurdi-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

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

.elyurdi-room-search__loading p {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ── Result cards ── */

.elyurdi-room-search__result-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: flex;
    flex-direction: row-reverse;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elyurdi-room-search__result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.elyurdi-room-search__result-image {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
}

.elyurdi-room-search__result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.elyurdi-room-search__result-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.elyurdi-room-search__result-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #20352B;
    margin: 0 0 12px;
}

.elyurdi-room-search__result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.elyurdi-room-search__result-meta-item {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.elyurdi-room-search__result-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.elyurdi-room-search__result-amenity {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 12px;
    color: #B08A46;
    background: rgba(176, 138, 70, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.elyurdi-room-search__result-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #F2F2F2;
}

.elyurdi-room-search__result-price {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #20352B;
}

.elyurdi-room-search__result-price .currency {
    font-size: 14px;
    font-weight: 500;
    color: #B08A46;
    margin-right: 4px;
}

.elyurdi-room-search__result-nights {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.elyurdi-room-search__result-btn {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: #20352B;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.elyurdi-room-search__result-btn:hover {
    background: #2a4a3a;
    transform: translateY(-1px);
}

.elyurdi-room-search__no-results {
    text-align: center;
    padding: 48px 20px;
    color: #888;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 15px;
}

.elyurdi-room-search__error {
    text-align: center;
    padding: 24px 20px;
    color: #E74C3C;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 14px;
    background: rgba(231, 76, 60, 0.06);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: 12px;
    margin-top: 16px;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .elyurdi-room-search__form {
        flex-wrap: wrap;
    }

    .elyurdi-room-search__row {
        flex: 1 1 auto;
        min-width: 0;
    }

    .elyurdi-room-search__actions {
        flex: 0 0 auto;
        padding-top: 29px;
    }

    .elyurdi-room-search__btn {
        width: auto;
        min-width: 160px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .elyurdi-room-search {
        padding: 20px 16px 24px;
        border-radius: 16px;
    }

    .elyurdi-room-search__header {
        margin-bottom: 16px;
    }

    .elyurdi-room-search__title {
        font-size: 16px;
    }

    .elyurdi-room-search__form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .elyurdi-room-search__row {
        flex-direction: column;
        gap: 12px;
    }

    .elyurdi-room-search__field {
        min-width: 0;
    }

    .elyurdi-room-search__input {
        height: 52px;
        padding: 0 16px;
    }

    .elyurdi-room-search__actions {
        flex: none;
        padding-top: 0;
    }

    .elyurdi-room-search__btn {
        width: 100%;
        height: 52px;
    }

    .elyurdi-room-search__result-item {
        flex-direction: column;
    }

    .elyurdi-room-search__result-image {
        width: 100%;
        height: 200px;
    }

    .elyurdi-room-search__result-body {
        padding: 18px 20px;
    }

    .elyurdi-room-search__result-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
}
