.search-options{display:grid;grid-template-columns:1.2fr 1.3fr 1fr 1fr 1.3fr;gap:9px;align-items:stretch;margin-top:12px}
.search-options:has(#option-rating[hidden]){grid-template-columns:1.1fr 1.4fr 1.1fr 1.3fr}
.search-options:has(#option-rating[hidden]):has(#option-advanced[hidden]){grid-template-columns:1fr 1.3fr 1fr}
.search-options .option-trigger,.search-options .resort-trigger{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;max-width:none;margin:0;padding:10px 12px;border:1px solid #c7d1cc;background:#fffefa;border-radius:7px;color:#214653;font-size:12px;text-align:left}
.search-options [hidden]{display:none}
.option-trigger>span:first-child,.resort-trigger>span:first-of-type{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.option-trigger>svg,.resort-trigger>svg.chevron{height:13px;width:13px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.option-trigger:hover,.resort-trigger:hover{border-color:#6e9587;background:#f1f5ee}
.option-trigger.is-selected,.search-options .resort-trigger.is-selected{border-color:#819f8e;background:#edf4ec}
.search-options #option-category{padding-top:0;padding-bottom:0}
.category-stars{display:flex;gap:0;flex:none}
.category-stars button{display:flex;align-items:center;justify-content:center;width:27px;height:44px;padding:4px;border:0;border-radius:4px;background:transparent}
.category-stars button:hover{background:#e5ecdf}
.category-stars button:focus-visible{outline:2px solid #346e61;outline-offset:-2px}
.category-stars svg{width:19px;height:19px;fill:#e1e6dc;stroke:#b5c0b2;stroke-width:1}
.category-stars .lit svg{fill:#b2914e;stroke:#a68543}
.price-note{display:block;text-align:right;padding:6px 0 0;font-size:10px}
dialog.options-dialog{width:min(420px,calc(100vw - 24px))}
.options-dialog .picker-help{font-size:12px;margin-bottom:16px}
#options-content{max-height:48dvh;overflow-y:auto;scrollbar-width:thin}
#options-content fieldset{padding:0;border:0;margin:0 0 16px;min-width:0}
#options-content fieldset:last-child{margin-bottom:0}
#options-content legend{font-size:12px;color:#63796b;font-weight:600;margin-bottom:8px}
#options-content:has(fieldset:only-child) legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.option-choice{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 9px;border-bottom:1px solid #e9ede4;color:#2c4d50;font-size:13px;cursor:pointer}
.option-choice:hover,.option-choice:has(input:checked){background:#edf4ed;border-radius:5px}
.options-dialog .option-choice input{width:16px;height:16px;accent-color:#346e61;flex:none;margin:0}
.options-dialog .picker-footer{padding-bottom:0}
dialog.search-dialog.parameter-anchored{margin:0;left:var(--parameter-left);top:var(--parameter-top);max-height:var(--parameter-height);overflow-y:auto}
.parameter-anchored::backdrop{background:#122e4012;backdrop-filter:none}
.parameter-anchored .resort-list{max-height:min(320px,calc(var(--parameter-height) - 270px))}
.parameter-anchored #options-content{max-height:calc(var(--parameter-height) - 210px)}
@media(max-width:1000px){.category-stars button{width:24px}.category-stars svg{width:17px;height:17px}.search-options .option-trigger,.search-options .resort-trigger{padding:10px 9px;font-size:11px}}
@media(max-width:760px){
 .search-options,.search-options:has(#option-rating[hidden]),.search-options:has(#option-rating[hidden]):has(#option-advanced[hidden]){grid-template-columns:1fr 1fr;gap:8px}
 #option-category,#option-advanced{grid-column:1/-1}.category-stars button{width:36px}.category-stars svg{width:21px;height:21px}
 .price-note{text-align:left;white-space:normal}
}

/* Immediate choice popovers keep the accessible title without a visible header. */
dialog.options-dialog.compact-options{width:min(290px,calc(100vw - 24px));padding:8px}
.compact-options .picker-help,.compact-options .picker-footer,.compact-options [data-close]{display:none}
.compact-options #options-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.compact-options #options-content{max-height:min(420px,70dvh)}
.compact-options .option-choice{min-height:40px;padding:9px 12px;border:0}
dialog.options-dialog.advanced-options{width:min(880px,calc(100vw - 32px));padding:24px;overflow:hidden}
.advanced-options .picker-heading{margin-bottom:8px}
.advanced-options .picker-help{margin-bottom:16px}
.advanced-options #options-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:18px 24px;max-height:calc(100dvh - 220px);padding:2px 4px;overflow-y:auto}
.advanced-options #options-content fieldset{margin:0}
.advanced-options #options-content legend{margin-bottom:6px}
.advanced-options .option-choice{font-size:13px;line-height:1.35;min-height:30px;padding:5px 4px;gap:9px;border:0}
.advanced-options .picker-footer{margin-top:16px;padding-top:12px}
@media(max-width:760px){
 dialog.options-dialog.advanced-options{padding:20px 16px}
 .advanced-options #options-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .advanced-options .option-choice{min-height:40px}
}
@media(max-width:480px){.advanced-options #options-content{grid-template-columns:1fr;gap:14px}}

.compact-options .picker-heading{margin:0;height:0}
.options-dialog .option-choice input[type=radio]{appearance:none;padding:0;border:1px solid #9aafa5;border-radius:50%;background:transparent;box-shadow:none}
.options-dialog .option-choice input[type=radio]:checked{border:5px solid #346e61;background:#fffefa}
.options-dialog .option-choice input[type=radio]:focus{outline:none}
.options-dialog .option-choice input[type=radio]:focus-visible{box-shadow:0 0 0 3px #fffefa,0 0 0 5px #346e61}

.search-options:has(#resort-trigger[hidden]){grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
@media(max-width:760px){.search-options:has(#resort-trigger[hidden]){grid-template-columns:1fr 1fr}}

.filter-unavailable{font-size:14px;line-height:1.65;color:#52675f;padding:4px 0 12px}.advanced-options #options-content:has(.filter-unavailable){display:block}
