/* The homepage shares the catalogue and booking components with the legacy property view. */
.home-header,
.catalog-quick-bar {
  display: none;
}

body.catalog-home {
  --home-accent: #174f43;
  --home-ink: #182e28;
  --home-muted: #476057;
  --home-line: #d8e3db;
  --home-paper: #faf9f4;
  --home-heading: Georgia, 'Times New Roman', serif;
  background: var(--home-paper);
  color: var(--home-ink);
  font-size: 16px;
}

.catalog-home .home-wrap,
.catalog-home > main,
.catalog-home #catalog-footer .shell-footer-inner {
  width: min(1240px, 100% - 32px);
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}

.catalog-home #catalog-view .home-wrap {
  width: 100%;
}

.catalog-home .home-header {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--home-line);
}

.catalog-home #catalog-shell-header,
.catalog-home .home-bar,
body.catalog-home.mx-ready .mx-mobile-bar,
body.catalog-home.trip-assist-ready .trip-assist,
.catalog-home #assistant-launcher {
  display: none !important;
}

.catalog-home .home-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 10px;
}

.catalog-home .home-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 0;
  color: var(--home-ink);
  font: 700 clamp(17px, 4.8vw, 24px)/1 Arial, sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
}

.home-brand span[aria-hidden] {
  margin-right: .28em;
  color: var(--home-accent);
  font-size: 1.18em;
}

.home-brand span:last-child {
  color: #426859;
}

.catalog-home .home-header nav {
  display: none;
}

.catalog-home .home-header-phone {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(14px, 4.1vw, 20px);
  font-weight: 700;
  color: var(--home-accent);
  text-decoration: none;
}

.catalog-home #catalog-view {
  margin: 0;
}

.catalog-home .home-search {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: 20px 0;
}

.catalog-home .home-intro > * {
  margin: 0;
}

.catalog-home .home-intro-label {
  margin-bottom: 9px;
  color: var(--home-accent);
  font-size: 15px;
  font-weight: 700;
}

.catalog-home .home-intro h1 {
  max-width: 18ch;
  font-family: var(--home-heading);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em;
  color: var(--home-ink);
  text-wrap: balance;
}

.catalog-home .home-intro-copy {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--home-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
}

.catalog-home .home-cover {
  display: none;
}

.catalog-home #catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #fff;
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  border-radius: 18px;
  box-shadow: 0 12px 26px #183d3010;
}

.catalog-home #catalog-search label,
.catalog-home .home-guests summary > span {
  color: var(--home-muted);
  font: 600 15px/1.3 Arial, sans-serif;
}

.catalog-home #catalog-search input {
  color: var(--home-ink);
  background: #fbfcfa;
  border: 1px solid #a8bcb1;
  border-radius: 8px;
  min-width: 0;
  width: 100%;
  height: 48px;
  margin-top: 5px;
  padding: 9px 11px;
  font-size: 16px;
}

.catalog-home #catalog-search .mx-date-wrap {
  margin-top: 5px;
}

.catalog-home #catalog-search :is(.destination, .home-guests, .home-search-error, .home-search-actions, .home-search-note) {
  grid-column: 1 / -1;
}

.catalog-home #catalog-search .home-arrival {
  grid-column: 1;
}

.catalog-home #catalog-search .home-nights {
  grid-column: 2;
}

.catalog-home #catalog-search .destination-options {
  z-index: 3;
  color: var(--home-ink);
  max-height: min(300px, 40vh);
}

.catalog-home #catalog-search .destination-options button {
  min-height: 48px;
  font-size: 16px;
}

.catalog-home .home-guests {
  position: relative;
  min-width: 0;
}

.catalog-home .home-guests summary {
  display: grid;
  gap: 5px;
  list-style: none;
  cursor: pointer;
}

.catalog-home .home-guests summary::-webkit-details-marker {
  display: none;
}

.catalog-home .home-guests summary > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 48px;
  padding: 9px 11px;
  color: var(--home-ink);
  background: #fbfcfa;
  border: 1px solid #a8bcb1;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
}

.catalog-home .home-guests summary > strong::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: solid var(--home-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.catalog-home .home-guest-popup {
  display: grid;
  gap: 10px;
  padding: 12px 0 2px;
  color: var(--home-muted);
}

.catalog-home .home-guest-popup p,
.catalog-home .home-search-error,
.catalog-home .home-search-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.catalog-home .home-search-note {
  color: var(--home-muted);
}

.catalog-home .home-search-error,
.catalog-home .home-guest-error {
  color: #862e21;
}

.catalog-home .home-search-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-home :is(.home-search-actions, .catalog-quick-bar) :is(button, a),
.catalog-home .home-guest-popup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 9px;
  border: 1px solid var(--home-accent);
  border-radius: 8px;
  line-height: 1.2;
  white-space: normal;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.catalog-home :is(.home-search-actions, .catalog-quick-bar, .home-guest-popup) .primary {
  color: #fff;
  background: var(--home-accent);
}

.catalog-home :is(.home-search-actions, .catalog-quick-bar, .home-guest-popup) .primary:hover {
  background: #113d33;
}

.catalog-home :is(.home-search-actions .secondary, .catalog-quick-bar a) {
  color: var(--home-accent);
  background: #fff;
}

.catalog-home :is(.home-search-actions .secondary, .catalog-quick-bar a):hover {
  background: #eaf2ed;
}

a[data-uis-call]:not([href]) {
  visibility: hidden;
}

.catalog-home :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #a46a29;
  outline-offset: 3px;
}

.catalog-home #category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 48px 0 16px;
  overflow: visible;
}

.catalog-home #category-tabs button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-accent);
  background: #fff;
  font-size: 16px;
  white-space: normal;
}

.catalog-home #category-tabs button[aria-pressed="true"] {
  background: #e4eee7;
  border-color: #87ac99;
}

.catalog-home #catalog {
  display: grid;
  grid-template-areas:
    "filters"
    "results";
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  scroll-margin-top: 20px;
}

.catalog-home #catalog > * {
  min-width: 0;
}

.catalog-home #catalog > :is(.filters, .home-filter-details) {
  grid-area: filters;
}

.catalog-home #catalog > .results {
  grid-area: results;
}

.catalog-home .home-filter-details {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 12px;
}

.catalog-home .home-filter-details > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 4px 10px;
  padding: 10px 15px;
  color: var(--home-accent);
  font-weight: 700;
  cursor: pointer;
}

.catalog-home .home-filter-caption {
  color: var(--home-muted);
  font-weight: 400;
}

.catalog-home #catalog .filters {
  position: static;
  margin: 0;
  padding: 14px;
  border: 0;
  background: transparent;
}

.catalog-home #catalog #result-kicker,
.catalog-home #catalog-payment {
  display: none;
}

.catalog-home #catalog .results-heading h2,
.catalog-home #tourist-help h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-heading);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.025em;
}

.catalog-home #catalog :is(.filters label, .filters select, #count, .sort-label select, #search-summary, #page-prices, #price-status) {
  font-size: 16px;
  color: var(--home-muted);
}

.catalog-home #catalog :is(button, select, .card-actions a) {
  min-height: 44px;
}

.catalog-home #catalog .results-heading {
  align-items: start;
  margin-bottom: 12px;
}

.catalog-home #catalog .price-toolbar {
  flex-wrap: wrap;
  gap: 8px 16px;
}

.catalog-home #catalog .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.catalog-home #catalog .grid .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-color: var(--home-line);
  border-radius: 16px;
}

.catalog-home #catalog .grid .card .cover {
  min-height: 0;
  flex: none;
  height: auto;
  aspect-ratio: 16 / 9;
}

.catalog-home #catalog .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
}

.catalog-home #catalog .card-title {
  color: var(--home-ink);
  font-size: 21px;
}

.catalog-home #catalog :is(.card-location, .card-price p, .card-price .price-empty, .source-note, .filter-note) {
  color: var(--home-muted);
  font-size: 15px;
}

.catalog-home #catalog .card-price {
  min-height: 0;
  align-self: stretch;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--home-line);
}

.catalog-home #catalog .card-price strong {
  white-space: normal;
  color: var(--home-ink);
}

.catalog-home #catalog .card-tags .tag {
  padding: 3px 8px;
  color: var(--home-muted);
  background: #f1f6f2;
  border-color: var(--home-line);
  font-size: 14px;
  white-space: normal;
}

.catalog-home #catalog .card-actions {
  align-self: stretch;
  margin-top: 5px;
}

.catalog-home #catalog .card-actions a {
  width: 100%;
  max-width: none;
  background: #eef5ef;
  border-color: #b0c9ba;
  color: var(--home-accent);
  font-size: 16px;
}

.catalog-home #tourist-help {
  margin: 48px 0 30px;
  padding: clamp(18px, 4vw, 44px);
  color: var(--home-ink);
  background: #edf4ed;
  border-color: var(--home-line);
  border-radius: 18px;
}

.catalog-home #tourist-help .shell-help-heading p,
.catalog-home #tourist-help .shell-faq p {
  color: var(--home-muted);
  font-size: 16px;
}

.catalog-home #tourist-help .shell-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.catalog-home .home-booking-steps {
  display: grid;
  gap: 18px;
  padding-inline-start: 25px;
  margin: 0 0 20px;
}

.catalog-home .home-booking-steps li {
  padding-inline-start: 5px;
}

.catalog-home .home-booking-steps li::marker {
  color: var(--home-accent);
  font-weight: 700;
}

.catalog-home .home-booking-steps h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.catalog-home .home-booking-steps p {
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
}

.catalog-home :is(.shell-faq summary, .shell-button) {
  min-height: 44px;
  font-size: 16px;
}

.catalog-home #tourist-help .shell-button {
  color: white;
  background: var(--home-accent);
}

.catalog-home .shell-payment {
  margin-bottom: 44px;
  border-radius: 16px;
}

.catalog-home #catalog-footer {
  color: var(--home-ink);
  background: #edf3ed;
  border-color: var(--home-line);
}

.catalog-home #catalog-footer :is(a, button, p) {
  color: var(--home-muted);
  font-size: 15px;
}

.catalog-home #catalog-footer :is(nav a, nav button) {
  min-height: 44px;
}

@media (max-width: 800px) {
  body.catalog-home.mx-ready {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  .catalog-home .catalog-quick-bar {
    position: fixed;
    z-index: 90;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 8px;
    padding: 9px max(12px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: #fff;
    border-top: 1px solid var(--home-line);
    box-shadow: 0 -4px 24px #183d3011;
  }

  .catalog-home:has(dialog[open]) .catalog-quick-bar,
  .catalog-home.mx-editing .catalog-quick-bar {
    visibility: hidden;
  }
}

@media (max-width: 599px) {
  .catalog-home .home-guests summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
}

@media (min-width: 600px) {
  .catalog-home > main,
  .catalog-home .home-wrap,
  .catalog-home #catalog-footer .shell-footer-inner {
    width: min(1240px, 100% - 56px);
  }

  .catalog-home #catalog-search {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .65fr) minmax(0, 1.15fr);
    padding: 20px;
  }

  .catalog-home #catalog-search .destination { grid-column: 1; }
  .catalog-home #catalog-search .home-arrival { grid-column: 2; }
  .catalog-home #catalog-search .home-nights { grid-column: 3; }
  .catalog-home #catalog-search .home-guests { grid-column: 4; }

  .catalog-home .home-search-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .catalog-home .home-guest-popup {
    position: absolute;
    z-index: 2;
    inset: 100% 0 auto auto;
    margin-top: 6px;
    width: 286px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    box-shadow: 0 14px 30px #183d3024;
  }

  .catalog-home #catalog .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 801px) {
  .catalog-home .home-header-inner {
    min-height: 76px;
  }

  .catalog-home .home-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .catalog-home .home-header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--home-muted);
    font-weight: 600;
    text-decoration: none;
  }

  .catalog-home .home-header a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .catalog-home .home-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 40px;
    padding-top: 32px;
  }

  .catalog-home .home-cover {
    position: relative;
    display: block;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
  }

  .catalog-home .home-cover img {
    display: block;
    width: 100%;
    height: clamp(240px, 23vw, 320px);
    object-fit: cover;
  }

  .catalog-home .home-cover figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 16px 12px;
    color: #fff;
    background: linear-gradient(transparent, #162d24ed);
    font-size: 15px;
  }

  .catalog-home #catalog-search {
    grid-column: 1 / -1;
  }

  .catalog-home #catalog {
    grid-template-areas: "filters results";
    grid-template-columns: minmax(200px, 235px) minmax(0, 1fr);
    gap: 22px;
  }

  .catalog-home .home-filter-details > summary {
    display: none;
  }

  .catalog-home #tourist-help .shell-help-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    gap: 32px;
  }
}

@media (min-width: 1120px) {
  .catalog-home #catalog-search {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.05fr) minmax(0, .65fr) minmax(0, 1.1fr) max-content;
    gap: 12px 14px;
    padding: 22px;
  }

  .catalog-home #catalog-search .home-search-actions {
    grid-column: 5;
    grid-template-columns: repeat(2, max-content);
  }

  .catalog-home #catalog .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
