/* Shared search controls: primary criteria stay visible, secondary criteria collapse. */
body .rq-search-form:not(.rq-search-header) .rq-search-fields,
body.home .rq-search-form.rq-search-hero .rq-search-fields {
  display:flex !important; flex-wrap:wrap !important; align-items:flex-end !important; gap:16px !important;
}
body .rq-search-form:not(.rq-search-header) .rq-search-fields > *,
body.home .rq-search-form.rq-search-hero .rq-search-fields > * {
  flex:1 1 180px !important; width:auto !important; max-width:none !important; min-width:0 !important; margin:0 !important;
}
body .rq-search-form .rq-search-fields > input[type="hidden"] { display:none !important; }
body .rq-search-form:not(.rq-search-header) .rq-search-fields > button { flex:0 1 210px !important; min-height:52px !important; }
body .rq-search-form:not(.rq-search-header) input:not([type="hidden"]),
body .rq-search-form:not(.rq-search-header) select { border-radius:5px !important; min-height:52px; }
body .rq-stay-field, body .rq-traveler-field { position:relative; overflow:visible; padding:0 !important; border:0 !important; background:transparent !important; }
body .rq-stay-field > summary, body .rq-traveler-field > summary,
body.home .rq-hero-tab-panel .rq-traveler-field > summary {
  display:block !important; list-style:none; cursor:pointer; border:0 !important; padding:0 !important; background:transparent !important; text-align:left !important;
}
.rq-stay-field > summary::-webkit-details-marker,.rq-traveler-field > summary::-webkit-details-marker {display:none;}
body .rq-stay-field > summary > span, body .rq-traveler-field > summary > span,
body.home .rq-hero-tab-panel .rq-traveler-field > summary > span {display:block; color:#315158; font-size:14px; font-weight:600; margin:0 0 6px;}
body .rq-stay-field summary i, body .rq-traveler-field summary i {color:var(--rq-primary,#087c89);}
body .rq-stay-field > summary > strong,body .rq-traveler-field > summary > strong,
body.home .rq-hero-tab-panel .rq-traveler-field > summary > strong {
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:12px 16px !important;
  background:#f8fafb; border:1px solid #c4dce0 !important; border-radius:5px !important; color:#173f47; font-size:16px; font-weight:400; box-sizing:border-box;
}
.rq-stay-field summary strong::after,.rq-traveler-field summary strong::after {content:'⌄';}
body .rq-stay-popover,body .rq-traveler-popover,body.home .rq-traveler-popover {
  position:absolute; top:calc(100% + 8px); left:0; right:auto; z-index:120; width:320px; max-width:calc(100vw - 48px); box-sizing:border-box;
  padding:18px; border:1px solid #c4dce0; border-radius:8px; background:#fff; box-shadow:0 12px 32px #173f4726; color:#173f47;
}
.rq-stay-popover label {display:block; margin-bottom:12px;}
.rq-stay-popover label span {display:block; margin-bottom:6px;}
.rq-stay-popover input,.rq-stay-popover select {width:100%;}
body .rq-traveler-popover .rq-quantity-field,body.home .rq-traveler-popover .rq-quantity-field {display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px;}
body .rq-traveler-popover .rq-stepper {display:flex; flex:0 0 128px; align-items:center;}
body .rq-traveler-popover .rq-stepper input {width:42px !important; min-width:0; padding:4px !important; text-align:center;}
.rq-advanced-filters {margin-top:16px; color:#173f47;}
.rq-advanced-filters > summary {cursor:pointer; font-weight:600; padding:10px 0;}
.rq-advanced-fields {display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px; padding:16px 0;}
.rq-advanced-fields > * {flex:1 1 180px; min-width:0;}
.rq-advanced-fields label > span {display:block; margin-bottom:6px;}
.rq-advanced-fields select {width:100%;}
body .rq-contextual-filters {margin-bottom:24px;}
body .rq-search-compact {overflow:visible;}
.rq-discovery-tabs {display:flex; flex-wrap:wrap; gap:10px; margin:24px var(--rq-layout-gutter);}
.rq-discovery-tabs a {padding:12px 18px; border:1px solid #c4dce0; border-radius:5px; color:#087c89; background:#fff; text-decoration:none; font-weight:600;}
.rq-discovery-tabs a.is-active {background:#087c89; color:#fff;}
.rq-region-events {margin-inline:var(--rq-layout-gutter);}
.rq-region-events .rq-discovery-tabs {margin-inline:0;}
.rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid {display:flex !important; flex-wrap:wrap; gap:16px; align-items:flex-end;}
.rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid > * {flex:1 1 180px; min-width:0;}
.rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid > .field-group {display:flex; flex-direction:column; align-items:stretch; gap:6px;}
.rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid > .field-group label {font-size:14px; font-weight:600; color:#315158; margin:0;}
.rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid > .field-group label i {color:#087c89;}
.rq-commerce-webview #form-sejour[data-rq-experience] .input-sejour,
.rq-commerce-webview #form-sejour[data-rq-experience] .btn-sejour {width:100% !important; max-width:none !important; min-height:52px !important; border-radius:5px !important; box-sizing:border-box; margin:0 !important;}
.rq-native-travelers .rq-traveler-popover .field-group {display:flex; flex-direction:row; align-items:center; justify-content:space-between; margin:0 0 14px;}
.rq-native-travelers .qty-input {display:flex; align-items:center;}
.rq-native-travelers .qty-input input {width:44px; min-width:0;}
@media(max-width:600px){
 body .rq-search-form:not(.rq-search-header) .rq-search-fields > *,body.home .rq-search-form.rq-search-hero .rq-search-fields > * {flex-basis:100% !important;}
 body .rq-search-form:not(.rq-search-header) .rq-search-fields > button {flex-basis:100% !important;}
 body .rq-stay-popover,body .rq-traveler-popover,body.home .rq-traveler-popover {position:static; width:100%; max-width:none; margin-top:8px;}
 .rq-commerce-webview #form-sejour[data-rq-experience] .sejour-grid > * {flex-basis:100%;}
}
