/* Phase 11 — /stays discovery only. No header, footer or detail-page rules. */
.ms-stays.ms-stay-discovery-v2 {max-width:1280px;width:100%;box-sizing:border-box;margin-inline:auto;padding-top:14px}
.ms-stay-discovery-v2 .ms-stay-heading {margin:3px 0 15px;align-items:center}
.ms-stay-discovery-v2 .ms-stay-heading h1 {font-size:clamp(27px,3vw,36px);line-height:1.13;margin:4px 0}
.ms-stay-discovery-v2 .ms-stay-heading .lead {font-size:13px}
.ms-stays.ms-stay-discovery-v2 .ms-stay-search {display:grid;grid-template-columns:minmax(175px,1.3fr) minmax(285px,1.4fr) minmax(150px,.85fr) auto;gap:12px;padding:14px;align-items:end;margin-bottom:19px}
.ms-stay-discovery-v2 .ms-stay-search-destination {font-size:12px;min-width:0}
.ms-stay-discovery-v2 .ms-stay-search-dates {min-width:0;border:0;padding:0;margin:0}
.ms-stay-discovery-v2 .ms-stay-search-dates legend {padding:0;margin-bottom:6px;color:#294b42;font-weight:700;font-size:12px}
.ms-stay-discovery-v2 .ms-stay-date-pair {display:flex;align-items:center;border:1px solid #cddbd5;border-radius:11px;background:#fff;min-height:45px;gap:2px;padding:0 7px}
.ms-stay-discovery-v2 .ms-stay-date-pair label {flex:1;min-width:0;display:block}
.ms-stay-discovery-v2 .ms-stay-date-pair input {border:0;background:transparent;width:100%;font-size:12px;padding:5px 1px;min-width:0;box-shadow:none;height:43px}
.ms-stay-discovery-v2 .ms-stay-date-divider {color:#829d90}
.ms-stay-discovery-v2 .ms-stay-party {position:relative;min-width:0}
.ms-stay-discovery-v2 .ms-stay-party summary {border:1px solid #cddbd5;border-radius:11px;background:white;cursor:pointer;padding:6px 12px;min-height:45px;display:grid;gap:1px;list-style:none;position:relative;padding-right:25px;color:#294b42;font-size:12px}
.ms-stay-discovery-v2 .ms-stay-party summary::-webkit-details-marker {display:none}
.ms-stay-discovery-v2 .ms-stay-party summary::after {content:'⌄';position:absolute;right:11px;top:13px;color:#476f60}
.ms-stay-discovery-v2 .ms-stay-party summary strong {font-size:12px;font-weight:600;white-space:nowrap}
.ms-stay-discovery-v2 .ms-stay-party-fields {z-index:12;position:absolute;top:calc(100% + 6px);right:0;width:min(260px,85vw);display:grid;grid-template-columns:1fr 1fr;gap:12px;background:white;border:1px solid #dce9e0;box-shadow:0 12px 26px rgba(14,64,45,.12);padding:14px;border-radius:13px}
.ms-stay-discovery-v2 .ms-stay-search-submit {white-space:nowrap;min-height:45px;align-self:end}
.ms-stay-discovery-v2 .ms-stay-browse-layout {display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;align-items:start}
.ms-stay-discovery-v2 .ms-stay-filter-sidebar,.ms-stay-discovery-v2 .ms-stay-browse-main {min-width:0}
.ms-stay-discovery-v2 .ms-stay-filters {border:1px solid #e0e9e3;border-radius:15px;background:#fff;overflow:visible;box-shadow:0 8px 20px rgba(13,53,41,.035)}
.ms-stay-discovery-v2 .ms-stay-filters>summary {list-style:none;cursor:pointer;font-size:16px;font-weight:800;padding:17px 17px 12px;display:flex;justify-content:space-between;align-items:center;gap:9px}
.ms-stay-discovery-v2 .ms-stay-filters>summary::-webkit-details-marker {display:none}
.ms-stay-discovery-v2 .ms-stay-filter-toggle {font-size:10px;color:#617f71;font-weight:600}
.ms-stay-discovery-v2 .ms-stay-filter-group {margin:0;border:0;border-top:1px solid #eef3ef;padding:15px 17px 13px;display:grid;gap:9px;min-width:0}
.ms-stay-discovery-v2 .ms-stay-filter-group legend {float:left;width:100%;font-size:13px;font-weight:800;margin:0 0 10px;padding:0;color:#164538}
.ms-stay-discovery-v2 .ms-stay-check {display:flex;align-items:center;gap:9px;font-weight:500;font-size:12px;cursor:pointer;line-height:1.4}
.ms-stay-discovery-v2 .ms-stay-check input[type=checkbox] {flex:none;width:16px;height:16px;margin:0;accent-color:#0b785d}
.ms-stay-discovery-v2 .ms-stay-filter-currency,.ms-stay-discovery-v2 .ms-stay-price-fields label {font-size:11px;font-weight:600}
.ms-stay-discovery-v2 .ms-stay-filter-currency select {height:39px;min-height:39px;margin-top:5px}
.ms-stay-discovery-v2 .ms-stay-price-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ms-stay-discovery-v2 .ms-stay-price-fields input {font-size:12px;min-height:39px;height:39px;margin-top:5px}
.ms-stay-discovery-v2 .ms-stay-filter-hint {font-size:10.5px;line-height:1.45;margin:0;color:#60796c}
.ms-stay-discovery-v2 .ms-stay-filter-actions {padding:13px 17px 17px;display:flex;flex-direction:column;align-items:stretch;gap:9px}
.ms-stay-discovery-v2 .ms-stay-filter-actions .button {min-height:40px;justify-content:center}
.ms-stay-discovery-v2 .ms-stay-filter-actions a {text-align:center;font-size:12px;font-weight:750;color:#11624b}
.ms-stay-discovery-v2 .ms-stay-results-heading {margin:0 0 14px;align-items:start;gap:10px}
.ms-stay-discovery-v2 .ms-stay-results-heading h2 {font-size:21px;margin:2px 0 3px}
.ms-stay-discovery-v2 .ms-stay-results-heading p {max-width:500px;line-height:1.4}
.ms-stay-discovery-v2 .ms-stay-sort-form {display:flex;gap:8px;align-items:center}
.ms-stay-discovery-v2 .ms-stay-sort-form label {display:flex;gap:7px;align-items:center;font-size:11px;color:#5d776c;white-space:nowrap}
.ms-stay-discovery-v2 .ms-stay-sort-form select {min-width:138px;min-height:39px;height:39px;font-size:12px;padding:7px 9px}
.ms-stay-discovery-v2 .ms-stay-sort-apply {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.ms-stay-discovery-v2 .ms-stay-active-filters {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-1px 0 13px}
.ms-stay-discovery-v2 .ms-stay-active-filters a {font-size:12px;color:#0d7158;font-weight:750;margin-left:5px}
.ms-stay-discovery-v2 .ms-stay-filter-chip {font-size:11px;font-weight:650;background:#e8f5ed;color:#1a6450;border-radius:30px;padding:6px 10px}
.ms-stays.ms-stay-discovery-v2 .ms-stay-property-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:stretch}
.ms-stay-discovery-v2 .ms-stay-property {min-width:0;min-height:420px}
.ms-stay-discovery-v2 .ms-stay-property-image {height:auto;aspect-ratio:16/9;flex:none}
.ms-stay-discovery-v2 .ms-stay-property-body {padding:14px;gap:7px}
.ms-stay-discovery-v2 .ms-stay-property-body h3 {font-size:17px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:22px}
.ms-stay-discovery-v2 .ms-stay-location {font-size:12px;text-transform:none;font-weight:650}
.ms-stay-discovery-v2 .ms-stay-description {font-size:12px;line-height:1.42;min-height:32px;max-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:none;margin:0}
.ms-stay-discovery-v2 .ms-stay-card-facts {display:flex;gap:5px;flex-wrap:wrap;min-height:25px}
.ms-stay-discovery-v2 .ms-stay-card-facts span {font-size:10px;border-radius:6px;background:#f2f7f3;color:#355d4a;padding:4px 6px}
.ms-stay-discovery-v2 .ms-stay-match-tag {font-size:10px;line-height:1.3}
.ms-stay-discovery-v2 .ms-stay-property-bottom {gap:8px;padding-top:11px;align-items:end;margin-top:auto}
.ms-stay-discovery-v2 .ms-stay-property-bottom strong {font-size:17px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.ms-stay-discovery-v2 .ms-stay-property-bottom .button {min-height:37px;padding:8px 10px;font-size:12px}
.ms-stay-discovery-v2 .ms-stay-empty {min-height:200px}
.ms-stay-discovery-v2 .ms-stay-bottom-note {line-height:1.55;font-size:11px;margin-top:15px}
.ms-stay-discovery-v2 :is(button,input,select,summary,a):focus-visible {outline:3px solid #e67f65;outline-offset:3px}
@media (max-width:1160px){
  .ms-stays.ms-stay-discovery-v2 .ms-stay-search {grid-template-columns:minmax(155px,1.05fr) minmax(245px,1.4fr) minmax(130px,.8fr) auto}
  .ms-stay-discovery-v2 .ms-stay-browse-layout {grid-template-columns:220px minmax(0,1fr);gap:16px}
  .ms-stays.ms-stay-discovery-v2 .ms-stay-property-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:880px){
  .ms-stays.ms-stay-discovery-v2 .ms-stay-search {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms-stay-discovery-v2 .ms-stay-search-submit {grid-column:1/-1}
  .ms-stay-discovery-v2 .ms-stay-browse-layout {grid-template-columns:1fr;gap:15px}
  .ms-stay-discovery-v2 .ms-stay-filters>summary {padding:12px 15px}
  .ms-stay-discovery-v2 .ms-stay-filter-sidebar .ms-stay-filters:not([open]) {border-radius:12px}
  .ms-stay-discovery-v2 .ms-stay-filters form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms-stay-discovery-v2 .ms-stay-filter-group {border-top:1px solid #e7eee9}
  .ms-stay-discovery-v2 .ms-stay-filter-actions {grid-column:1/-1;flex-direction:row;align-items:center;justify-content:start}
  .ms-stay-discovery-v2 .ms-stay-filter-actions .button {width:auto;min-width:150px}
}
@media (max-width:600px){
  .ms-stays.ms-stay-discovery-v2 {padding-top:10px}
  .ms-stay-discovery-v2 .ms-stay-heading h1 {font-size:27px}
  .ms-stays.ms-stay-discovery-v2 .ms-stay-search {grid-template-columns:1fr;padding:12px;gap:10px}
  .ms-stay-discovery-v2 .ms-stay-search-submit {grid-column:auto}
  .ms-stay-discovery-v2 .ms-stay-party-fields {right:auto;left:0}
  .ms-stay-discovery-v2 .ms-stay-filters form {grid-template-columns:1fr}
  .ms-stay-discovery-v2 .ms-stay-filter-actions {flex-wrap:wrap}
  .ms-stay-discovery-v2 .ms-stay-results-heading {flex-wrap:wrap}
  .ms-stay-discovery-v2 .ms-stay-sort-form {width:100%;justify-content:flex-start}
  .ms-stays.ms-stay-discovery-v2 .ms-stay-property-grid {grid-template-columns:1fr}
  .ms-stay-discovery-v2 .ms-stay-property {min-height:0}
  .ms-stay-discovery-v2 .ms-stay-property-image {height:auto;aspect-ratio:16/9}
  .ms-stay-discovery-v2 .ms-stay-property-bottom .button {width:auto}
}
@media (max-width:370px){
  .ms-stay-discovery-v2 .ms-stay-date-pair {padding:0 4px}
  .ms-stay-discovery-v2 .ms-stay-date-pair input {font-size:11px}
}
/* Subtle Sri Lankan landscape artwork, confined to the Stays heading. */
@media (min-width:760px){
  .ms-stay-discovery-v2 .ms-stay-heading {position:relative;isolation:isolate;padding:12px 18px;border-radius:15px;overflow:hidden;background:linear-gradient(105deg,#f5faf7 0%,#f3f9f5 66%,#d5ebe4 100%)}
  .ms-stay-discovery-v2 .ms-stay-heading::after {content:"";position:absolute;right:0;top:0;bottom:0;width:43%;z-index:-1;pointer-events:none;opacity:.33;background:url('/images/home/marsata-hero-landscape.svg') center 46%/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 45%)}
}
