/* v18 — stay-first search and booking, scoped to the D4Y controls. */
.d4y-price-replaced{display:none!important}
.d4y-live-price{display:flex;flex-direction:column;gap:5px;margin:0 0 18px;color:#171536}
.d4y-live-price strong{font-size:27px;line-height:1.2;overflow-wrap:anywhere}
.d4y-live-price small{font-size:12px;line-height:1.5;color:#626579}
.d4y-empty-search{padding:24px 12px;max-width:650px;margin:0 auto;text-align:center}
.d4y-empty-search h3{font-size:20px}
.d4y-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
.d4y-edit-search{font:inherit;background:#fff;border:1px solid #d8dae1;border-radius:10px;padding:12px 16px;min-height:44px;cursor:pointer;color:#171536}
.d4y-policy-links{font-size:12px;line-height:1.7;text-align:center;margin:14px 0 0}
.d4y-policy-links a{text-decoration:underline;text-underline-offset:2px}
footer .d4y-policy-links{padding:14px}
.d4y-draft-hint{font-size:12px;color:#64551d;margin:6px 0 0}
#rz-explore .d4y-applied-stay{font-weight:400;font-size:12px;line-height:1.4;min-width:0;flex:1}
#rz-explore .d4y-search-with-stay .d4y-filter-bar-label{flex:0 0 auto}
#rz-explore .d4y-search-with-stay>.rz-search-bar{display:flex!important;align-items:center;min-height:52px;height:auto!important}
#rz-explore .d4y-search-with-stay>.rz-search-bar .d4y-filter-bar-button{min-height:52px;gap:12px}
@media(min-width:768px){
 body:not(.rz--expand-search-filters) #rz-explore .d4y-search-with-stay>.rz--content{display:none!important}
 body.rz--expand-search-filters #rz-explore .d4y-search-with-stay>.rz--content{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
 #rz-explore .d4y-search-with-stay>.rz-search-bar{position:relative!important;inset:auto!important;width:100%;margin:0 0 12px;border:1px solid #e5e6eb;border-radius:14px}
}
@media(max-width:767px){
 #rz-explore .d4y-search-with-stay .d4y-filter-bar-button{padding:10px 16px;flex-wrap:wrap;column-gap:10px;row-gap:2px}
 #rz-explore .d4y-search-with-stay .d4y-applied-stay{order:3;flex-basis:100%;white-space:normal}
 #rz-explore .d4y-search-with-stay .d4y-filter-bar-icon{margin-left:auto}
 .d4y-empty-actions>*{width:100%;box-sizing:border-box}
 .d4y-live-price strong{font-size:24px}
}
.rz-calendar .rz-days li[role=button]:focus-visible{outline:3px solid #9b7410;outline-offset:-3px;border-radius:6px}
.d4y-edit-search:focus-visible{outline:2px solid #9b7410;outline-offset:2px}
.d4y-prestige-available .rz--verified{color:#aa8017}
/* v20 — legal documents stay above the intact booking form. */
dialog.d4y-legal-dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:760px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #e5e6eb;border-radius:16px;background:#fff;color:#171536;box-shadow:0 16px 70px #0004;overflow:hidden}
dialog.d4y-legal-dialog[open]{display:flex;flex-direction:column}
dialog.d4y-legal-dialog::backdrop{background:rgba(15,18,30,.6)}
.d4y-legal-dialog .d4y-legal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;padding:14px 18px;border-bottom:1px solid #e5e6eb}
.d4y-legal-dialog .d4y-legal-header h2{margin:0;font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.d4y-legal-dialog button{font:inherit;cursor:pointer;min-height:44px;border:0;box-shadow:none}
.d4y-legal-dialog .d4y-legal-close{flex:0 0 44px;width:44px;padding:0;border-radius:10px;background:#f4f4f6;color:#171536;font-size:26px;line-height:1}
.d4y-legal-dialog .d4y-legal-content{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.d4y-legal-content h1,.d4y-legal-content h2,.d4y-legal-content h3{font-size:18px;line-height:1.4;margin:18px 0 10px}
.d4y-legal-content p{margin:0 0 14px}.d4y-legal-content ul,.d4y-legal-content ol{padding-left:22px}
.d4y-legal-content table{width:100%;table-layout:fixed;border-collapse:collapse}.d4y-legal-content td,.d4y-legal-content th{padding:6px;border:1px solid #e5e6eb;overflow-wrap:anywhere}
.d4y-legal-dialog .d4y-legal-footer{flex:0 0 auto;padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e5e6eb}
.d4y-legal-dialog .d4y-legal-return,.d4y-legal-dialog .d4y-legal-retry{box-sizing:border-box;padding:12px 16px;border-radius:10px;background:#d4af37;color:#171536;font-weight:700;line-height:1.4;white-space:normal}
.d4y-legal-dialog .d4y-legal-return{width:100%}.d4y-legal-dialog .d4y-legal-external{display:block;margin-top:16px;text-decoration:underline}
.d4y-legal-dialog :focus-visible{outline:2px solid #9b7410;outline-offset:2px}
.d4y-legal-loading::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid #ddd;border-top-color:#9b7410;border-radius:50%;vertical-align:middle;animation:d4y-legal-spin .8s linear infinite}
@keyframes d4y-legal-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.d4y-legal-loading::before{animation:none}}
