/* v1074: approved phone search results (search box, quick filters, count + sort, new stay card).
   Loaded only up to 900px wide (media attribute on the <link>), so computers are unchanged.
   The older phone blocks it replaces are hidden here, not deleted, so rollback is one link. */

/* Replaced phone blocks */
html body .ys900-top, html body .sr-quick-controls, html body .ys900-types, html body .sr-results-head,
html body .sr9-sort, html body .sr9-dchips, html body .sr-breadcrumb, html body #srResults .sr9-card { display: none !important; }

/* Same 18px side margin as the approved design (the page container has 24px on phones) */
.sr-layout > main { margin-left: -6px; margin-right: -6px; }
.sr955-note { margin: 22px 0 0; }

.ys74-m { display: block; }
.ys74-top, .ys74-bar, .ys74-card {
  --y74-navy: #1e324d; --y74-ink: #212f3f; --y74-line: #e4e8ec; --y74-line2: #dce2e7;
  --y74-orange: #dd7336; --y74-brown: #996543;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Search summary */
.ys74-top { padding: 24px 18px 0; background: #fff; }
.ys74-sum { display: flex; align-items: center; width: 100%; height: 94px; margin: 0; padding: 0 20px 0 22px;
  border: 1px solid var(--y74-line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 50, 77, .03); color: var(--y74-navy); font: inherit; }
.ys74-sum > svg { flex: 0 0 auto; }
.ys74-sum-t { flex: 1; min-width: 0; margin-left: 22px; }
.ys74-sum-t b { display: block; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--y74-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys74-sum-t small { display: block; margin-top: 4px; font-size: 16px; color: #56636f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys74-sum-e { flex: 0 0 auto; padding: 6px 0 6px 22px; border-left: 1px solid var(--y74-line);
  font-size: 18px; font-weight: 700; color: var(--y74-brown); }

/* Quick filters */
.ys74-chips { display: flex; gap: 10px; margin-top: 32px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.ys74-chips::-webkit-scrollbar { display: none; }
.ys74-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 50px; margin: 0; padding: 0 16px;
  border: 1px solid var(--y74-line2); border-radius: 12px; background: #fff; color: #44525f;
  font: 600 15px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  white-space: nowrap; text-decoration: none; cursor: pointer; }
.ys74-chip-f { border-color: #c5d0da; color: var(--y74-navy); }
.ys74-chip.on { background: var(--y74-navy); border-color: var(--y74-navy); color: #fff; }

/* Count + sort */
.ys74-bar { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 22px; padding: 0; }
.ys74-count { font-size: 16px; color: #56636f; }
.ys74-sort { position: relative; display: flex; align-items: center; margin: 0; color: #2c3e52; font-weight: 600; font-size: 16px; }
.ys74-sort select { appearance: none; -webkit-appearance: none; margin: 0; padding: 4px 34px 4px 0; border: 0; background: transparent;
  font: inherit; color: inherit; cursor: pointer; box-shadow: none; }
.ys74-sort svg { position: absolute; right: 2px; pointer-events: none; }

/* List spacing */
.srx-list { display: block; }
.ys74-card { margin: 0 0 22px; border: 1px solid var(--y74-line); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(30, 50, 77, .04); color: var(--y74-ink); }
.ys74-card a { text-decoration: none; }

/* Photo */
.ys74-ph { position: relative; height: 284px; background: #ece6dc; }
.ys74-ph > a, .ys74-ph img { display: block; width: 100%; height: 100%; }
.ys74-ph img { object-fit: cover; }
.ys74-why { position: absolute; left: 18px; top: 19px; max-width: calc(100% - 100px); padding: 10px 14px; border-radius: 9px;
  background: rgba(245, 237, 226, .94); color: #876343; font-size: 13px; font-weight: 700; letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ys74-fav { position: absolute; right: 17px; top: 17px; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96);
  color: #3a4a5c; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); cursor: pointer; }
.ys74-fav[aria-pressed="true"] svg { fill: #e0533d; stroke: #e0533d; }
.ys74-pc { position: absolute; right: 19px; bottom: 19px; padding: 7px 11px; border-radius: 7px;
  background: rgba(33, 37, 47, .86); color: #fff; font-size: 13px; font-weight: 600; }

/* Body */
.ys74-bd { padding: 22px; }
.ys74-top2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ys74-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; }
.ys74-name a { color: var(--y74-ink); }
.ys74-rate { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 8px;
  background: #eff6f1; color: #4b765f; font-size: 16px; font-weight: 700; }
.ys74-rate small { font-size: 13px; font-weight: 500; color: #4f6b5b; }
.ys74-loc { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #56636f; font-size: 16px; }
.ys74-loc svg { flex: 0 0 auto; }

.ys74-dist { display: flex; align-items: center; min-height: 88px; margin-top: 22px; padding: 18px 18px 16px 24px;
  border: 1px solid #efe2c8; border-radius: 12px; background: #fbf8ef; }
.ys74-dist > svg { flex: 0 0 auto; color: #c27a3c; }
.ys74-dist-t { flex: 1; min-width: 0; margin-left: 24px; }
.ys74-dist-t b { display: block; color: #5a4c33; font-size: 16px; font-weight: 700; }
.ys74-dist-t span { display: block; margin-top: 5px; color: #7d6e55; font-size: 13px; }
.ys74-km { flex: 0 0 auto; text-align: right; color: #8a5a2e; line-height: 1; }
.ys74-km b { font-size: 30px; font-weight: 700; letter-spacing: -.3px; }
.ys74-km em { margin-left: 2px; font-style: normal; font-size: 17px; font-weight: 700; }
.ys74-km small { display: block; margin-top: 6px; font-size: 12px; color: #8a7658; }

.ys74-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ys74-tag { padding: 7px 11px; border: 1px solid #e7ebed; border-radius: 7px; background: #f6f8f8; color: #44525f; font-size: 15px; }

.ys74-offers { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.ys74-off { padding: 8px 12px; border-radius: 7px; background: #ecf5ed; color: #427457; font-size: 16px; font-weight: 700; }
.ys74-deal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #f2d3b4; border-radius: 7px;
  background: #fdf5e9; color: #a25c2f; font-size: 16px; font-weight: 700; }

.ys74-price { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; padding-top: 24px;
  border-top: 1px solid #edeff0; }
.ys74-pl { min-width: 0; }
.ys74-lbl { font-size: 15px; color: #56636f; }
.ys74-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.ys74-amt b { font-size: 38px; font-weight: 700; letter-spacing: -.5px; color: var(--y74-navy); }
.ys74-amt s { font-size: 17px; color: #6b7682; }
.ys74-per { margin-top: 4px; font-size: 15px; color: #56636f; }
.ys74-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; height: 62px; margin-top: 0; padding: 0 19px;
  border-radius: 10px; background: var(--y74-orange); color: #fff !important; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(221, 115, 54, .22); white-space: nowrap; }
.ys74-cta:active { background: #c9622a; }

/* Small phones: same layout, a little tighter so the price and button stay on one line */
@media (max-width: 440px) {
  .ys74-top { padding: 16px 14px 0; }
  .sr-layout > main { margin-left: -10px; margin-right: -10px; }
  .ys74-sum { height: 78px; padding: 0 14px 0 16px; }
  .ys74-sum-t { margin-left: 14px; }
  .ys74-sum-t b { font-size: 18px; }
  .ys74-sum-t small { font-size: 14px; }
  .ys74-sum-e { padding-left: 14px; font-size: 16px; }
  .ys74-chips { margin-top: 20px; gap: 8px; }
  .ys74-chip { height: 42px; padding: 0 12px; font-size: 14px; }
  .ys74-bar { margin: 22px 0 16px; }
  .ys74-count, .ys74-sort { font-size: 14px; }
  .ys74-ph { height: 210px; }
  .ys74-why { left: 12px; top: 12px; padding: 8px 10px; font-size: 12px; }
  .ys74-fav { right: 12px; top: 12px; width: 42px; height: 42px; }
  .ys74-pc { right: 12px; bottom: 12px; font-size: 12px; }
  .ys74-bd { padding: 16px; }
  .ys74-name { font-size: 20px; }
  .ys74-rate { padding: 6px 8px; font-size: 14px; }
  .ys74-loc { font-size: 14px; }
  .ys74-dist { min-height: 74px; margin-top: 16px; padding: 14px 14px 12px 16px; }
  .ys74-dist-t { margin-left: 14px; }
  .ys74-dist-t b { font-size: 14px; }
  .ys74-dist-t span { font-size: 12px; }
  .ys74-km b { font-size: 24px; }
  .ys74-km em { font-size: 14px; }
  .ys74-tags, .ys74-offers { margin-top: 16px; }
  .ys74-tag { padding: 6px 9px; font-size: 13px; }
  .ys74-off, .ys74-deal { padding: 7px 10px; font-size: 14px; }
  .ys74-offers { gap: 10px; }
  .ys74-price { gap: 10px; margin-top: 16px; padding-top: 18px; }
  .ys74-amt b { font-size: 29px; }
  .ys74-amt s { font-size: 14px; }
  .ys74-per { font-size: 13px; }
  .ys74-cta { height: 52px; gap: 8px; margin-top: 0; padding: 0 13px; font-size: 14px; }
}

/* ---------- v1074.2: rating with Google G, facilities in two rows, trust lines, clearer discount ---------- */
.ys74-rate-g { gap: 5px; background: #fff; border: 1px solid #e3e7eb; color: #1e324d; }
.ys74-rate-g small { color: #56636f; }
.ys74-g { display: block; width: 16px; height: 16px; }
.ys74-fac { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.ys74-chip { padding: 8px 14px; border-radius: 10px; background: #efece7; color: #2b2f36; font-size: 16px; font-weight: 500; line-height: 1.3; }
.ys74-chip[hidden] { display: none; }
.ys74-more { font-size: 16px; font-weight: 600; color: #44525f; }
.ys74-more:empty { display: none; }
.ys74-trust { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ys74-trust li { display: flex; align-items: center; gap: 6px; color: #2a7a45; font-size: 16px; font-weight: 600; }
.ys74-trust li::before { content: "✓"; font-weight: 700; }
.ys74-best { position: absolute; left: 18px; bottom: 19px; padding: 7px 11px; border-radius: 8px; background: #fff3e6; color: #a2491a; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.ys74-was { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ys74-was s { font-size: 16px; color: #6b7682; }
.ys74-pct { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: #1f8a4c; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.ys74-save { margin-top: 2px; font-size: 14px; font-weight: 600; color: #1f8a4c; }
@media (max-width: 440px) {
  .ys74-fac { gap: 8px; margin-top: 14px; }
  .ys74-chip { padding: 7px 11px; font-size: 14px; }
  .ys74-more { font-size: 14px; }
  .ys74-trust { margin-top: 12px; }
  .ys74-trust li { font-size: 14px; }
  .ys74-best { left: 12px; bottom: 12px; font-size: 12px; }
  .ys74-was s { font-size: 14px; }
  .ys74-pct { font-size: 12px; padding: 3px 7px; }
  .ys74-save { font-size: 13px; }
}
