/* Hotel listing page styles. */
/* Phase 1 hotel listing page */
.soves-hotels-page {
    --soves-primary: #e24a3b;
    --soves-primary-dark: #be3429;
    --soves-text: #172033;
    --soves-muted: #667085;
    --soves-border: #e6eaf0;
    --soves-soft: #f5f7fb;
    --soves-blue: #0d63f3;
    background: #ffffff;
    color: var(--soves-text);
}

.soves-hotels-hero {
    min-height: 400px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 13, 22, 0.72), rgba(8, 13, 22, 0.52)),
        url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Negombo_Beach_resort_pool_%28Unsplash%29.jpg/1280px-Negombo_Beach_resort_pool_%28Unsplash%29.jpg");
    background-position: center 48%;
    background-size: cover;
}

.soves-hotels-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58));
}

.soves-hotels-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 70px 0 62px;
}

.soves-hotels-hero h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(36px, 3.25vw, 48px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
}

.soves-breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.soves-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.soves-breadcrumb a:focus-visible,
.soves-breadcrumb a:hover {
    text-decoration: underline;
}

.soves-breadcrumb__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1;
}

.soves-breadcrumb__home svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.soves-breadcrumb__separator {
    color: rgba(255, 255, 255, 0.76);
    font-size: 20px;
    line-height: 1;
}

.soves-hotels-search-wrap {
    position: relative;
    z-index: 2;
    margin-top: 48px;
}

.soves-hotel-search-card {
    --soves-primary: #e24a3b;
    --soves-primary-dark: #be3429;
    --soves-text: #172033;
    --soves-muted: #667085;
    --soves-border: #e6eaf0;
    --soves-soft: #f5f7fb;
    width: 100%;
    border: 1px solid rgba(230, 234, 240, 0.95);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
    padding: 14px;
}

.soves-hotel-search-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--soves-text);
}

.soves-hotel-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 14px;
}

.soves-hotel-search-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(132px, 1fr));
    border: 1px solid var(--soves-border);
    border-radius: 8px;
    overflow: visible;
    background: #ffffff;
}

.soves-hotel-search-field {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    border-right: 1px solid var(--soves-border);
}

.soves-hotel-search-field:last-child {
    border-right: 0;
}

.soves-hotel-search-label {
    color: #344054;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.soves-hotel-search-helper {
    color: var(--soves-muted);
    font-size: 11px;
    line-height: 1.25;
}

.soves-hotel-search-main {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--soves-text);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.soves-hotel-search-trigger {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.soves-hotel-search-trigger:focus-visible {
    outline: 2px solid rgba(226, 74, 59, 0.4);
    outline-offset: 3px;
    border-radius: 4px;
}

.soves-hotel-search-input {
    width: 100%;
    min-height: 28px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--soves-text);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    padding: 0;
}

.soves-hotel-search-input::placeholder {
    color: #98a2b3;
    font-weight: 600;
}

.soves-hotel-search-input:focus-visible {
    outline: 2px solid rgba(226, 74, 59, 0.4);
    outline-offset: 3px;
    border-radius: 4px;
}

.soves-hotel-search-field--date {
    cursor: pointer;
}

.soves-hotel-search-date-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.soves-hotel-search-field--date .soves-hotel-search-main,
.soves-hotel-search-field--date .soves-hotel-search-helper {
    pointer-events: none;
}

.soves-hotel-search-date-input:focus-visible + .soves-hotel-search-main {
    outline: 2px solid rgba(226, 74, 59, 0.4);
    outline-offset: 3px;
    border-radius: 4px;
}

.soves-hotel-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(360px, calc(100vw - 32px));
    display: none;
    border: 1px solid var(--soves-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
    padding: 14px;
}

.soves-hotel-search-field.is-open .soves-hotel-search-panel {
    display: block;
}

.soves-hotel-search-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 22px;
    width: 14px;
    height: 14px;
    border-left: 1px solid var(--soves-border);
    border-top: 1px solid var(--soves-border);
    background: #ffffff;
    transform: rotate(45deg);
}

.soves-hotel-search-panel h3 {
    margin: 0 0 14px;
    color: var(--soves-text);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
}

.soves-hotel-search-panel-search {
    display: block;
    margin-bottom: 12px;
}

.soves-hotel-search-panel-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--soves-border);
    border-radius: 6px;
    background: #ffffff;
    padding: 10px 12px;
    color: var(--soves-text);
    font-size: 14px;
}

.soves-hotel-search-panel-search input:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.2);
    border-color: rgba(226, 74, 59, 0.7);
}

.soves-hotel-search-options {
    max-height: 280px;
    overflow: auto;
    margin: 0 -14px -14px;
    padding-bottom: 6px;
}

.soves-hotel-search-country {
    margin: 0;
    border-top: 1px solid var(--soves-border);
    padding: 12px 16px 4px;
    color: var(--soves-muted);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
}

.soves-hotel-search-country:first-child {
    border-top: 0;
}

.soves-hotel-search-option {
    width: 100%;
    display: grid;
    gap: 3px;
    border: 0;
    border-top: 1px solid var(--soves-border);
    background: #ffffff;
    cursor: pointer;
    padding: 12px 16px;
    text-align: left;
}

.soves-hotel-search-option:hover,
.soves-hotel-search-option:focus-visible {
    background: #f8fafc;
}

.soves-hotel-search-option strong {
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.soves-hotel-search-option span {
    color: var(--soves-muted);
    font-size: 13px;
    line-height: 1.25;
}

.soves-hotel-search-empty {
    margin: 0;
    color: var(--soves-muted);
    font-size: 13px;
}

.soves-hotel-search-panel--guests {
    width: min(520px, calc(100vw - 32px));
}

.soves-hotel-search-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--soves-border);
    border-bottom: 0;
    padding: 16px 18px;
}

.soves-hotel-search-stepper:first-of-type {
    border-radius: 8px 8px 0 0;
}

.soves-hotel-search-stepper:last-of-type {
    border-bottom: 1px solid var(--soves-border);
    border-radius: 0 0 8px 8px;
}

.soves-hotel-search-stepper > span {
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
}

.soves-hotel-search-stepper__controls {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.soves-hotel-search-stepper__controls button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #e9eff6;
    color: #344054;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

.soves-hotel-search-stepper__controls button:hover,
.soves-hotel-search-stepper__controls button:focus-visible {
    background: var(--soves-primary);
    color: #ffffff;
}

.soves-hotel-search-stepper__controls strong {
    min-width: 24px;
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

.soves-hotel-search-panel--price {
    width: min(320px, calc(100vw - 32px));
    padding: 0;
}

.soves-hotel-search-panel--price h3 {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--soves-border);
    font-size: 16px;
}

.soves-hotel-search-panel--price::before {
    left: 18px;
}

.soves-hotel-search-price-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--soves-border);
    cursor: pointer;
    padding: 12px 16px;
}

.soves-hotel-search-price-option:last-child {
    border-bottom: 0;
}

.soves-hotel-search-price-option:hover {
    background: #f8fafc;
}

.soves-hotel-search-price-option input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--soves-primary);
}

.soves-hotel-search-price-option span {
    display: grid;
    gap: 3px;
}

.soves-hotel-search-price-option strong {
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.soves-hotel-search-price-option small {
    color: var(--soves-muted);
    font-size: 13px;
    line-height: 1.25;
}

.soves-hotel-search-submit {
    min-width: 112px;
    border: 0;
    border-radius: 8px;
    background: var(--soves-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 00;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.soves-hotel-search-submit:hover,
.soves-hotel-search-submit:focus-visible {
    background: var(--soves-primary-dark);
}

.soves-hotel-search-submit:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.28);
    outline-offset: 3px;
}

.soves-hotel-search-submit:active {
    transform: translateY(1px);
}

.soves-hotels-main {
    padding-top: 28px;
    padding-bottom: 72px;
}

.soves-hotel-types {
    margin-bottom: 24px;
}

.soves-hotel-types__title {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--soves-text);
}

.soves-hotel-types__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.soves-hotel-type-card {
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    column-gap: 12px;
    border: 1px solid var(--soves-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.soves-hotel-type-card:hover,
.soves-hotel-type-card:focus-visible,
.soves-hotel-type-card.is-active {
    border-color: rgba(226, 74, 59, 0.34);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.soves-hotel-type-card:hover,
.soves-hotel-type-card:focus-visible {
    transform: translateY(-5px);
}

.soves-hotel-type-card:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.24);
    outline-offset: 3px;
}

.soves-hotel-type-card.is-active {
    background: #fff8f6;
}

.soves-hotel-type-card__icon {
    width: 42px;
    height: 42px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #f3f4f6;
}

.soves-hotel-type-card__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.soves-hotel-type-card:hover .soves-hotel-type-card__icon img,
.soves-hotel-type-card:focus-visible .soves-hotel-type-card__icon img {
    transform: scale(1.12);
}

.soves-hotel-type-card__content {
    min-width: 0;
}

.soves-hotel-type-card__title,
.soves-hotel-type-card__count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soves-hotel-type-card__title {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--soves-text);
}

.soves-hotel-type-card__count {
    display: block;
    margin-top: 3px;
    color: var(--soves-muted);
    font-size: 12px;
    line-height: 1.2;
}

.soves-hotels-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.soves-hotels-results {
    min-width: 0;
}

.soves-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.soves-results-count {
    margin: 0;
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.soves-results-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.soves-results-view-icons {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.soves-results-view-icons button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--soves-border);
    border-radius: 7px;
    background: #ffffff;
    color: #667085;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.soves-results-view-icons .soves-ms-icon {
    display: inline-flex;
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

.soves-results-view-icons button:hover,
.soves-results-view-icons button:focus-visible {
    border-color: var(--soves-primary);
    background: var(--soves-primary);
    color: #ffffff;
}

.soves-results-view-icons button:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.2);
    outline-offset: 2px;
}

.soves-results-view-icons .is-active {
    border-color: var(--soves-primary);
    background: var(--soves-primary);
    color: #ffffff;
}

.soves-results-sort {
    position: relative;
}

.soves-results-sort-menu {
    position: relative;
}

.soves-results-sort-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    margin: 0;
    border-radius: 7px;
    color: var(--soves-text);
    font-size: 13px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.soves-results-sort-menu summary::-webkit-details-marker {
    display: none;
}

.soves-results-sort-menu summary:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.22);
    outline-offset: 3px;
}

.soves-results-sort-menu__label {
    color: var(--soves-text);
    font-weight: 600;
}

.soves-results-sort-menu__value {
    color: var(--soves-primary);
    font-weight: 500;
}

.soves-results-sort-menu__chevron {
    width: 8px;
    height: 8px;
    margin-left: 7px;
    border-right: 2px solid var(--soves-primary);
    border-bottom: 2px solid var(--soves-primary);
    transform: translateY(-2px) rotate(45deg);
}

.soves-results-sort-menu[open] .soves-results-sort-menu__chevron {
    transform: translateY(2px) rotate(225deg);
}

.soves-results-sort-menu__panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 15;
    width: min(260px, calc(100vw - 32px));
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    padding: 21px 21px 18px;
}

.soves-results-sort-menu__panel strong {
    display: block;
    margin-bottom: 13px;
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
}

.soves-results-sort-menu__options {
    display: grid;
    gap: 12px;
}

.soves-results-sort-menu__options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    cursor: pointer;
}

.soves-results-sort-menu__options input {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 0;
    border: 1px solid #d7e1ec;
    border-radius: 3px;
    appearance: none;
    background: #ffffff;
    cursor: pointer;
}

.soves-results-sort-menu__options input:checked {
    border-color: var(--soves-primary);
    background: var(--soves-primary);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.soves-results-sort-menu__options input:focus-visible {
    outline: 3px solid rgba(226, 74, 59, 0.22);
    outline-offset: 2px;
}

.soves-results-sort-menu__options input:checked + span {
    color: var(--soves-primary);
}

.soves-results-sort-menu__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    border-top: 1px solid #e5edf5;
    padding-top: 15px;
}

.soves-results-sort-menu__reset,
.soves-results-sort-menu__apply {
    -webkit-appearance: none;
    appearance: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--soves-text);
    padding: 0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}

.soves-results-sort-menu__reset:hover,
.soves-results-sort-menu__reset:focus,
.soves-results-sort-menu__reset:focus-visible,
.soves-results-sort-menu__apply:hover,
.soves-results-sort-menu__apply:focus,
.soves-results-sort-menu__apply:focus-visible {
    border: 0;
    background: transparent;
    color: var(--soves-primary);
    box-shadow: none;
}

.soves-results-sort-menu__reset:focus-visible,
.soves-results-sort-menu__apply:focus-visible {
    outline: 0;
}

.soves-signin-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    border-radius: 9px;
    background: var(--soves-blue);
    color: #ffffff;
    padding: 12px 14px 12px 18px;
    box-shadow: 0 10px 24px rgba(13, 99, 243, 0.16);
}

.soves-signin-promo span {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.soves-signin-promo a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--soves-blue);
    padding: 7px 14px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
}

.soves-signin-promo a:hover,
.soves-signin-promo a:focus-visible {
    color: #0b4ebd;
}

.soves-hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.soves-hotels-results.is-loading .soves-hotels-grid {
    opacity: 0.55;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.soves-hotels-grid.is-list-view {
    grid-template-columns: 1fr;
}

.soves-hotels-grid.is-list-view .soves-hotel-card {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
}

.soves-hotels-grid.is-list-view .soves-hotel-card__media {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__content {
    display: grid;
    align-content: start;
    gap: 17px;
    padding: 20px;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__summary {
    display: block;
    margin: -3px 0 2px;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__footer {
    margin-top: 3px;
}

.soves-hotels-grid.is-list-view .soves-hotel-card__footer .soves-hotel-card__provider {
    display: none;
}

.soves-hotel-card {
    min-width: 0;
    border: 1px solid rgba(230, 234, 240, 0.9);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    animation: sovesHotelCardEnter 0.28s ease both;
}

@keyframes sovesHotelCardEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.soves-hotel-card:hover,
.soves-hotel-card.is-focused {
    border-color: rgba(230, 234, 240, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: none;
}

.soves-hotel-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3f9, #ffe7dc);
}

.soves-hotel-card__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.soves-hotel-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.soves-hotel-card:hover .soves-hotel-card__image,
.soves-hotel-card.is-focused .soves-hotel-card__image {
    transform: scale(1.05);
}

.soves-hotel-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soves-primary);
    font-size: 16px;
    font-weight: 600;
}

.soves-hotel-card__top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.soves-hotel-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    border-radius: 999px;
    background: var(--soves-blue);
    color: #ffffff;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.soves-hotel-card__badge.soves-hotel-card__badge--category {
    margin-left: 8px;
    background: rgba(13, 99, 243, 0.92);
}

.soves-hotel-card__badge .soves-ms-icon {
    font-size: 13px;
    line-height: 1;
    color: #ffffff;
}

.soves-hotel-card__fav {
    width: 25px;
    height: 25px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--soves-primary);
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.soves-hotel-card__fav .soves-ms-icon {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

.soves-hotel-card__fav:hover,
.soves-hotel-card__fav:focus-visible {
    background: var(--soves-primary);
    color: #ffffff;
    outline: 0;
}

.soves-hotel-card__fav.is-favorite {
    background: var(--soves-primary) !important;
    color: #ffffff !important;
}

.soves-hotel-card__fav[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.soves-favorite-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.soves-favorite-modal[hidden] {
    display: none;
}

.soves-favorite-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
}

.soves-favorite-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.soves-favorite-modal__panel h3 {
    margin: 0 28px 8px 0;
    color: var(--soves-text);
    font-size: 22px;
    line-height: 1.2;
}

.soves-favorite-modal__panel p {
    margin: 0 0 18px;
    color: var(--soves-muted);
    font-size: 14px;
    line-height: 1.55;
}

.soves-favorite-modal__actions {
    display: flex;
    gap: 10px;
}

.soves-favorite-modal__actions a {
    border: 1px solid var(--soves-primary);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--soves-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 200;
    text-decoration: none;
}

.soves-favorite-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--soves-primary);
    border-radius: 999px;
    background: var(--soves-primary);
    color: #ffffff;
    margin: 0;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
    transform: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.soves-favorite-modal__close span {
    display: block;
    width: 20px;
    height: 20px;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    font-style: normal;
    line-height: 18px;
    text-transform: none;
    letter-spacing: 0;
}

.soves-hotels-page .soves-favorite-modal button.soves-favorite-modal__close,
.soves-hotels-page .soves-favorite-modal button.soves-favorite-modal__close[type="button"],
.soves-favorite-modal button.soves-favorite-modal__close,
.soves-favorite-modal button.soves-favorite-modal__close[type="button"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--soves-primary) !important;
    border-radius: 999px !important;
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer;
    text-decoration: none !important;
    transform: none !important;
    z-index: 2;
}

.soves-favorite-modal__actions a:first-child:hover,
.soves-favorite-modal__actions a:first-child:focus-visible {
    background: #ffffff;
    border-color: var(--soves-primary);
    color: var(--soves-primary);
    outline: 0;
}

.soves-favorite-modal__close:hover,
.soves-favorite-modal__close:focus-visible,
.soves-hotels-page .soves-favorite-modal button.soves-favorite-modal__close:hover,
.soves-hotels-page .soves-favorite-modal button.soves-favorite-modal__close:focus-visible {
    background: var(--soves-primary-dark);
    border-color: var(--soves-primary-dark);
    color: #ffffff;
    outline: 0;
    transform: translateY(-1px);
}

.soves-favorite-modal__actions a + a {
    border: 1px solid var(--soves-primary);
    background: #ffffff;
    color: var(--soves-primary);
}

.soves-favorite-modal__actions a + a:hover,
.soves-favorite-modal__actions a + a:focus-visible {
    background: var(--soves-primary);
    border-color: var(--soves-primary);
    color: #ffffff;
}

.soves-hotel-card__content {
    padding: 14px 15px 15px;
}

.soves-tour-card .soves-hotel-card__content {
    display: flex;
    flex-direction: column;
}

.soves-tour-card .soves-event-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    border-top: 1px solid var(--soves-border);
    padding-top: 13px;
}

.soves-tour-card .soves-event-card__facts {
    display: grid;
    gap: 7px;
}

.soves-tour-card .soves-event-card__facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--soves-muted);
    font-size: 13px;
    font-weight: 700;
}

.soves-tour-card .soves-event-card__facts .soves-ms-icon {
    color: var(--soves-primary);
    font-size: 18px;
}

.soves-tour-card .soves-event-card__book {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.soves-tour-card .soves-event-card__book strong {
    color: var(--soves-primary);
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    text-align: right;
}

.soves-tour-card .soves-event-card__book a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--soves-primary);
    color: #ffffff;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.soves-hotel-card__main {
    display: block;
}

.soves-hotel-card__meta,
.soves-hotel-card__summary,
.soves-hotel-card__list-rating {
    display: none;
}

.soves-hotel-card__title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.soves-hotel-card__title a {
    color: var(--soves-text);
    text-decoration: none;
}

.soves-hotel-card__title a:hover,
.soves-hotel-card__title a:focus-visible {
    color: var(--soves-primary);
}

.soves-hotel-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 12px;
    color: var(--soves-muted);
    font-size: 13px;
    line-height: 1.35;
}

.soves-hotel-card__location .soves-ms-icon {
    flex: 0 0 auto;
    color: var(--soves-primary);
    font-size: 15px;
    line-height: 1;
}

.soves-hotel-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    border-top: 1px solid var(--soves-border);
    padding: 12px 0;
    color: var(--soves-primary);
    font-size: 12px;
    line-height: 1.35;
}

.soves-hotel-card__summary {
    color: #4e5561;
    font-size: 14px;
    line-height: 1.6;
}

.soves-hotel-card__amenities strong {
    color: var(--soves-text);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.soves-hotel-card__amenities span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 22px;
    border-radius: 999px;
    color: var(--soves-primary);
    padding: 0;
}

.soves-hotel-card__amenities .soves-ms-icon {
    font-size: 16px;
    line-height: 1;
}

.soves-hotel-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--soves-border);
    padding-top: 13px;
}

.soves-hotel-card__price {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--soves-muted);
}

.soves-hotel-card__price strong,
.soves-hotel-card__price em {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    font-style: normal;
}

.soves-hotel-card__price strong {
    color: var(--soves-primary);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.soves-hotel-card__price em {
    color: var(--soves-muted);
}

.soves-hotel-card__provider {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--soves-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.soves-hotel-card__provider img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    display: block;
    object-fit: cover;
}

.soves-hotel-card__provider span:not(.screen-reader-text) {
    white-space: nowrap;
}

.soves-hotel-card__list-rating {
    align-items: center;
    gap: 8px;
    color: #4e5561;
    font-size: 14px;
    line-height: 1.2;
}

.soves-hotel-card__list-rating strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 24px;
    border-radius: 5px;
    background: #ffd53d;
    color: #111827;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
}

.soves-empty-state {
    grid-column: 1 / -1;
    border: 1px solid var(--soves-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 34px 22px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.soves-empty-state h2 {
    margin: 0 0 8px;
    color: var(--soves-text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.soves-empty-state p {
    margin: 0;
    color: var(--soves-muted);
}

.soves-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
}

.soves-pagination .page-numbers {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--soves-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--soves-text);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.soves-pagination .page-numbers.current {
    border-color: var(--soves-primary);
    background: var(--soves-primary);
    color: #ffffff;
}

@media (max-width: 1180px) {
    .soves-hotel-search-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .soves-hotel-search-field:nth-child(3n) {
        border-right: 0;
    }

    .soves-hotel-search-field:nth-child(n + 4) {
        border-top: 1px solid var(--soves-border);
    }

    .soves-hotel-types__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .soves-hotels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .soves-hotel-search-form {
        grid-template-columns: 1fr;
    }

    .soves-hotel-search-submit {
        min-height: 48px;
    }

    .soves-hotels-layout {
        grid-template-columns: 1fr;
    }

    .soves-hotels-grid.is-list-view .soves-hotel-card {
        grid-template-columns: 1fr;
    }

    .soves-hotels-grid.is-list-view .soves-hotel-card__media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .soves-hotels-grid.is-list-view .soves-hotel-card__main,
    .soves-hotels-grid.is-list-view .soves-hotel-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .soves-hotels-hero {
        min-height: 400px;
    }

    .soves-hotels-search-wrap {
        margin-top: 28px;
    }

    .soves-hotel-search-fields,
    .soves-hotel-types__grid,
    .soves-hotels-grid {
        grid-template-columns: 1fr;
    }

    .soves-hotel-search-field,
    .soves-hotel-search-field:nth-child(3n),
    .soves-hotel-search-field:last-child {
        border-right: 0;
        border-top: 1px solid var(--soves-border);
    }

    .soves-hotel-search-field:first-child {
        border-top: 0;
    }

    .soves-results-toolbar,
    .soves-results-actions,
    .soves-signin-promo,
    .soves-hotel-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .soves-results-actions {
        gap: 10px;
    }

    .soves-results-sort,
    .soves-results-sort-menu,
    .soves-results-sort-menu summary,
    .soves-signin-promo a,
    .soves-hotel-card__provider {
        width: 100%;
    }

    .soves-results-sort-menu__panel {
        left: 0;
        right: auto;
        width: 100%;
    }
}


/* Keep the hotel grid page insulated from legacy generic Soves component rules. */
.soves-hotels-page .soves-results-toolbar {
    padding: 0;
    border-bottom: 0;
    margin-bottom: 16px;
}

.soves-hotels-page .soves-results-count {
    margin: 0;
    color: var(--soves-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.soves-hotels-page .soves-filter-field {
    display: grid;
    align-items: stretch;
    gap: 6px;
    cursor: default;
}

.soves-hotels-page .soves-filter-field input {
    width: 100%;
    min-height: 38px;
    cursor: text;
}

.soves-hotels-page .soves-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.soves-hotels-page .soves-filter-check input {
    width: 15px;
    min-height: 15px;
    cursor: default;
}


/* Hotel listing overrides moved from legacy frontend core. */
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset[type="button"],
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply[type="submit"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: max-content !important;
    min-width: 0 !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    cursor: pointer;
}

.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset[type="button"] {
    background: #f3f6fa !important;
    color: var(--soves-text) !important;
    box-shadow: none !important;
}

.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply[type="submit"] {
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset:hover,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset:focus,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__reset:focus-visible {
    border: 0 !important;
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    outline: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply:hover,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply:focus,
.soves-hotels-page .soves-results-sort button.soves-results-sort-menu__apply:focus-visible {
    border: 0 !important;
    background: var(--soves-primary-dark) !important;
    color: #ffffff !important;
    outline: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.soves-hotels-page button.soves-hotel-card__fav,
.soves-hotels-page button.soves-hotel-card__fav[type="button"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 5px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--soves-primary) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.soves-hotels-page button.soves-hotel-card__fav .soves-ms-icon,
.soves-hotels-page button.soves-hotel-card__fav[type="button"] .soves-ms-icon {
    width: 15px !important;
    height: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.soves-hotels-page button.soves-hotel-card__fav:hover,
.soves-hotels-page button.soves-hotel-card__fav:focus,
.soves-hotels-page button.soves-hotel-card__fav:focus-visible {
    border: 0 !important;
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    outline: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.soves-hotels-page button.soves-hotel-card__fav.is-favorite,
.soves-hotels-page button.soves-hotel-card__fav.is-favorite[type="button"] {
    background: var(--soves-primary) !important;
    color: #ffffff !important;
}


.soves-hotels-page .soves-pagination .page-numbers:hover,
.soves-hotels-page .soves-pagination .page-numbers:focus-visible {
    border-color: var(--soves-primary);
    background: rgba(226, 74, 59, 0.08);
    color: var(--soves-primary);
}

.soves-hotels-page .soves-pagination .page-numbers.current,
.soves-hotels-page .soves-pagination .current {
    border-color: var(--soves-primary);
    background: var(--soves-primary);
    color: #ffffff;
}
