/* Five photo-led cards per row on wide screens; native horizontal scroll below. */
.home-hostels{max-width:1480px;padding-top:48px;padding-bottom:52px}
.home-hostels .featured-heading{gap:28px;align-items:center}
.home-hostels .featured-heading h2{font-size:clamp(26px,2.7vw,36px);line-height:1.2;letter-spacing:-1px}
.home-hostels .featured-heading p:not(.eyebrow){max-width:620px;margin-top:12px}
.hostel-shelves{display:grid;gap:34px;min-width:0;margin-top:32px}
.hostel-shelf{min-width:0}
.hostel-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px;padding:0 4px}
.hostel-shelf-heading h3{font-size:22px;font-weight:600;letter-spacing:-.6px;line-height:1.3}
.hostel-shelf-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}
.hostel-shelf-actions>a{font-size:12px;font-weight:600;min-height:40px;display:flex;align-items:center;gap:7px}
.hostel-shelf-actions>a:hover{text-decoration:underline;text-underline-offset:4px}
.hostel-shelf-controls{display:flex;gap:8px}
.hostel-shelf-controls button{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink)}
.hostel-shelf-controls button:hover:enabled{background:var(--cream)}
.hostel-shelf-controls button:disabled{opacity:.35}
.hostel-shelf-controls [data-shelf-direction="-1"] svg{transform:rotate(90deg)}
.hostel-shelf-controls [data-shelf-direction="1"] svg{transform:rotate(-90deg)}
.hostel-shelf-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 80px)/5);gap:20px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 4px 12px;scroll-padding-inline:4px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.home-hostel-card{min-width:0;scroll-snap-align:start;align-self:start}
.home-hostel-visual{position:relative;aspect-ratio:1;min-width:0}
.home-hostel-photo{display:block;position:relative;overflow:hidden;aspect-ratio:1;width:100%;padding:0;border:0;border-radius:17px;background:var(--cream);cursor:pointer}
.home-hostel-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 440ms cubic-bezier(.22,1,.36,1)}
@media(hover:hover){.home-hostel-photo:hover img{transform:scale(1.015)}}
.home-hostel-photo-label{position:absolute;bottom:11px;left:11px;max-width:calc(100% - 22px);padding:5px 8px;border-radius:6px;background:#fff9f1ec;color:#39332c;font-size:9px;line-height:1.4;pointer-events:none}
.home-hostel-save{position:absolute;top:11px;right:11px;display:grid;place-items:center;width:40px;height:40px;padding:9px;border:0;border-radius:50%;background:#fff9f1ef;color:#242424;box-shadow:0 2px 8px #0002}
.home-hostel-save .icon{width:21px;height:21px}
.home-hostel-save:hover{background:#fff}
.home-hostel-save.saved{background:#fff0df;color:#a84600}
.home-hostel-save.saved .icon{fill:#ff7a00}
.home-hostel-copy{padding:12px 3px 0}
.home-hostel-copy h4{margin:0;font-size:15px;font-weight:600;line-height:1.45;letter-spacing:-.2px}
.home-hostel-copy h4 button{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;width:100%;min-height:44px;text-align:left;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;letter-spacing:inherit}
.home-hostel-copy h4 button:hover{text-decoration:underline;text-underline-offset:3px}
.home-hostel-location{font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.home-hostel-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px;font-size:11px;line-height:1.6;margin-top:8px;color:var(--muted)}
.home-hostel-price strong{font-size:14px;font-weight:600;color:var(--ink)}
.home-hostel-price-note{font-size:10px;color:var(--muted);line-height:1.5;margin-top:3px}
.home-hostel-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.home-hostel-compare{display:flex;align-items:center;gap:6px;min-height:36px;font-size:11px;color:var(--muted);cursor:pointer}
.home-hostel-compare input{margin:0}
.home-hostel-detail{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 0;border:0;background:transparent;color:var(--orange-dark);font-size:11px;font-weight:600}
.home-hostel-detail .icon{width:14px;height:14px}
.home-hostel-detail:hover{text-decoration:underline;text-underline-offset:4px}
.hostel-shelf-rail:focus-visible,.home-hostel-photo:focus-visible,.home-hostel-save:focus-visible,.home-hostel-copy button:focus-visible,.hostel-shelf-actions :is(a,button):focus-visible{outline:2px solid var(--orange-dark);outline-offset:2px}
.home-hostels .featured-note{max-width:960px;margin-top:20px;font-size:11px;line-height:1.7}
@media(max-width:1180px){
 .hostel-shelf-rail{grid-auto-columns:calc((100% - 36px)/3);gap:18px}
 .home-hostels .featured-heading{align-items:flex-start}
}
@media(max-width:760px){
 .home-hostels .featured-heading{gap:18px}
 .hostel-shelf-rail{grid-auto-columns:calc((100% - 18px)/2)}
 .hostel-shelf-heading h3{font-size:21px}
 .home-hostel-copy h4{font-size:15px}
}
@media(max-width:600px){
 .home-hostels{padding-top:34px;padding-bottom:36px}
 .home-hostels .featured-heading h2{font-size:28px}
 .hostel-shelves{gap:28px;margin-top:28px}
 .hostel-shelf-heading{gap:12px;margin-bottom:12px}
 .hostel-shelf-heading h3{font-size:19px}
 .hostel-shelf-actions{gap:12px}
 .hostel-shelf-actions>a{font-size:11px}
 .hostel-shelf-controls{gap:5px}
 .hostel-shelf-controls button{width:32px;height:36px;padding:7px}
 .hostel-shelf-rail{grid-auto-columns:min(62vw,230px);gap:16px}
 .home-hostel-visual,.home-hostel-photo{aspect-ratio:4/3}
 .home-hostel-photo{border-radius:12px}
 .home-hostel-save{top:8px;right:8px;width:34px;height:34px;padding:7px}
 .home-hostel-photo-label{bottom:8px;left:8px;max-width:calc(100% - 16px);font-size:9px;padding:4px 6px}
 .home-hostel-copy{padding-top:8px}
 .home-hostel-copy h4{font-size:14px;line-height:1.35}
 .home-hostel-copy h4 button{min-height:38px}
 .home-hostel-location{font-size:11px;margin-top:3px}
 .home-hostel-price{margin-top:5px}
 .home-hostel-price strong{font-size:14px}
 .home-hostel-price-note{font-size:10px}
 .home-hostel-actions{gap:8px}
 .home-hostel-compare{min-height:34px;font-size:10px}
 .home-hostel-detail{min-height:34px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.home-hostel-photo img{transition:none;transform:none!important}.hostel-shelf-rail{scroll-behavior:auto}}

.home-hostel-photo{display:block}.home-hostel-copy h4 a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-hostel-copy h4 a:hover{text-decoration:underline}.home-hostel-detail{display:inline-flex;align-items:center;gap:5px}.card h3 a:hover{text-decoration:underline}
