/* Cards share the offers-page renderer and compact-offers.css sizing. */
.home-empty-legs{padding-top:20px;padding-bottom:30px}
.home-empty-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:25px}
.home-empty-heading h2{font-size:clamp(25px,3vw,32px);line-height:1.12;letter-spacing:-1.5px;margin:0 0 12px;color:#183144}
.home-empty-heading p{font-size:14px;color:#6b8090;margin:0}
.home-empty-carousel{position:relative;min-width:0}
.home-empty-list{position:relative;--home-offer-gap:22px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * var(--home-offer-gap) - 48px)/3);gap:var(--home-offer-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:2px 0 16px;align-items:stretch;isolation:isolate}
.home-empty-list::-webkit-scrollbar{display:none}
.home-empty-list>*{scroll-snap-align:start;min-width:0}
.home-empty-list .empty-leg-card{width:auto;max-width:none;margin:0}
.home-empty-list .empty-leg-card.is-unavailable .empty-leg-photo>img{filter:grayscale(.7);opacity:.65}
.home-empty-list .empty-leg-card.is-unavailable .empty-leg-body>h2{color:#687985}
.home-empty-edge{position:absolute;top:0;bottom:16px;width:72px;z-index:2;pointer-events:none}

.home-empty-edge-right{right:-1px;background:linear-gradient(to left,#fff 6%,#ffffffd9 24%,#ffffff00 100%)}

.home-empty-more-card{border:1px solid #274d66;border-radius:13px;background:linear-gradient(145deg,#163449 0%,#244d67 65%,#36657f 100%);padding:30px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;min-height:390px;position:relative;overflow:hidden}
.home-empty-more-card::before,.home-empty-more-card::after{content:'';position:absolute;pointer-events:none;width:430px;height:430px;border:1px solid #ffffff15;border-radius:50%;left:-110px;top:-180px}
.home-empty-more-card::after{width:500px;height:500px;left:10px;top:65%}
.home-empty-more-card img{width:min(185px,80%);height:auto;margin-bottom:28px;position:relative}
.home-empty-more-card h3{font-size:28px;line-height:1.2;letter-spacing:-.9px;font-weight:500;margin:0 0 16px;color:#fff;position:relative}
.home-empty-more-card p{font-size:13px;line-height:1.8;color:#c3d7e4;margin:0 0 24px;max-width:240px;position:relative}
.home-empty-more-card.empty-leg-zero-card{width:100%;max-width:580px;min-height:240px;margin-inline:auto;padding:25px 22px}
.empty-leg-zero-card img{width:135px;margin-bottom:16px}
.empty-leg-zero-card h3{margin-bottom:8px}
.empty-leg-zero-card p{max-width:34ch;margin-bottom:17px}
.home-empty-more-card .button{min-height:46px;min-width:150px;justify-content:center;background:#f5f9fc;border-color:#f5f9fc;color:#21465e;box-shadow:none;font-size:13px;font-weight:650;position:relative}
.home-empty-more-card .button:hover{background:#dfeef7;border-color:#dfeef7}
.home-empty-note{grid-column:1/-1;padding:25px 30px;border:1px solid #d8e2e9;border-radius:12px;background:#f7fafc;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#61798b;font-size:13px}
.home-empty-note p{margin:0}
.home-empty-note a{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:10px 15px;border:1px solid #bfd2e0;border-radius:7px;font-size:12px;font-weight:650;color:#244c67;background:#fff}
.home-empty-list.is-state{display:block;overflow:visible;min-height:126px}
.home-empty-loading{min-height:126px;border:1px solid #dde6ec;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:12px;color:#6c8394;font-size:13px;background:#f7fafc}
.home-empty-loading span{width:18px;height:18px;border:2px solid #d4e1e9;border-top-color:#315d77;border-radius:50%;animation:home-empty-spin .8s linear infinite}
@keyframes home-empty-spin{to{transform:rotate(360deg)}}
.home-empty-legs a:focus-visible,.home-empty-legs button:focus-visible,.home-empty-list:focus-visible{outline:3px solid #80a8c0;outline-offset:4px}
@media(max-width:1050px) and (min-width:761px){.home-empty-list{grid-auto-columns:calc((100% - var(--home-offer-gap) - 42px)/2)}}
@media(max-width:760px){.home-empty-legs{padding-top:20px;padding-bottom:10px}.home-empty-heading{margin-bottom:20px}.home-empty-heading h2{font-size:25px;letter-spacing:-1px;margin-bottom:10px}.home-empty-heading p{font-size:13px;line-height:1.5}.home-empty-list{--home-offer-gap:15px;grid-auto-columns:calc(100% - 33px);padding-bottom:12px}.home-empty-edge{width:58px;bottom:12px}.home-empty-more-card{padding:28px 22px;min-height:390px}.home-empty-more-card h3{font-size:27px}.home-empty-more-card p{font-size:12px}.home-empty-note{padding:20px;display:block;line-height:1.7}.home-empty-note a{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.home-empty-loading span{animation:none}.home-empty-list{scroll-behavior:auto}}

/* One compact section gap: avoid stacking planner margin and section padding. */
.page-home .home-quote{margin-bottom:0}

@media (max-width: 760px) {
  .home-empty-legs {
    --offer-divider: #dce5eb;
    padding-top: 16px;
  }
  .home-empty-heading {
    padding-top: 16px;
    border-top: 1px solid var(--offer-divider);
  }
  .home-empty-list {
    --home-offer-gap: 20px;
    grid-auto-columns: calc(100% - 38px);
  }
  .home-empty-edge { width: 24px; }
  .home-empty-list .empty-leg-card .result-inclusions {
    column-gap: 0;
    padding-block: 9px;
    margin-bottom: 12px;
  }
  .home-empty-list .result-inclusions .amenity-item + .amenity-item {
    border-inline-start: 1px solid var(--offer-divider);
    border-radius: 0;
  }
  .home-empty-list .empty-leg-card .offer-price-panel {
    margin-bottom: 12px;
  }
}

.home-empty-list {
  --offer-divider: var(--line);
  --home-offer-gap: 16px;
  --next-offer-peek: clamp(52px, 5vw, 76px);
  grid-auto-columns: calc((100% - 3 * var(--home-offer-gap) - var(--next-offer-peek)) / 3);
}
.home-empty-carousel .home-empty-edge-right {
  width: clamp(26px, 7vw, 42px);
  right: 0;
  background: linear-gradient(to right, transparent, rgb(255 255 255 / 35%) 40%, rgb(255 255 255 / 92%));
}
.home-empty-list[data-dragging] {
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
  cursor: grabbing;
}
@media (pointer: fine) {
  .home-empty-list { scrollbar-width: thin; scrollbar-color: #9bb2c3 #edf2f5; }
  .home-empty-list::-webkit-scrollbar { display: block; height: 6px; }
  .home-empty-list::-webkit-scrollbar-track { background: #edf2f5; border-radius: 3px; }
  .home-empty-list::-webkit-scrollbar-thumb { background: #9bb2c3; border-radius: 3px; }
}
/* Two rows keep the deal badges above the photo action as text grows. */
.home-empty-list .empty-leg-card.result-card .empty-leg-photo {
  display: grid;
  grid-template: auto 1fr / minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  aspect-ratio: auto;
  max-height: none;
}
.home-empty-list .empty-leg-photo::before {
  content: "";
  grid-area: 1 / 1 / span 2;
  width: 100%;
  aspect-ratio: 2.6;
  min-height: 108px;
  max-height: 170px;
  pointer-events: none;
}
.home-empty-list .empty-leg-card .empty-leg-photo > .result-photo-trigger {
  position: static;
  grid-area: 2 / 1;
  display: grid;
  place-items: end start;
  height: auto;
  min-width: 0;
}
.home-empty-list .empty-leg-photo > .result-photo-trigger img { position: absolute; inset: 0; }
.home-empty-list .empty-leg-card .empty-leg-photo .result-photo-details {
  position: relative;
  inset: auto;
  margin: 2px 8px 8px;
}
.home-empty-list .empty-leg-card .empty-leg-photo > .empty-leg-offer-badges {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  place-self: start end;
  margin: 8px 8px 2px;
  max-width: calc(100% - 16px);
}
.home-empty-list .empty-leg-card .empty-leg-offer-badges > span > span { white-space: normal; }
.home-empty-list .empty-leg-card .empty-leg-body { padding: 12px clamp(13px, 4.5vw, 20px); }
.home-empty-list .empty-leg-card .empty-leg-body > h2 { margin: 0 0 7px; font-size: clamp(22px, 2.1vw, 26px); }
.home-empty-list .empty-leg-card .result-inclusions { padding-block: 8px; margin-bottom: 8px; }
.home-empty-list .empty-leg-card .result-inclusions .amenity-item { gap: 1px; }
.home-empty-list .empty-leg-card .result-inclusions .amenity-item svg { width: 19px; height: 19px; margin-bottom: 2px; }
.home-empty-list .empty-leg-card .result-sector-times > ol { margin-bottom: 8px; }
.home-empty-list .empty-leg-card .offer-price-panel { padding: 10px 13px; margin-bottom: 9px; }
.home-empty-list .empty-leg-card .result-price-note { padding-top: 5px; margin-top: 6px; }
.home-empty-list .empty-leg-card .empty-leg-body > .button { min-height: 48px; padding-block: 8px; }
@media (min-width: 761px) and (max-width: 1050px) {
  .home-empty-list { grid-auto-columns: calc((100% - 2 * var(--home-offer-gap) - var(--next-offer-peek)) / 2); }
}
@media (max-width: 760px) {
  .home-empty-list {
    --home-offer-gap: 12px;
    --next-offer-peek: clamp(34px, 11vw, 62px);
    grid-auto-columns: calc(100% - var(--home-offer-gap) - var(--next-offer-peek));
  }
}
@media (max-width: 345px) {
  .home-empty-list { --next-offer-peek: 30px; }
  .home-empty-list .empty-leg-photo::before { min-height: 125px; }
}
.home-empty-list .empty-leg-card .result-inclusions .amenity-item :is(strong, span) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
