.page {
  max-width: 1232px;
  margin: 0 auto;
  padding: 18px 16px 52px;
}

.widget {
  --search-field-height: 64px;
  --search-field-padding: 8px 12px;
  overflow: visible;
  border-radius: 6px;
  background: var(--widget-surface);
  box-shadow: 0 10px 24px var(--shadow-color);
}

.head {
  padding: var(--search-fields-padding);
  border-radius: 6px 6px 0 0;
  background: var(--widget-head);
}

.main-fields {
  display: grid;
  grid-template-columns: 1.35fr 1.45fr 1.05fr .68fr 1.58fr;
  gap: var(--search-fields-gap);
}

.departure-slot {
  min-width: 0;
}

.departure-slot > .field-card {
  width: 100%;
}

.field-card, .tourists {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 69px;
  padding: var(--search-field-padding);
  border-radius: 3px;
  background: var(--widget-field);
  box-shadow: 0 2px 5px var(--shadow-color);
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.field-card select, .field-card input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.field-card select {
  appearance: none;
  cursor: pointer;
}

.field-card:has(select)::after, .tourists summary::after {
  position: absolute;
  top: 40px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.dates, .nights {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dates input {
  font-size: 15px;
}

.nights input {
  width: 45%;
  font-size: 19px;
}

.tourists {
  padding: 0;
}

.tourists summary {
  display: block;
  min-height: 69px;
  padding: 11px 14px 8px;
  list-style: none;
  cursor: pointer;
}

.tourists summary::-webkit-details-marker {
  display: none;
}

.tourist-value {
  display: block;
  overflow: hidden;
  padding-right: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourists-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 14px;
  border: 1px solid var(--widget-border);
  background: var(--widget-field);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.tourists-menu label {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tourists-menu select, .tourists-menu input {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
}

.date-card, .nights-card {
  padding: 0;
}

.date-card summary, .nights-card summary {
  display: block;
  min-height: 69px;
  padding: 11px 14px 8px;
  list-style: none;
  cursor: pointer;
}

.date-card summary::-webkit-details-marker, .nights-card summary::-webkit-details-marker {
  display: none;
}

.date-value, .nights-value {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-popup, .nights-popup {
  position: absolute;
  z-index: 8;
  top: calc(100% + 14px);
  left: -70px;
  width: min(490px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--widget-border);
  background: var(--widget-field);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.calendar-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.calendar-note button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--widget-soft);
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  pointer-events: auto;
}

.calendar-note button::before {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
}

.calendar-note .calendar-prev::before {
  transform: translateX(2px) rotate(135deg);
}

.calendar-note .calendar-next::before {
  transform: translateX(-2px) rotate(-45deg);
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.month-title {
  margin: 0 0 14px;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
}

.month-title small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.weekday {
  padding-bottom: 7px;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.weekday.weekend {
  color: var(--danger);
}

.day {
  min-height: 44px;
  padding: 3px 1px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.day.available {
  background: var(--widget-soft);
  font-weight: 700;
}

.day.available:hover {
  background: var(--accent-soft);
}

.day.selected {
  color: var(--widget-selected-text);
  background: var(--widget-action);
}

.day-price {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.day.selected .day-price {
  color: var(--widget-selected-text);
  opacity: .78;
}

.nights-popup {
  left: -165px;
  width: min(506px, calc(100vw - 32px));
}

.nights-popup h2, .tourists-menu h2 {
  margin: 4px 0 20px;
  color: var(--ink);
  font-size: 20px;
}

.nights-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.night {
  min-height: 62px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.night.available {
  background: var(--widget-soft);
}

.night.selected {
  color: var(--widget-selected-text);
  background: var(--widget-action);
}

.night small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}

.tourists-menu {
  right: 0;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  min-width: 0;
  padding: 20px;
}

.counter {
  display: grid;
  grid-template-columns: 66px 1fr 66px;
  align-items: center;
  overflow: hidden;
  margin: 10px 0 18px;
  border-radius: 26px;
  background: var(--widget-soft);
  text-align: center;
}

.counter button, .child-remove {
  min-height: 50px;
  border: 0;
  border-radius: 26px;
  color: var(--widget-selected-text);
  background: var(--widget-selected);
  cursor: pointer;
  font-size: 25px;
}

.counter-value {
  font-size: 17px;
}

.add-child, .confirm-tourists {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  font-size: 16px;
}

.add-child {
  color: var(--muted);
  background: var(--widget-soft);
}

.children-list:not(:empty) + .add-child {
  margin-top: 14px;
}

.confirm-tourists {
  width: 74%;
  margin: 18px auto 0;
  color: var(--widget-action-text);
  background: var(--widget-action);
}

.children-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.child-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 26px;
  background: var(--widget-soft);
  color: var(--ink);
  text-align: center;
}

.child-remove {
  width: 66px;
}

.age-picker-title {
  margin: 18px 0 14px;
  color: var(--widget-selected);
  text-align: center;
  font-size: 16px;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.age-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--widget-soft);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.filters {
  padding: 28px 27px 29px;
}

.selected-hotels-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selected-hotels-field ul {
  width: 100%;
  padding: 10px 12px;
  padding-left: 32px;
  margin: 0;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--ink);
  background: var(--widget-field);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.selected-hotels-field .selected-hotel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selected-hotels-field .selected-hotel-remove {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.selected-hotels-field .selected-hotel-remove:hover,
.selected-hotels-field .selected-hotel-remove:focus-visible {
  color: var(--ink);
}

.selected-hotels-field[hidden] {
  display: none;
}

.control, .control summary {
  position: relative;
  min-height: 55px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  background: var(--widget-field);
}

.control {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.control.expand {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.control.expand > summary {
  width: 100%;
}

.field-card[hidden], .control[hidden], .space[hidden], .add-child[hidden] {
  display: none;
}

.control select {
  width: 100%;
  padding: 16px 24px 16px 0;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.control:has(select)::after, .control summary::after {
  position: absolute;
  top: 19px;
  right: 15px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.control select:disabled {
  color: var(--disabled-text);
}

.stars {
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.star-list {
  display: flex;
  gap: 1px;
}

.star {
  width: 23px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 27px;
}

.star.active {
  color: var(--accent-strong);
}

.expand summary {
  display: block;
  padding: 19px 46px 17px 14px;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.expand summary::-webkit-details-marker {
  display: none;
}

.filter-row > .control.expand > summary {
  height: 100%;
  min-height: 100%;
}

.filter-row > .control.expand > summary::after {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.popup {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  right: 0;
  width: min(100%, 620px);
  padding: 16px;
  border: 1px solid var(--widget-border);
  background: var(--widget-field);
  box-shadow: 0 10px 22px var(--shadow-color);
}

.popup label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.popup select {
  min-height: 130px;
  padding: 7px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
}

.popup p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.space {
  display: grid;
  grid-template-columns: 229px 1fr;
  gap: 27px;
  margin-top: 28px;
}

.box {
  min-height: 272px;
  padding: 17px 14px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  background: color-mix(in srgb, var(--widget-field) 55%, transparent);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.box select {
  width: 100%;
  height: 210px;
  margin-top: 9px;
  padding: 7px;
  border: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
}

.box select:disabled {
  color: var(--muted);
}

.bottom {
  display: grid;
  grid-template-columns: 229px 410px 1fr;
  gap: 27px;
  margin-top: 28px;
}

.budget {
  left: 0;
  width: 270px;
}

.budget-field {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  min-width: 0;
}

.budget label {
  font-size: 12px;
}

.budget-input-wrap {
  position: relative;
}

.budget input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 40px 7px 7px;
  border: 1px solid var(--widget-border);
}

.budget-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.budget-clear[hidden] {
  display: none;
}

.budget-clear:hover,
.budget-clear:focus-visible {
  color: var(--ink);
}

#budget-summary .budget-value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
  white-space: nowrap;
}

.flight-options {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.flight-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.flight-options input {
  width: 19px;
  height: 19px;
  accent-color: var(--widget-action);
}

.toggle {
  gap: 11px;
  color: var(--muted);
}

.toggle input {
  width: 22px;
  height: 22px;
  margin-left: auto;
}

.search {
  width: 100%;
  border: 0;
  border-radius: 3px;
  color: var(--widget-action-text);
  background: var(--widget-action);
  box-shadow: 0 2px 4px var(--shadow-color);
  cursor: pointer;
  font-size: 21px;
}

.search:disabled {
  opacity: .7;
  cursor: not-allowed;
  font-size: 21px;
}

.request-preview {
  margin: 0 27px 24px;
  padding: 12px 14px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  background: color-mix(in srgb, var(--widget-field) 48%, transparent);
}

.request-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.request-preview a {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.request-preview a + strong {
  margin-top: 14px;
}

.request-debug {
  margin: -8px 27px 24px;
  padding: 10px 14px;
  border: 1px dashed var(--widget-border);
  color: var(--muted);
  background: var(--widget-soft);
  font-size: 12px;
}

.request-debug strong {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.request-debug pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hotel-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.hotel-photo-button:focus-visible {
  outline: 3px solid var(--widget-action);
  outline-offset: -3px;
}

.hotel-stars {
  color: var(--accent-strong);
  letter-spacing: 1px;
}

.hotel-rating {
  margin: -6px 0 11px;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  width: 100%;
  min-height: 25px;
  margin: 20px 0 9px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.status.error {
  color: var(--danger);
}

.status-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid var(--widget-border);
  border-top-color: var(--widget-action);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.status.loading .status-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }

}

.debug-error { margin: -.65rem 0 1rem; color: var(--danger); font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.debug-error[hidden] { display: none; }

.results-info {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin: -2px 0 11px;
}

.results-toolbar span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 13px;
}

.results-layout {
  min-width: 37px;
  min-height: 31px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--muted);
  background: var(--widget-field);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.results-layout[aria-pressed="true"] {
  border-color: var(--widget-action);
  color: var(--widget-action-text);
  background: var(--widget-action);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

.results:not(.layout-horizontal) {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.results:not(.layout-horizontal) .card {
  max-width: 800px;
}

.results.layout-horizontal {
  grid-template-columns: 1fr;
}

.card {
  overflow: hidden;
  border: 1px solid var(--widget-border);
  border-radius: 4px;
  background: var(--widget-field);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.64 / 1;
  object-fit: cover;
  background: var(--surface-muted);
}

.layout-horizontal .card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.layout-horizontal .hotel-photo-button {
  align-self: start;
  height: auto;
  min-height: 0;
}

.layout-horizontal .hotel-photo-button img {
  height: auto;
  min-height: 0;
}

.card-body {
  min-width: 0;
  padding: 16px;
}

.card h2 {
  position: relative;
  margin: 0;
  font-size: 19px;
}

.results:not(.layout-horizontal) .card {
  overflow: visible;
}

.results:not(.layout-horizontal) .card h2[data-tooltip] {
  cursor: help;
}

.results:not(.layout-horizontal) .card h2[data-tooltip]::after {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--widget-border);
  border-radius: 6px;
  color: var(--ink);
  background: var(--widget-field);
  box-shadow: 0 8px 20px var(--shadow-color);
  content: attr(data-tooltip);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}

.results:not(.layout-horizontal) .card h2[data-tooltip]:hover::after,
.results:not(.layout-horizontal) .card h2[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.card-description {
  display: none;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.layout-horizontal .card-description {
  display: -webkit-box;
}

.place {
  min-height: 21px;
  margin: 7px 0 11px;
  color: var(--muted);
}

.price {
  margin: 0 0 3px;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.note {
  color: var(--muted);
  font-size: 12px;
}

.tour-options, .hotel-info {
  margin-top: 14px;
  border: 0;
  background: transparent;
}

.tour-options[open], .hotel-info[open] {
  padding: 0 12px 12px;
  border: 1px solid var(--widget-border);
  border-radius: 4px;
  background: var(--widget-field);
}

.tour-options summary, .hotel-info > summary {
  padding: 11px 0 2px;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}

.tour-options > summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.tour-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tour-link:hover .tour-price, .tour-link:focus-visible .tour-price {
  color: var(--accent-hover);
  text-decoration: underline;
}

.tour-price {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

.tour-details {
  display: block;
  margin-top: 4px;
}

.hotel-info-content {
  padding-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.hotel-info-content h3 {
  margin: 15px 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.hotel-info-content h3:first-child {
  margin-top: 0;
}

.hotel-info-content p {
  margin: 6px 0;
}

.hotel-info-content .info-loading, .hotel-info-content .info-error {
  color: var(--muted);
}

.hotel-info-content .info-error {
  color: var(--danger);
}

.hotel-facts {
  margin: 0;
  padding-left: 18px;
}

.hotel-map {
  display: block;
  width: 100%;
  height: 185px;
  margin-top: 8px;
  border: 1px solid var(--widget-border);
}

.map-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-strong);
}

.review {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.review-meta {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 28px;
  border: 1px solid var(--widget-border);
  background: var(--widget-field);
  color: var(--muted);
  text-align: center;
}

.disclaimer {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.price-link:hover .price, .price-link:focus-visible .price {
  text-decoration: underline;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
}

.price-alert-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0 auto;
}

.price-alert-card-button {
  max-width: 150px;
  appearance: none;
  padding: 4px 8px;
  border: 1px solid var(--widget-border);
  border-radius: 999px;
  color: var(--accent-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.price-alert-card-button:hover,
.price-alert-card-button:focus-visible {
  color: var(--accent-strong);
  background: var(--widget-soft);
}

.price-row .price {
  margin: 0;
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: line-through;
  white-space: nowrap;
}

.discount-badge {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--widget-action-text);
  background: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.search-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  margin: 0 -1px -1px 16px;
}

.search-tab {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--widget-border);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  background: var(--widget-soft);
  cursor: pointer;
  font-weight: 700;
}

.search-tab.active {
  color: var(--widget-action-text);
  background: var(--widget-head);
}

.search-tab:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

.hot-filters .search {
  min-height: 66px;
  padding: 0 12px;
  font-size: 17px;
}

.results-toolbar > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.results-sort select {
  min-height: 31px;
  max-width: 210px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--muted);
  background: var(--widget-field);
  padding: 0 7px;
}

.results-search {
  flex: 1 1 240px;
  max-width: 360px;
}

.results-search input {
  width: 100%;
  min-height: 31px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--ink);
  background: var(--widget-field);
  padding: 0 9px;
  font: inherit;
}

.results-search input::placeholder {
  color: var(--muted);
}

.results-search-match {
  padding: 0 2px;
  border-radius: 2px;
  color: inherit;
  background: var(--accent-soft);
}

.results-search[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.results-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.results-pagination button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--accent-strong);
  background: var(--widget-field);
  cursor: pointer;
}

.results-pagination button[aria-current="page"] {
  border-color: var(--widget-action);
  color: var(--widget-action-text);
  background: var(--widget-action);
}

.results-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

@media (max-width: 980px) {
  .main-fields {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .space {
    gap: 14px;
  }

}

@media (max-width: 620px) {
  .page {
    padding: 8px;
  }

  .head, .filters {
    padding: 18px 14px;
  }

  .main-fields, .space, .bottom, .results {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .layout-horizontal .card {
    display: block;
  }

  .layout-horizontal .hotel-photo-button, .layout-horizontal .hotel-photo-button img {
    height: auto;
    min-height: 0;
  }

  .results-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .results-sort {
    width: 100%;
  }

  .results-sort select {
    flex: 1;
    max-width: none;
  }

  .space, .bottom {
    margin-top: 12px;
  }

  .box {
    min-height: 155px;
  }

  .box select {
    height: 94px;
  }

  .search {
    min-height: 55px;
  }

  .popup {
    right: auto;
    left: 0;
    width: 100%;
  }

  .tourists-menu {
    right: 0;
    left: auto;
  }

}

.source-line {
  display: block;
  padding: 4px 0;
  white-space: pre-wrap;
}

.source-line.has-marker {
  padding-left: 2em;
}

.source-marker {
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  color: var(--widget-action);
  font-weight: 700;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.topic-filter {
  padding: 5px 8px;
  border: 1px solid var(--widget-border);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--widget-soft);
  cursor: pointer;
  font-size: 12px;
}

.topic-filter:hover, .topic-filter:focus-visible {
  border-color: var(--widget-action);
}

.topic-filter.active {
  color: var(--widget-action-text);
  border-color: var(--widget-action);
  background: var(--widget-action);
}

.review.topic-match {
  padding: 8px;
  border-left: 3px solid var(--accent-strong);
  border-radius: 3px;
  background: var(--widget-soft);
}

.review mark {
  padding: 0 1px;
  color: inherit;
  background: var(--accent-soft);
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 3px;
  color: var(--widget-action-text);
  background: var(--widget-action);
  cursor: pointer;
  font-weight: 700;
}

.order-button:hover, .order-button:focus-visible {
  background: var(--accent-hover);
}

.order-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--overlay-color);
}

.order-modal[hidden] {
  display: none;
}

.order-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 0;
  border-radius: 6px;
  background: var(--widget-field);
  box-shadow: 0 18px 50px var(--shadow-color);
}

.order-dialog h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.order-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
}

.order-dialog label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.order-dialog input, .order-dialog textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--widget-border);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
}

.order-dialog textarea {
  min-height: 110px;
  resize: vertical;
}

.result-modal { position: fixed; z-index: 1110; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--overlay-color); }
.result-modal[hidden] { display: none; }
.result-dialog { position: relative; width: min(100%, 520px); padding: 32px; border: 0; border-radius: 6px; color: var(--ink); background: var(--widget-field); box-shadow: 0 18px 50px var(--shadow-color); }
.result-dialog h2 { margin: 0 38px 12px 0; color: var(--ink); }
.result-dialog p { margin: 0 0 20px; color: var(--muted); line-height: 1.45; }
.result-dialog p.success { color: var(--accent-strong); }
.result-dialog p.error { color: var(--danger); }
.result-links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.result-links a { display: flex; width: 100%; box-sizing: border-box; justify-content: center; padding: 10px 12px; border: 1px solid var(--accent-strong); border-radius: 3px; color: var(--accent-strong); text-align: center; font-weight: 700; text-decoration: none; }
.result-links a:hover, .result-links a:focus-visible { color: var(--widget-field); background: var(--accent-strong); }
.result-actions { display: flex; justify-content: flex-end; gap: 12px; }
.result-actions button { min-height: 0; margin: 0; padding: 10px 16px; border: 1px solid var(--accent-strong); border-radius: 3px; color: var(--accent-strong); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.result-actions button:hover, .result-actions button:focus-visible { color: var(--widget-field); background: var(--accent-strong); }
.result-actions .result-unsubscribe { margin-right: auto; }
.result-actions .result-unsubscribe[hidden] { display: none; }

.order-actions .cancel {
  color: var(--muted);
  background: var(--widget-soft);
}

.order-actions .submit {
  color: var(--widget-action-text);
  background: var(--widget-action);
}

.order-actions .submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.hotel-media {
  align-self: start;
}

.hotel-photo-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0 0;
  background: transparent;
}

.hotel-photo-thumbnails:empty {
  min-height: 40px;
}

.hotel-photo-thumbnail, .hotel-photo-placeholder {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1.64 / 1;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='32' viewBox='0 0 48 32'%3E%3Crect x='2' y='2' width='44' height='28' rx='3' fill='%23d3e0e8'/%3E%3Ccircle cx='16' cy='12' r='4' fill='%239ab1c1'/%3E%3Cpath d='M6 26l11-10 7 6 6-5 12 9' fill='none' stroke='%239ab1c1' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / 48px 32px no-repeat;
}

.hotel-photo-thumbnail {
  cursor: zoom-in;
}

.hotel-photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-photo-thumbnail.loading::after {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  width: 16px;
  height: 16px;
  border: 2px solid var(--widget-border);
  border-top-color: var(--widget-action);
  border-radius: 50%;
  content: "";
  animation: spin .75s linear infinite;
}

.hotel-photo-thumbnail:focus-visible {
  outline: 3px solid var(--widget-action);
  outline-offset: 2px;
}

.layout-horizontal .hotel-media {
  grid-column: 1;
  grid-row: 1;
}

.calendar-popup {
  right: 0;
  left: auto;
  width: min(900px, calc(100vw - 32px));
}

@media (max-width: 720px) {
  .calendar-popup {
    right: auto;
  }

  .calendar-note {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    left: 12px;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .calendar-months {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

.day.in-range {
  color: var(--ink);
  background: var(--accent-soft);
}

.tour-head > strong:first-child {
  min-width: 0;
  white-space: normal;
}

.tour-head .tour-price {
  margin-left: auto;
}

.results-toolbar[hidden] {
  display: none;
}

.calendar-flight-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.calendar-flight-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.calendar-flight-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--widget-action);
}

.control.expand:has(select)::after {
  display: none;
}

.control:not(.expand):has(select)::after {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.bottom .search {
  grid-column: 1 / -1;
}

.hot-filters {
  display: grid;
  grid-template-columns: 1.35fr 1.45fr 1.05fr .68fr 1.58fr;
  gap: var(--search-fields-gap);
  align-items: end;
  padding: var(--search-fields-padding);
  border-radius: 6px;
  background: var(--widget-head);
}

.hot-filters label {
  position: relative;
  display: block;
  min-height: 69px;
  padding: var(--search-field-padding);
  border-radius: 3px;
  background: var(--widget-field);
  box-shadow: 0 2px 5px var(--shadow-color);
}

.hot-filters label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hot-filters select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.hot-filters label:has(select)::after {
  position: absolute;
  top: 40px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.search-field-value {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.hot-bottom {
  padding: 0 27px 28px;
  background: var(--widget-head);
}

.hot-bottom .search {
  display: block;
  width: 100%;
  padding: 0;
}

.search-action {
  display: grid;
  grid-template-columns: 229px 410px 1fr;
  gap: 27px;
  margin-top: 0;
  padding: 28px 27px 29px;
  background: var(--widget-surface);
}

.search-action .search {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
}

.hot-main-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 620px) {
  :root {
    --search-fields-padding: 18px 14px;
    --search-field-padding: 11px 14px 8px;
  }

  .search-action {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 14px 18px;
  }

  .hot-main-fields {
    grid-template-columns: 1fr;
  }

}

/* One vertical rhythm for regular, filter and hot-offer fields. */

.widget .field-card:not(.date-card):not(.nights-card), .widget .hot-filters label, .widget .filter-row > .control {
  box-sizing: border-box;
  height: var(--search-field-height);
  min-height: var(--search-field-height);
  padding: var(--search-field-padding);
}

.widget .date-card, .widget .nights-card, .widget .tourists, .widget .filter-row > .control.expand {
  box-sizing: border-box;
  height: var(--search-field-height);
  min-height: var(--search-field-height);
}

.widget .filter-row > .control.expand {
  padding: 0;
}

.widget .date-card > summary, .widget .nights-card > summary, .widget .tourists > summary, .widget .filter-row > .control.expand > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: var(--search-field-height);
  min-height: var(--search-field-height);
  padding: var(--search-field-padding);
}

.widget .filter-row > .control.expand #budget-summary {
  display: block;
  padding-top: 10px;
}

.widget .date-card > summary, .widget .nights-card > summary, .widget .tourists > summary {
  display: block;
}

.widget .label {
  margin-bottom: 2px;
}

.widget .field-card:has(select)::after, .widget .hot-filters label:has(select)::after, .widget .tourists summary::after {
  top: 50%;
}

.widget .filter-row {
  align-items: stretch;
}

.widget .star-list {
  height: 32px;
  align-items: center;
}

.widget .star {
  height: 32px;
  line-height: 1;
}

.widget .results > .empty {
  grid-column: 1 / -1;
}

.widget .search-action {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 620px) {
  .page {
    padding-right: 0;
    padding-left: 0;
  }

}

@media (max-width: 980px) {
  .hot-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-action {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

.filter-row > .control {
  flex: 0 0 auto;
}

.filter-row > .control:nth-child(1), .filter-row > .control:nth-child(3), .filter-row > .control:nth-child(6) {
  flex: 1 1 150px;
  width: auto;
  min-width: 150px;
  max-width: 250px;
}

.filter-row > .control:nth-child(1) {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.filter-row > .control:nth-child(4) {
  width: 187px;
}

.filter-row > .control:nth-child(5) {
  width: 122px;
}

.filter-row > .control.expand .budget {
  width: min(270px, 100%);
}

@media (max-width: 620px) {
  .hot-filters {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .hot-bottom {
    padding: 0 14px 18px;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-row > .control {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }

  .filter-row > .control:nth-child(1), .filter-row > .control:nth-child(3), .filter-row > .control:nth-child(4), .filter-row > .control:nth-child(5), .filter-row > .control:nth-child(6) {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

}

@media (max-width: 620px) {
  .main-fields, .filter-row {
    row-gap: 12px;
    column-gap: 12px;
    margin: 0;
  }

  .main-fields > *, .filter-row > * {
    margin-top: 0;
    margin-bottom: 0;
  }

}

@media (max-width: 620px) {
  .hot-main-fields {
    row-gap: 12px;
    column-gap: 12px;
    margin: 0;
  }

  .hot-main-fields > * {
    margin-top: 0;
    margin-bottom: 0;
  }

}

@media (max-width: 620px) {
  .calendar-popup {
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 10px;
    transform: none;
  }

  .calendar-flight-options {
    gap: 8px 12px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .calendar-flight-options input {
    width: 16px;
    height: 16px;
  }

  .calendar-note {
    margin-bottom: 8px;
  }

  .calendar-note button {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .calendar-months {
    gap: 12px;
  }

  .month-title {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .calendar-grid {
    gap: 1px;
  }

  .weekday {
    padding-bottom: 4px;
    font-size: 10px;
  }

  .day {
    min-height: 34px;
    font-size: 13px;
  }

  .day-price {
    margin-top: 1px;
    font-size: 10px;
  }

}

@media (max-width: 620px) {
  .nights-popup {
    top: calc(100% + 8px);
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 10px;
    transform: translateX(-50%);
  }

}

@media (max-width: 620px) {
  .tourists-menu {
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    transform: translateX(-50%);
  }

}

@media (max-width: 620px) {
  .budget {
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    transform: translateX(-50%);
  }

}

@media (max-width: 620px) {
  .results-toolbar .results-layout-control {
    display: none;
  }

}

.order-dialog .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.order-dialog .consent-label input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
}

.order-dialog .consent-label a {
  color: var(--widget-action);
}
