/* stays feature styles: booking requests, calendars and reviews. Loaded after styles.css. */
:root{--stays-busy:#e9eef0;--stays-busy-ink:#9aa8ad;--stays-booked:#127c73;--stays-blocked:#5f737b;--stays-imported:#2e6da4;--stays-star:#e8a33d}

/* Price summary -------------------------------------------------------------------------- */
.stays-quote{border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin:4px 0 14px;background:#fbfdfc}
.stays-quote-empty{display:flex;gap:7px;align-items:center;margin:0;color:var(--muted);font-size:12px}
.stays-quote-problem,.stays-warn{display:flex;gap:7px;align-items:flex-start;margin:0 0 10px;padding:8px 10px;border-radius:9px;background:#fff7e6;color:#7a5418;font-size:12px;font-weight:700;line-height:1.45}
.stays-quote-problem .icon,.stays-warn .icon{flex:none;margin-top:1px}
.stays-quote-rows{display:grid;gap:7px;font-size:13px}
.stays-quote-rows>div{display:flex;justify-content:space-between;gap:12px}
.stays-quote-rows s{color:var(--muted);font-weight:500;margin-right:3px}
.stays-quote-rows .total{border-top:1px solid var(--line);padding-top:8px;margin-top:2px;font-size:14px;font-weight:800}
.stays-quote-rows .muted{font-size:12px}
.stays-quote-note{margin:9px 0 0;font-size:11px;line-height:1.45;color:#7b8e95}
.stays-tiers{display:flex;gap:6px;align-items:center;margin:-2px 0 12px;font-size:12px;color:var(--teal);font-weight:700}

/* Booking cards in the chat, trips and dashboard ------------------------------------------- */
.stays-card{border:1px solid #cfe5dd;border-radius:13px;padding:11px 13px;background:#fff}
.stays-card.is-requested{border-color:#c9dcef;background:#f7fbff}
.stays-card.is-accepted{background:#f6fbf9}
.stays-card-head{display:flex;gap:10px;align-items:flex-start}
.stays-card-icon{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--mint);color:var(--teal)}
.stays-card.is-requested .stays-card-icon{background:#e8f1fa;color:var(--blue)}
.stays-card-main{min-width:0;flex:1}
.stays-card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stays-card-title h3{margin:0;font-size:19px}
.stays-card .small{color:#4f646c;margin-top:2px}
.stays-note{margin:8px 0 0;font-size:12.5px;color:#46606a;font-style:italic;overflow-wrap:anywhere}
.stays-card>.small.muted,.stays-card>p.small{margin:6px 0 0}
.stays-card .stays-warn{margin:8px 0 0}
.stays-actions{margin-top:10px}
.stays-cancel-btn{color:#a63b42}
.stays-access{margin-top:10px;border-radius:11px;background:#fff;border:1px dashed #b7dccf;padding:10px 12px;display:grid;gap:6px;font-size:12.5px}
.stays-access-title{display:flex;gap:6px;align-items:center;font-weight:800;color:var(--teal)}
.stays-access>div:not(.stays-access-title){display:grid;grid-template-columns:92px 1fr;gap:8px}
.stays-access b{color:#5d7179;font-weight:700}
.stays-access p{margin:0}
.stays-event .icon{color:var(--teal)}

/* Listing page: request card and availability calendar ----------------------------------- */
.detail-sidebar:has(.stays-book-card){display:flex;flex-direction:column;gap:16px}
.detail-sidebar:has(.stays-book-card) .request-card{position:static}
.stays-book-card{order:-1;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 12px 30px #23443712;background:#fff}
.stays-book-card .stays-card-title{margin-bottom:10px}
.stays-book-card .stays-warn{margin:0 0 12px}
.stays-book-card.is-confirmed{border-color:#bfe2d6;background:#f7fcfa}
.stays-book-card.is-confirmed p.small{margin:0 0 4px;color:#4f646c;font-weight:700}
.stays-price{font-weight:800;font-size:17px;color:var(--deep)}
.stays-price small{font-weight:600;color:var(--muted);font-size:12px}
.stays-cal-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.stays-cal-nav .btn{width:38px;padding:0;justify-content:center}
.stays-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.stays-month-name{font-weight:800;font-family:var(--display);text-align:center;margin-bottom:8px}
.stays-weekdays,.stays-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.stays-weekdays span{text-align:center;font-size:11px;font-weight:800;color:#93a3a8;padding-bottom:4px}
.stays-day{aspect-ratio:1;min-height:32px;max-height:42px;width:100%;border:0;border-radius:9px;display:grid;place-items:center;font-size:12.5px;font-weight:700;background:#fff;color:var(--ink);padding:0}
button.stays-day{cursor:pointer}
button.stays-day:hover{box-shadow:inset 0 0 0 2px #8fd2c4}
.stays-day.is-blank{background:transparent}
.stays-day.is-free{background:#f2faf7}
.stays-day.is-busy{background:var(--stays-busy);color:var(--stays-busy-ink);text-decoration:line-through}
.stays-day.is-past{background:transparent;color:#c3cdd0;text-decoration:none}
.stays-day.is-chosen{background:#cdeee3;color:#0e5b54}
.stays-day.is-edge{background:var(--teal);color:#fff;text-decoration:none}
.stays-day.is-booked{background:var(--stays-booked);color:#fff}
.stays-day.is-blocked{background:var(--stays-blocked);color:#fff}
.stays-day.is-imported{background:var(--stays-imported);color:#fff}
.stays-day.is-booked.is-past,.stays-day.is-blocked.is-past,.stays-day.is-imported.is-past{opacity:.45}
.stays-day.is-chosen.is-free,.stays-day.is-chosen.is-blocked,.stays-day.is-chosen.is-imported{box-shadow:inset 0 0 0 2px var(--teal)}
.stays-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px;font-size:12px;color:#5d7179;align-items:center}
.stays-legend span{display:inline-flex;gap:6px;align-items:center}
.stays-legend i{width:14px;height:14px;border-radius:4px;display:inline-block}
.stays-legend i.is-free{background:#f2faf7;border:1px solid #cfe5dd}
.stays-legend i.is-busy{background:var(--stays-busy)}
.stays-legend i.is-booked{background:var(--stays-booked)}
.stays-legend i.is-blocked{background:var(--stays-blocked)}
.stays-legend i.is-imported{background:var(--stays-imported)}

/* Reviews -------------------------------------------------------------------------------------- */
.stays-stars-view{display:inline-flex;gap:1px;color:#d5dde0;font-size:14px;line-height:1;white-space:nowrap}
.stays-stars-view .on{color:var(--stays-star)}
.stays-reviews h3{display:flex;gap:7px;align-items:center}
.stays-reviews h3 .icon{color:var(--stays-star);fill:var(--stays-star)}
.stays-review-summary{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:center;padding:16px;border-radius:14px;background:#f8fbfa;border:1px solid #edf2f1;margin-bottom:18px}
.stays-score{display:grid;justify-items:start;gap:4px}
.stays-score strong{font-size:34px;font-family:var(--display);line-height:1}
.stays-subratings{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 22px}
.stays-subrating{display:grid;grid-template-columns:100px 1fr 30px;gap:8px;align-items:center;font-size:12px}
.stays-subrating b{text-align:right}
.stays-bar{height:5px;border-radius:5px;background:#e3eaec;overflow:hidden}
.stays-bar i{display:block;height:100%;background:var(--deep);border-radius:5px}
.stays-review-list{display:grid;gap:18px;margin-bottom:16px}
.stays-review{border-bottom:1px solid #edf1f1;padding-bottom:16px}
.stays-review:last-child{border-bottom:0}
.stays-review p{margin:9px 0 0;font-size:13.5px}
.stays-review-head{display:flex;gap:11px;align-items:center}
.stays-review-who{flex:1;min-width:0;display:grid}
.stays-avatar{flex:none;width:38px;height:38px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#dfeee9;color:var(--teal);font-weight:800}
.stays-response{margin:12px 0 0 18px;padding:10px 13px;border-left:3px solid #cfe5dd;background:#fbfdfc;border-radius:0 10px 10px 0;font-size:13px}
.stays-response p{margin:5px 0 0}
.stays-review-actions{display:flex;gap:12px;align-items:center;margin-top:10px}
.stays-rate{border:0;padding:0;margin:0 0 14px;min-width:0}
.stays-rate legend{font-weight:800;font-size:13px;margin-bottom:4px;padding:0}
.stays-stars-input{display:inline-flex;flex-direction:row-reverse;gap:2px}
.stays-stars-input input{position:absolute;opacity:0;width:1px;height:1px}
.stays-stars-input label{font-size:30px;line-height:1;color:#d5dde0;cursor:pointer;padding:0 1px;border-radius:6px}
.stays-stars-input input:checked~label,.stays-stars-input label:hover,.stays-stars-input label:hover~label{color:var(--stays-star)}
.stays-stars-input input:focus-visible+label{outline:3px solid #8fd2c4;outline-offset:1px}
.stays-subrate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:12px 14px 0;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
.stays-subrate .stays-rate{margin-bottom:10px}
.stays-subrate .stays-stars-input label{font-size:22px}
.stays-modal{max-width:520px}

/* Trips and dashboard ---------------------------------------------------------------------------- */
.stays-page{max-width:1000px}
.stays-section{margin-bottom:28px}
.stays-section h2{font-size:21px;margin-bottom:12px}
.stays-trip-list{display:grid;gap:14px}
.stays-trip{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff}
.stays-trip-photo{border:0;padding:0;background:none;border-radius:11px;overflow:hidden;align-self:start}
.stays-trip-photo img{width:150px;height:112px;object-fit:cover}
.stays-trip-body{min-width:0}
.stays-trip-body>.small.muted{margin-top:3px}
.stays-dates{margin-top:7px;font-size:13px;font-weight:700;color:#38525c}
.stays-trip.is-closed{opacity:.8}
.stays-trip.is-current{border-color:#a9d9c9;box-shadow:0 8px 24px #127c7314}
.stays-prompts{display:grid;gap:10px;margin-bottom:22px}
.stays-prompt{display:flex;gap:12px;align-items:center;border:1px solid #f1dfbd;background:#fffaf0;border-radius:14px;padding:13px 15px}
.stays-prompt>.icon{color:var(--stays-star);flex:none}
.stays-prompt>div{flex:1;min-width:0;display:grid;gap:2px}
.stays-closed{margin:6px 0 24px}
.stays-closed summary{cursor:pointer;font-weight:800;color:#5d7179;margin-bottom:12px}
.stays-host-panel{margin-top:19px}
.stays-host-panel .panel-title h3{display:flex;gap:8px;align-items:center}
.stays-host-panel .stays-prompts{margin:0;padding:14px 25px 18px}
.stays-host-row{padding:15px 25px;border-bottom:1px solid #eef3f2}
.stays-host-row:last-child{border-bottom:0}
.stays-host-who{display:flex;gap:11px;align-items:center}
.stays-host-who>div{flex:1;min-width:0}
.stays-host-row .stays-note{margin-left:49px}
.stays-host-row .stays-actions,.stays-host-row>p{margin-left:49px}
.stays-panel-empty{margin:0;padding:18px 25px;color:var(--muted);font-size:13px}

/* Host calendar screen ---------------------------------------------------------------------------- */
.stays-cal-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:19px;align-items:start}
.stays-cal-layout .form-panel h3{font-size:18px}
.stays-block-row{gap:10px}
.stays-block-row:last-child{border-bottom:0}
.stays-feed{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.stays-feed-main{min-width:0;flex:1;display:grid;gap:3px}
.stays-feed-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:6px}
.stays-feed-form .form-group{margin-bottom:0}
.stays-grow{flex:1;min-width:220px}
.stays-help{margin-top:14px;font-size:13px}
.stays-help summary{cursor:pointer;font-weight:800;color:var(--teal)}
.stays-help ul,.stays-steps{margin:10px 0;padding-left:20px;display:grid;gap:6px;font-size:13px}
.stays-export{display:flex;gap:10px}
.stays-export .field{flex:1;min-width:0;font-size:12px}

@media(max-width:900px){.stays-cal-layout{grid-template-columns:1fr}}
@media(max-width:650px){
 .stays-months{grid-template-columns:1fr;gap:18px}
 .stays-day{min-height:38px;font-size:13px}
 .stays-review-summary{grid-template-columns:1fr;gap:12px}
 .stays-subrating{grid-template-columns:96px 1fr 28px}
 .stays-subrate{grid-template-columns:1fr}
 .stays-trip{grid-template-columns:84px minmax(0,1fr);gap:11px;padding:11px}
 .stays-trip-photo img{width:84px;height:84px}
 .stays-trip .stays-actions .btn{flex:1 1 auto}
 .stays-prompt{flex-wrap:wrap}
 .stays-prompt .btn{width:100%}
 .stays-host-row{padding:13px 16px}
 .stays-host-who{flex-wrap:wrap}
 .stays-host-row .stays-note,.stays-host-row .stays-actions,.stays-host-row>p{margin-left:0}
 .stays-host-panel .stays-prompts{padding:12px 16px}
 .stays-panel-empty{padding:16px}
 .stays-feed{flex-direction:column;align-items:stretch}
 .stays-export{flex-direction:column}
 .stays-access>div:not(.stays-access-title){grid-template-columns:1fr;gap:1px}
 .stays-book-card{padding:18px}
 .stays-response{margin-left:6px}
}
