/* Hotel list: native document scrolling with a mobile-only filter sheet. */

body.rsi-property-list {
  --rsi-pl-header-h: 72px;
}

body.rsi-property-list header.rsi-header-discovery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.rsi-property-list main {
  padding-top: var(--rsi-pl-header-h);
}

/* The shared loader fades for 500ms after window.load. It is visual only and
   must never intercept the first swipe while transparent. */
body.rsi-property-list #loader-wrapper {
  pointer-events: none !important;
}

body.rsi-property-list #results {
  margin: 0;
}

body.rsi-property-list #results .where-to-dropdown {
  z-index: 1002 !important;
}

.rsi-mobile-filter-trigger,
.rsi-mobile-filter-backdrop,
.rsi-mobile-filter-header,
.rsi-mobile-filter-actions {
  display: none;
}

@media (max-width: 991px) {
  body.rsi-property-list header.rsi-header-discovery {
    position: static !important;
    inset: auto !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
  }

  body.rsi-property-list main {
    padding-top: 0 !important;
    position: static;
    z-index: auto;
  }

  body.rsi-property-list #results {
    position: static !important;
    top: auto !important;
    transform: none !important;
    visibility: visible !important;
  }

  body.rsi-property-list #filters_col_bt {
    display: none !important;
  }

  body.rsi-property-list .layer:not(.layer-is-visible) {
    pointer-events: none !important;
  }

  html.rsi-filter-sheet-open,
  body.rsi-property-list.rsi-filter-sheet-open {
    overflow: hidden;
    touch-action: none;
  }

  #rsiMobileFilterPortal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    pointer-events: none;
  }

  #rsiMobileFilterPortal.is-open {
    display: block;
    pointer-events: auto;
  }

  #rsiMobileFilterPortal .rsi-mobile-filter-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(10, 20, 40, 0.36);
    touch-action: none;
  }

  body.rsi-property-list #rsiMobileFilterPortal #sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 2;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    transform: none;
    -webkit-transform: none;
  }

  body.rsi-property-list #sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 10052;
    display: none;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
  }

  body.rsi-property-list #sidebar.is-open {
    display: block;
    pointer-events: auto;
  }

  body.rsi-property-list #filters_col {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 88vh;
    height: min(88svh, 88dvh);
    max-height: 88vh;
    max-height: min(88svh, 88dvh);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.16);
  }

  body.rsi-property-list #collapseFilters,
  body.rsi-property-list #collapseFilters.collapse,
  body.rsi-property-list #collapseFilters.collapsing {
    display: block !important;
    grid-row: 2;
    height: auto !important;
    min-height: 0;
    max-height: none;
    padding: 4px 20px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    transition: none !important;
  }

  .rsi-mobile-filter-header {
    display: flex;
    flex: 0 0 auto;
    grid-row: 1;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e8eaef;
  }

  .rsi-mobile-filter-title {
    margin: 0;
    color: #1a2f54;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .rsi-mobile-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f8;
    color: #1a2f54;
    font-size: 24px;
    line-height: 1;
  }

  .rsi-mobile-filter-actions {
    display: flex;
    flex: 0 0 auto;
    grid-row: 3;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e8eaef;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-shrink: 0;
  }

  .rsi-mobile-filter-clear {
    flex: 0 0 auto;
    min-width: 38%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: #1a2f54;
    font-weight: 600;
    white-space: nowrap;
  }

  .rsi-mobile-filter-search {
    flex: 1 1 auto;
    width: auto;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #081f7a;
    color: #fff;
    font-weight: 600;
  }

  .rsi-mobile-filter-trigger {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 10049;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #081f7a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(8, 31, 122, 0.28);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    pointer-events: auto;
  }

  .rsi-mobile-filter-trigger .fa {
    margin-bottom: 4px;
    font-size: 20px;
  }

  .rsi-mobile-filter-trigger[aria-expanded="true"] {
    visibility: hidden;
    pointer-events: none;
  }

  .rsi-mobile-filter-backdrop {
    display: none;
  }

  /* ── Mobile stay cards: premium minimal containers ── */
  body.rsi-property-list .container.margin_60_35 {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.rsi-property-list #property-list-results .col-lg-9,
  body.rsi-property-list #property-list-results > .breadcrumbs {
    padding-left: 0;
    padding-right: 0;
  }

  body.rsi-property-list .strip.list_view.property-list.rs-village-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 18px;
    min-height: 0 !important;
    border: 1px solid #e8eaef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
      0 1px 3px rgba(15, 23, 42, 0.04),
      0 4px 14px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transform: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }

  body.rsi-property-list .strip.list_view.property-list.rs-village-card:last-child {
    margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  body.rsi-property-list .strip.list_view.property-list.rs-village-card:active {
    box-shadow:
      0 2px 6px rgba(15, 23, 42, 0.06),
      0 8px 24px rgba(15, 23, 42, 0.10);
    border-color: #d8dee8;
  }

  body.rsi-property-list .rs-village-card:hover,
  body.rsi-property-list .rs-village-card:has(.rs-card-link:hover) {
    transform: none;
    box-shadow:
      0 1px 3px rgba(15, 23, 42, 0.04),
      0 4px 14px rgba(15, 23, 42, 0.05);
  }

  body.rsi-property-list .rs-village-card:hover .rs-card-image,
  body.rsi-property-list .rs-village-card:active .rs-card-image,
  body.rsi-property-list .rs-village-card:hover .rs-experience-tag,
  body.rsi-property-list .rs-village-card:hover .rs-cta-arrow {
    transform: none;
    box-shadow: none;
  }

  body.rsi-property-list .rs-village-card .rs-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  body.rsi-property-list .rs-village-card .rs-card-row {
    flex: 1 1 auto;
  }

  body.rsi-property-list .rs-village-card .rs-card-media figure {
    height: 204px;
    min-height: 204px;
    max-height: 204px;
    border-radius: 0;
  }

  body.rsi-property-list .rs-village-card .rs-card-image {
    transition: none;
  }

  body.rsi-property-list .rs-village-card .rs-experience-tags {
    padding: 10px 16px;
    margin: 0;
    border-top: none;
    background: #fafbfc;
    gap: 6px;
  }

  body.rsi-property-list .rs-village-card .rs-experience-tag {
    font-size: 0.625rem;
    padding: 4px 9px;
    border-color: #e4e8ef;
    background: #ffffff;
    transition: none;
  }

  body.rsi-property-list .rs-village-card .rs-card-body-inner {
    padding: 16px 18px 10px;
  }

  body.rsi-property-list .rs-village-card .rs-property-type {
    margin-bottom: 8px;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
  }

  body.rsi-property-list .rs-village-card .rs-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
  }

  body.rsi-property-list .rs-village-card .rs-card-location {
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.rsi-property-list .rs-village-card .rs-card-description {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    max-height: 3.1em;
  }

  body.rsi-property-list .rs-village-card .rs-card-description p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body.rsi-property-list .rs-village-card .rs-card-footer {
    display: block !important;
    padding: 12px 18px 16px;
    margin-top: 0;
    border-top: 1px solid #f0f2f5;
  }

  body.rsi-property-list .rs-village-card .rs-explore-cta {
    display: none !important;
  }

  body.rsi-property-list .rs-village-card .rs-price-block {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    padding-right: 2px;
  }

  body.rsi-property-list .rs-village-card .rs-price-taxes,
  body.rsi-property-list .rs-village-card .rs-price-sub {
    display: none !important;
  }

  body.rsi-property-list .rs-village-card .rs-price-line {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 6px;
  }

  body.rsi-property-list .rs-village-card .rs-price-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c8494;
    white-space: nowrap !important;
    flex-shrink: 0;
    margin-right: 0;
  }

  body.rsi-property-list .rs-village-card .rs-price-was {
    display: inline-block;
    font-size: 13px;
    color: #b8bcc7;
    white-space: nowrap !important;
    flex-shrink: 0;
    opacity: 0.75;
    margin-right: 0;
  }

  body.rsi-property-list .rs-village-card .rs-price-current {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #1841b5 !important;
    line-height: 1;
    white-space: nowrap !important;
  }

  body.rsi-property-list .rs-village-card .rs-price-current small {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #61697a;
    letter-spacing: 0;
  }

}

@media (min-width: 1024px) {
  body.rsi-property-list .container.margin_60_35 {
    padding-top: 54px;
    padding-bottom: 56px;
  }

  body.rsi-property-list #property-list-results {
    display: block;
  }

  body.rsi-property-list .strip.list_view.property-list.rs-village-card {
    width: 100%;
    margin: 0 0 34px;
    min-height: 306px !important;
    border: 1px solid #e5e8ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
      0 2px 6px rgba(15, 23, 42, 0.04),
      0 14px 34px rgba(15, 23, 42, 0.075);
    overflow: hidden;
    transform: translateY(0);
    transition:
      transform 0.24s ease,
      box-shadow 0.24s ease,
      border-color 0.24s ease;
    will-change: transform;
  }

  body.rsi-property-list .strip.list_view.property-list.rs-village-card:hover,
  body.rsi-property-list .strip.list_view.property-list.rs-village-card:has(.rs-card-link:hover) {
    transform: translateY(-5px);
    border-color: #d8dde6;
    box-shadow:
      0 8px 18px rgba(15, 23, 42, 0.07),
      0 24px 48px rgba(15, 23, 42, 0.12);
  }

  body.rsi-property-list .property-list.rs-village-card a.rs-card-link,
  body.rsi-property-list .property-list.rs-village-card a.rs-card-link:link,
  body.rsi-property-list .property-list.rs-village-card a.rs-card-link:visited,
  body.rsi-property-list .property-list.rs-village-card a.rs-card-link:hover,
  body.rsi-property-list .property-list.rs-village-card a.rs-card-link:active,
  body.rsi-property-list .property-list.rs-village-card a.rs-card-link:focus {
    display: flex;
    min-height: inherit;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  body.rsi-property-list .rs-village-card .rs-card-row {
    width: 100%;
    min-height: 306px;
    align-items: stretch;
  }

  body.rsi-property-list .rs-village-card .rs-card-media,
  body.rsi-property-list .rs-village-card .rs-card-content {
    display: flex;
    flex-direction: column;
  }

  body.rsi-property-list .rs-village-card .rs-card-media {
    position: relative;
    min-height: 306px;
    background: #f6f3ee;
  }

  body.rsi-property-list .rs-village-card .rs-card-media figure {
    flex: 1 1 auto;
    width: 100%;
    min-height: 306px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
  }

  body.rsi-property-list .rs-village-card .rs-card-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 306px !important;
    object-fit: cover;
    object-position: center;
    transform: none !important;
    transition: none;
  }

  body.rsi-property-list .rs-village-card:hover .rs-card-image,
  body.rsi-property-list .rs-village-card:has(.rs-card-link:hover) .rs-card-image {
    transform: none !important;
  }

  body.rsi-property-list .rs-village-card .rs-experience-tags {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  body.rsi-property-list .rs-village-card .rs-experience-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #253044;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: none;
    transition: none;
  }

  body.rsi-property-list .rs-village-card .rs-card-content {
    justify-content: space-between;
    min-height: 306px;
    padding: 0;
  }

  body.rsi-property-list .rs-village-card .rs-card-body-inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 30px 34px 18px;
  }

  body.rsi-property-list .rs-village-card .rs-property-type {
    width: fit-content;
    margin: 0 0 13px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef7e7;
    color: #2f5f2b;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.rsi-property-list .rs-village-card .rs-card-title {
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
  }

  body.rsi-property-list .rs-village-card .rs-card-location {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.rsi-property-list .rs-village-card .rs-card-description {
    display: -webkit-box;
    max-height: 4.95em;
    margin-top: 16px;
    overflow: hidden;
    color: #4d5a6f !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  body.rsi-property-list .rs-village-card .rs-card-description p,
  body.rsi-property-list .rs-village-card .rs-card-description * {
    margin-bottom: 0 !important;
    color: #4d5a6f !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  body.rsi-property-list .rs-village-card .rs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    margin-top: auto;
    padding: 20px 34px 26px;
    border-top: 1px solid #eef1f5;
    background: #ffffff;
  }

  body.rsi-property-list .rs-village-card .rs-explore-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 21px;
    border: 1px solid #081f7a;
    border-radius: 14px;
    background: #081f7a;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(8, 31, 122, 0.16);
    font-size: 0.94rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition:
      background-color 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease;
  }

  body.rsi-property-list .rs-village-card:hover .rs-explore-cta,
  body.rsi-property-list .rs-village-card:has(.rs-card-link:hover) .rs-explore-cta {
    border-color: #102b88;
    background: #102b88;
    box-shadow: 0 10px 22px rgba(8, 31, 122, 0.22);
  }

  body.rsi-property-list .rs-village-card .rs-cta-arrow {
    color: #ffffff !important;
    font-size: 1rem;
    transform: none !important;
    transition: none;
  }

  body.rsi-property-list .rs-village-card .rs-price-block {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-end;
    min-width: 190px;
    margin: 0;
    text-align: right;
  }

  body.rsi-property-list .rs-village-card .rs-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
  }

  body.rsi-property-list .rs-village-card .rs-price-label {
    flex: 0 0 100%;
    color: #7b8494;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.rsi-property-list .rs-village-card .rs-price-was {
    color: #a6adba;
    font-size: 0.86rem;
    line-height: 1;
    text-decoration: line-through;
  }

  body.rsi-property-list .rs-village-card .rs-price-current {
    display: inline-flex;
    align-items: baseline;
    color: #172033 !important;
    font-size: 1.64rem !important;
    font-weight: 800 !important;
    line-height: 1;
  }

  body.rsi-property-list .rs-village-card .rs-price-current small {
    margin-left: 4px;
    color: #687386;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
  }

  body.rsi-property-list .rs-village-card .rs-price-taxes,
  body.rsi-property-list .rs-village-card .rs-price-sub {
    display: block;
    margin-top: 4px;
    color: #8a94a6;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: right;
  }
}

@media (min-width: 992px) {
  body.rsi-property-list #results {
    position: sticky;
    top: var(--rsi-pl-header-h);
    z-index: 999;
  }
}

body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail::-webkit-scrollbar {
  display: none;
}

body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail li {
  flex: 0 0 auto;
}

@media (max-width: 991px) {
  body.rsi-property-list .breadcrumbs {
    padding: 8px 0;
    margin-bottom: 10px;
  }

  body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail li,
  body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail li a {
    font-size: 12px;
    line-height: 1.35;
  }

  body.rsi-property-list .breadcrumbs-text .rsi-breadcrumb-trail li::after {
    margin: 0 0.35em;
    font-size: 11px;
  }
}
