/* Phase 33 — compact homepage Tour and Stay cards.
   Intentional visual override applied AFTER premium card and discount styles.
   Scope strictly limited to the homepage discovery cards and their introductions.
   Existing listings, offers, currency, favorites and booking links remain untouched. */

body.ui-home .ms18-tour-cards,
body.ui-home .ms18-stay-cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
body.ui-home .ms18-tours .ms18-band-intro h2,
body.ui-home .ms18-stays .ms18-band-intro h2 {
  font-family:'DM Sans',system-ui,sans-serif;
  font-style:normal;
  font-size:clamp(24px,2.25vw,30px);
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.045em;
  padding-bottom:8px;
}
body.ui-home .ms18-tours .ms18-band-intro h2::after,
body.ui-home .ms18-stays .ms18-band-intro h2::after {
  left:0;bottom:0;width:31px;height:2px;
  border:0;border-radius:2px;background:#f27760;transform:none;
}
body.ui-home .ms18-tours .ms18-band-intro p,
body.ui-home .ms18-stays .ms18-band-intro p {
  margin:6px 0 12px;
  font-size:12px;
  line-height:1.45;
}
body.ui-home .ms20-card {
  border-radius:16px;
  box-shadow:0 5px 15px rgba(21,62,50,.08);
}
body.ui-home .ms20-card:hover,
body.ui-home .ms20-card:focus-within {
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(21,62,50,.12);
}
body.ui-home .ms20-photo {aspect-ratio:1.86;}
body.ui-home .ms20-photo::after {height:25px;}
body.ui-home .ms20-card .ms20-kind {
  top:9px;left:10px;
  max-width:calc(100% - 57px);
  padding:5px 8px;
  border-radius:999px;
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.ui-home .ms20-card .heart {
  top:8px;right:9px;
  width:31px;height:31px;
  font-size:19px;
}
body.ui-home .ms20-body,
body.ui-home .ms18-stays .ms20-body {
  min-height:139px;
  padding:0 11px 10px;
  gap:5px;
}
body.ui-home .ms20-body h3 {
  margin:0;
  min-height:0;
  max-height:none;
  font-family:'DM Sans',system-ui,sans-serif;
  font-style:normal;
  font-size:16px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.025em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.ui-home .ms20-meta {
  min-height:0;
  gap:4px 6px;
  font-size:10px;
  line-height:1.2;
}
body.ui-home .ms20-meta span:not(.ms20-rating) {
  gap:3px;
  padding:3px 5px;
  line-height:1.15;
  font-size:10px;
}
body.ui-home .ms20-meta svg {width:12px;height:12px;}
body.ui-home .ms20-meta .ms20-rating {font-size:10px;}
body.ui-home .ms20-excerpt {
  min-height:0;
  margin:0;
  font-size:10.5px;
  line-height:1.32;
  -webkit-line-clamp:1;
}
body.ui-home .ms20-footer {
  min-height:39px;
  margin-top:auto;
  padding:4px 5px 4px 7px;
  border-radius:10px;
  gap:4px;
}
body.ui-home .ms20-footer .ms18-card-from {font-size:10px;gap:3px;}
body.ui-home .ms20-footer .ms18-card-from strong {
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:11px;
  font-weight:800;
  padding:5px 7px;
  letter-spacing:-.025em;
}
body.ui-home .ms20-footer .ms18-card-from small {font-size:9px;}
body.ui-home .ms20-footer .ms18-card-open {
  width:31px;height:31px;min-width:31px;
}
body.ui-home .ms20-footer .ms18-card-open svg {width:17px;height:17px;}
body.ui-home .ms20-body .ms22-offer-detail {
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:9.5px;
  line-height:1.25;
  padding:4px 6px;
}
body.ui-home .ms20-card .ms22-offer-ribbon {
  top:9px;left:10px;
  max-width:calc(100% - 56px);
  min-height:28px;
  padding:6px 9px;
  font-family:'DM Sans',system-ui,sans-serif;
  font-style:normal;
  font-weight:800;
  font-size:10.5px;
}
body.ui-home .ms18-stays {
  border-radius:20px;
}

@media(max-width:1180px) {
  body.ui-home .ms18-tour-cards,
  body.ui-home .ms18-stay-cards {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:980px) {
  body.ui-home .ms18-tour-cards,
  body.ui-home .ms18-stay-cards {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
}
@media(max-width:480px) {
  body.ui-home .ms18-tour-cards,
  body.ui-home .ms18-stay-cards {
    display:grid;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:min(74vw,245px);
    gap:10px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:8px;
  }
  body.ui-home .ms20-card {scroll-snap-align:start;}
  body.ui-home .ms20-photo {aspect-ratio:1.86;}
  body.ui-home .ms20-body,
  body.ui-home .ms18-stays .ms20-body {min-height:135px;padding:0 10px 10px;gap:5px;}
  body.ui-home .ms20-body h3 {font-size:15px;}
  body.ui-home .ms20-footer .ms18-card-from strong {font-size:10.5px;}
  body.ui-home .ms20-card .ms22-offer-ribbon {font-size:10px;padding:5px 8px;}
}
@media(prefers-reduced-motion:reduce) {
  body.ui-home .ms20-card,body.ui-home .ms20-photo img {transition:none;}
}
