.mhe-room-finder {
    width: 100%;
    padding-bottom: 30px;
}

.mhe-room-finder__form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 20px;
    align-items: end;
    padding: 24px;
    margin-bottom: 30px;
    background: #f5f5f5;
    border-radius: 4px;
}

.mhe-room-finder__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mhe-room-finder__field:has(select) {
    position: relative;

    &::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 20px;
        right: 5px;
        width: 5px;
        height: 5px;
        border-right: 1px solid #111;
        border-bottom: 1px solid #111;
        transform: rotate(45deg);
        pointer-events: none;
    }
}

.mhe-room-finder__field label {
    font-size: 14px;
    font-weight: 700;
}

.mhe-room-finder__field select,
.mhe-room-finder__field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.mhe-room-finder__field select:focus,
.mhe-room-finder__field input:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mhe-room-finder__search-button {
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid #111;
    border-radius: 2px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.mhe-room-finder__search-button:hover {
    background: #333;
}

.mhe-room-finder__search-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.mhe-room-finder__status {
    min-height: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mhe-room-finder__status.has-error {
    color: #a00000;
}

.mhe-room-finder__results {
    display: grid;
    gap: 30px;
}

.mhe-room-card {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
}

.mhe-room-card__image-link {
    display: block;
    min-height: 100%;
}

.mhe-room-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.mhe-room-card__content {
    padding: 30px;
}

.mhe-room-card__title {
    margin-top: 0;
    margin-bottom: 14px;
}

.mhe-room-card__title a {
    color: inherit;
    text-decoration: none;
}

.mhe-room-card__title a:hover {
    text-decoration: underline;
}

.mhe-room-card__excerpt {
    margin-bottom: 18px;
}

.mhe-room-card__selected-capacity {
    margin-bottom: 16px;
}

.mhe-room-card__table-wrapper {
    width: 100%;
    margin-bottom: 24px;
    overflow-x: auto;
}

.mhe-room-card__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.mhe-room-card__table th,
.mhe-room-card__table td {
    padding: 11px 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.mhe-room-card__table th {
    background: #f5f5f5;
    font-weight: 700;
}

.mhe-room-card__table tbody tr {
    background: #fff;
    transition: background-color 0.2s ease;
}

.mhe-room-card__table tbody tr.is-selected {
    background: #fff6d8;
    box-shadow: inset 4px 0 0 #c99b20;
}

.mhe-room-finder__alternative-notice {
    padding: 20px;
    border: 1px solid #d4bd7a;
    background: #fff9e8;
}

.mhe-room-finder__alternative-notice p {
    margin: 8px 0 0;
}

.mhe-room-finder__alternative-title {
    display: block;
    font-size: 18px;
}

.mhe-room-card__alternative-badge {
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 14px;
    border: 1px solid #c9a74e;
    background: #fff6d8;
    font-size: 13px;
    font-weight: 600;
}

.mhe-room-card__table tbody tr.is-selected {
    background: #fff6d8;
    box-shadow: inset 4px 0 0 #c99b20;
}

.mhe-room-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mhe-room-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
}

.mhe-room-card__button:hover {
    background: #f2f2f2;
}

.mhe-room-card__button--primary {
    background: #111;
    color: #fff;
}

.mhe-room-card__button--primary:hover {
    background: #333;
    color: #fff;
}

.mhe-room-finder__no-results {
    padding: 20px;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

.mhe-room-finder.is-loading {
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .mhe-room-finder__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mhe-room-finder__submit {
        grid-column: 1 / -1;
    }

    .mhe-room-finder__search-button {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .mhe-room-finder__results {
        display: flex;
        flex-direction: column;
    }
    .mhe-room-finder__form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .mhe-room-card {
        /*grid-template-columns: 1fr;*/
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .mhe-room-card__image {
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }

    .mhe-room-card__content {
        padding: 20px;
    }

    .mhe-room-card__actions {
        flex-direction: column;
    }

    .mhe-room-card__button {
        width: 100%;
    }
}