.vo-filter-buttons, .vo-filter-toggle, #vo-filter-dialog:not([open]) { display: none; }
@media (max-width: 979px) {
  .vo-filter-page #mobile-header #menu-button,
  .vo-filter-page #sidebar,
  .vo-filter-page #mobile-header #search-button { display: none !important; }
  .vo-filter-page #mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 4px; box-sizing: border-box; }
  .vo-filter-page #mobile-header .logo { position: static; margin: 0; flex-shrink: 0; }
  .vo-filter-page #mobile-header #back-button { position: static; flex-shrink: 0; }
  .vo-filter-page #mobile-header .search, .vo-filter-page #mobile-header .clear { display: none; }
  .vo-filter-page .vo-filter-buttons { display: flex; align-items: center; gap: 4px; }
  .vo-filter-page .vo-filter-search { border: 0; padding: 7px; color: #263329; background: transparent; min-height: 42px; }
  .vo-filter-search svg { width: 20px; height: 20px; }
  .vo-filter-page .vo-filter-toggle { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border: 1px solid #a4a9a3; border-radius: 7px; padding: 0 10px; min-height: 42px; background: white; color: #263329; font: 600 15px/1.2 Arial,sans-serif; }
  .vo-filter-toggle svg { width: 17px; height: 17px; }
  .vo-filter-toggle span:not(:empty) { border-radius: 20px; background: #2f6636; color: white; padding: 2px 5px; font-size: 12px; }
  .vo-filter-page:has(#vo-filter-dialog[open]) { overflow: hidden; }
  #vo-filter-dialog { box-sizing: border-box; padding: 0; border: 0; border-radius: 16px 16px 0 0; margin: auto auto 0; position: fixed; inset: 0; width: min(100%, 520px); max-width: 100%; height: min(90vh, 760px); height: min(90dvh, 760px); max-height: 100%; background: white; color: #222; font: 16px/1.4 Arial,sans-serif; overflow: hidden; }
  #vo-filter-dialog::backdrop { background: rgba(20,30,25,.5); }
  #vo-filter-dialog form { display: flex; flex-direction: column; height: 100%; }
  #vo-filter-dialog .vo-filter-head, #vo-filter-dialog .vo-filter-actions { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; padding: 10px 16px; gap: 8px; }
  #vo-filter-dialog .vo-filter-head { border-bottom: 1px solid #dededb; }
  #vo-filter-dialog h2 { display: block; font: bold 21px/1.2 Arial,sans-serif; margin: 0; color: #222; }
  #vo-filter-dialog .vo-filter-fields { padding: 0 16px 12px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
  #vo-filter-dialog fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
  #vo-filter-dialog legend { font-weight: bold; margin-bottom: 5px; padding: 0; }
  #vo-filter-dialog input:not([type=checkbox]), #vo-filter-dialog select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b3b9b4; border-radius: 6px; background: white; color: #222; padding: 7px 9px; font: inherit; }
  #vo-filter-dialog label { display: block; }
  #vo-filter-dialog .vo-choices { display: flex; flex-wrap: wrap; gap: 6px; }
  #vo-filter-dialog .vo-choices label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c1c7c0; border-radius: 6px; padding: 4px 9px; min-height: 32px; }
  #vo-filter-dialog .vo-choices label:has(:checked) { background: #edf6ed; border-color: #34773d; }
  #vo-filter-dialog input[type=checkbox] { position: static; visibility: visible; appearance: auto; display: inline-block; opacity: 1; width: 16px; height: 16px; margin: 0; accent-color: #34773d; }
  #vo-filter-dialog button { font: inherit; color: #284b32; border: 0; border-radius: 6px; background: #f1f3ef; padding: 8px 12px; min-height: 42px; cursor: pointer; }
  #vo-filter-dialog .vo-filter-actions { border-top: 1px solid #dededb; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #vo-filter-dialog button[type=submit] { background: #337239; color: white; font-weight: bold; }
  #vo-filter-dialog .vo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #vo-filter-dialog input[type=range] { padding: 0; accent-color: #337239; border: 0; }
  #vo-filter-dialog .vo-pair label { min-width: 0; }
  #vo-filter-dialog .vo-suggestions button { display: block; text-align: left; width: 100%; margin-top: 3px; }
  #vo-filter-dialog .vo-sections { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  #vo-filter-dialog .vo-sections a { padding: 6px 0; }
  #vo-filter-dialog [hidden] { display: none !important; }
}
@media (max-width: 389px) {
  .vo-filter-page #mobile-header .logo { width: 145px; height: 30px; background-size: 242px auto; background-position: -11px -7px; }
}
@media (max-width: 360px) {
  .vo-filter-page #mobile-header { padding-inline: 6px; }
  .vo-filter-page #mobile-header .logo { width: 118px; height: 26px; background-size: 197px auto; background-position: -9px -6px; }
}

/* The tablet keeps the desktop cards, newsletter and ad layout. Only its
   fixed-width containers, header and the space reserved for the sidebar adapt. */
@media (min-width: 641px) and (max-width: 979px) {
  .vo-filter-page #mobile-header { display: none !important; }
  .vo-filter-page .device-width, .vo-filter-page #container,
  .vo-filter-page #big-header, .vo-filter-page #sub-header nav,
  .vo-filter-page #page-footer { width: 100%; box-sizing: border-box; }
  .vo-filter-page #big-header { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
  .vo-filter-page #big-header form.search { display: none; }
  .vo-filter-page #page-container { margin-left: 0; width: 100%; }
  .vo-filter-page #sub-header nav > ul { display: flex; }
  .vo-filter-page #sub-header nav > ul > li { flex: 1; min-width: 0; }
  .vo-filter-page #hotels-main { max-width: 100%; float: none; margin-inline: auto; }
  .vo-filter-page #places-list .hotel-listing-box { box-sizing: border-box; max-width: 100%; }
  .vo-filter-page #country-container #description, .vo-filter-page #city-container #description,
  .vo-filter-page #description #description-overlay { max-width: 100%; }
  .vo-filter-page header { width: 100vw; }
  .vo-filter-page #page-footer .device-width, .vo-filter-page #sub-header .device-width { width: 100%; }
  .vo-filter-page #offers { margin-right: 0; }
}
