/* Cruises search page — layout aligned with MyMeteor Figma (uses theme.css variables) */

body.pc-page-cruises {
  --pc-cream: #fbf9e4;
  --pc-search-pad-y: 26px;
  --pc-search-pad-x: 40px;
}

body.pc-page-cruises .pc-cruises-title-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 16px;
  margin-bottom: 0;
}

body.pc-page-cruises .pc-cruises-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--pc-ink);
  line-height: 1.2;
}

body.pc-page-cruises .pc-cruises-form {
  margin: 0;
}

body.pc-page-cruises .pc-cruises-search {
  background: var(--pc-ink);
  border-radius: 5px;
  color: var(--pc-cream);
  margin-bottom: 20px;
}

/* One horizontal strip: From — swap — To — dates — passengers — submit */
body.pc-page-cruises .pc-cruises-search__inner {
  padding: var(--pc-search-pad-y) var(--pc-search-pad-x);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
}

@media (min-width: 992px) {
  body.pc-page-cruises .pc-cruises-search__inner {
    flex-wrap: nowrap;
  }
}

body.pc-page-cruises .pc-cruises-search-label {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  color: var(--pc-cream);
  margin: 0 0 8px;
}

body.pc-page-cruises .pc-cruises-search-label--spacer {
  visibility: hidden;
  user-select: none;
}

body.pc-page-cruises .pc-cruises-field-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

body.pc-page-cruises .pc-cruises-field-block--port {
  flex: 1 1 140px;
  max-width: 280px;
}

body.pc-page-cruises .pc-cruises-field-block--submit {
  flex: 0 0 auto;
  margin-left: auto;
}

body.pc-page-cruises .pc-cruises-field-block--passengers {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 112px;
  max-width: 112px;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-combobox {
  width: 100%;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-combobox__popover {
  min-width: 112px;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-combobox__option {
  text-align: center;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-cruises-field-trigger--passenger {
  position: relative;
  justify-content: center;
  padding-left: 28px;
  padding-right: 28px;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-cruises-field-trigger--passenger .pc-combobox__value {
  flex: 0 1 auto;
  text-align: center;
}

body.pc-page-cruises .pc-cruises-field-block--passengers .pc-cruises-field-trigger--passenger .pc-combobox__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

body.pc-page-cruises .pc-combobox {
  position: relative;
  min-width: 0;
}

body.pc-page-cruises .pc-cruises-field-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid var(--pc-accent-soft);
  background: #fff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.pc-page-cruises .pc-cruises-field-trigger--date {
  min-width: 140px;
}

body.pc-page-cruises .pc-cruises-field-trigger:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

body.pc-page-cruises .pc-cruises-field-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.pc-page-cruises .pc-combobox__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.pc-page-cruises .pc-combobox__chevron {
  flex-shrink: 0;
  font-size: 12px;
  opacity: 0.85;
}

body.pc-page-cruises .pc-combobox__popover {
  position: fixed;
  z-index: 1100;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--pc-accent-soft);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(18, 44, 79, 0.12);
  padding: 6px 0;
}

body.pc-page-cruises .pc-combobox__option {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--pc-ink);
  font-size: 18px;
}

body.pc-page-cruises .pc-combobox__option:hover,
body.pc-page-cruises .pc-combobox__option:focus {
  background: rgba(168, 194, 217, 0.25);
  outline: none;
}

body.pc-page-cruises .pc-cruises-swap {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 2px;
  border-color: var(--pc-cream);
  color: var(--pc-cream);
}

body.pc-page-cruises .pc-cruises-swap:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

body.pc-page-cruises .pc-cruises-date-end-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 140px;
  max-width: 140px;
}

body.pc-page-cruises .pc-cruises-date-end-filled {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

body.pc-page-cruises .pc-cruises-date-end-readonly {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  cursor: default;
}

body.pc-page-cruises .pc-cruises-date-end-readonly:hover {
  border-color: var(--pc-accent-soft);
  color: var(--pc-ink);
}

body.pc-page-cruises .pc-cruises-date-end-display {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body.pc-page-cruises .pc-cruises-date-add {
  min-width: 140px;
  width: 100%;
}

body.pc-page-cruises .pc-cruises-date-add__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

body.pc-page-cruises .pc-cruises-date-add__plus {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

body.pc-page-cruises .pc-cruises-date-add:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

body.pc-page-cruises .pc-cruises-date-clear.pc-btn.pc-btn--icon {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-width: 1px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--pc-accent-soft);
  background: transparent;
  color: var(--pc-cream);
  line-height: 1;
  font-family: inherit;
}

/* FA solid xmark: keep FA6 font + weight 900 (overriding .btn / theme breaks the glyph) */
body.pc-page-cruises .pc-cruises-date-clear i.fa-solid {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

body.pc-page-cruises .pc-cruises-date-clear:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

/* Return-date clear icon should look like the "+" control (no border/circle). */
body.pc-page-cruises .pc-cruises-date-end-readonly .pc-cruises-date-clear.pc-btn.pc-btn--icon {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pc-ink);
}

body.pc-page-cruises .pc-cruises-date-end-readonly .pc-cruises-date-clear i.fa-solid {
  font-size: 22px;
  line-height: 1;
}

body.pc-page-cruises .pc-cruises-date-end-readonly .pc-cruises-date-clear:hover {
  border-color: transparent;
  color: var(--pc-accent);
}

body.pc-page-cruises .pc-btn--cruises-submit {
  border: 1px solid var(--pc-accent);
  color: var(--pc-accent);
  background: transparent;
  border-radius: 30px;
  font-size: 20px;
  padding: 10px 22px;
  min-height: 48px;
  white-space: nowrap;
}

body.pc-page-cruises .pc-btn--cruises-submit:hover {
  background: rgba(255, 163, 82, 0.12);
}

body.pc-page-cruises .pc-date-popover {
  position: fixed;
  z-index: 1100;
  min-width: 280px;
  max-width: calc(100vw - 24px);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--pc-accent-soft);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(18, 44, 79, 0.12);
  color: var(--pc-ink);
}

body.pc-page-cruises .pc-date-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

body.pc-page-cruises .pc-date-popover__title {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  flex: 1;
}

body.pc-page-cruises .pc-date-popover__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

body.pc-page-cruises .pc-date-popover__wk {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-muted);
  padding: 4px 0;
}

body.pc-page-cruises .pc-date-popover__day {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #fff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 15px;
  padding: 8px 0;
  cursor: pointer;
}

body.pc-page-cruises .pc-date-popover__day:hover:not(:disabled) {
  border-color: var(--pc-accent-soft);
  background: rgba(168, 194, 217, 0.2);
}

body.pc-page-cruises .pc-date-popover__day--muted {
  color: var(--pc-muted);
  opacity: 0.55;
}

body.pc-page-cruises .pc-cruises-results-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.pc-page-cruises .pc-cruises-results-card .result {
  margin-top: 0;
  margin-bottom: 12px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.35;
  color: var(--pc-ink);
}

body.pc-page-cruises .pc-cruises-results-tables {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

body.pc-page-cruises .pc-cruises-results-leg .result {
  margin-bottom: 10px;
}

body.pc-page-cruises #result-return.result {
  font-size: 16px;
  line-height: 1.4;
}

body.pc-page-cruises .pc-cruises-table-wrap--locked {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

body.pc-page-cruises .pc-cruises-results-table-panel {
  background: #fff;
  border: 1px solid var(--pc-ink);
  border-radius: 5px;
  padding: 20px 24px 24px;
  box-sizing: border-box;
}

body.pc-page-cruises .pc-cruises-results-table-panel .table-wrap {
  margin-top: 0;
}

body.pc-page-cruises .pc-cruises-empty {
  background: #fff;
  border: 1px dashed var(--pc-accent-soft);
  border-radius: 5px;
  padding: 40px 24px;
  margin-bottom: 16px;
  text-align: center;
}

body.pc-page-cruises .pc-cruises-empty__inner {
  max-width: 480px;
  margin: 0 auto;
}

body.pc-page-cruises .pc-cruises-empty__icon {
  font-size: 2.5rem;
  color: var(--pc-accent-soft);
  margin-bottom: 16px;
}

body.pc-page-cruises .pc-cruises-empty__text {
  margin: 0;
  font-size: 20px;
  color: var(--pc-ink);
}

body.pc-page-cruises .table-wrap {
  margin-top: 0;
  overflow-x: auto;
}

body.pc-page-cruises .pc-cruises-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
  line-height: 1.35;
}

body.pc-page-cruises .pc-cruises-table th,
body.pc-page-cruises .pc-cruises-table td {
  border: 1px solid var(--pc-accent-soft);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep long cruise names inside cells (was overlapping «Цена» with white-space: pre on rows) */
body.pc-page-cruises tr.cruise-row td {
  white-space: pre-line;
}

body.pc-page-cruises .pc-cruises-table th {
  white-space: normal;
  font-size: 11px;
  letter-spacing: 0.02em;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(1),
body.pc-page-cruises .pc-cruises-table td:nth-child(1) {
  width: 17%;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(2),
body.pc-page-cruises .pc-cruises-table td:nth-child(2) {
  width: 17%;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(3),
body.pc-page-cruises .pc-cruises-table td:nth-child(3) {
  width: 11%;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(4),
body.pc-page-cruises .pc-cruises-table td:nth-child(4) {
  width: 28%;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(5),
body.pc-page-cruises .pc-cruises-table td:nth-child(5) {
  width: 11%;
}

body.pc-page-cruises .pc-cruises-table th:nth-child(6),
body.pc-page-cruises .pc-cruises-table td:nth-child(6) {
  width: 14%;
  min-width: 100px;
}

body.pc-page-cruises .pc-cruises-table__th-select {
  min-width: 100px;
}

body.pc-page-cruises .pc-cruises-table td.pc-cruise-select-col {
  text-align: center;
  vertical-align: middle;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

body.pc-page-cruises .pc-cruise-select-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 132px;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid var(--pc-ink);
  background: #fff;
  color: var(--pc-ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

body.pc-page-cruises .pc-cruise-select-btn:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

body.pc-page-cruises .pc-cruise-select-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--pc-ink);
  color: #fff;
  font-size: 15px;
}

body.pc-page-cruises .pc-cruises-table thead th {
  background: rgba(168, 194, 217, 0.28);
  color: var(--pc-ink);
  font-weight: 600;
}

body.pc-page-cruises tr.cruise-row {
  cursor: pointer;
}

body.pc-page-cruises tr.cruise-row:hover {
  background: rgba(168, 194, 217, 0.18);
}

body.pc-page-cruises tr.cruise-row--selected-outbound {
  background: rgba(168, 194, 217, 0.42);
}

body.pc-page-cruises tr.cruise-row--selected-outbound:hover {
  background: rgba(168, 194, 217, 0.5);
}

body.pc-page-cruises tr.cruise-row--selected-return {
  background: rgba(255, 163, 82, 0.22);
}

body.pc-page-cruises tr.cruise-row--selected-return:hover {
  background: rgba(255, 163, 82, 0.32);
}

body.pc-page-cruises tr.pc-cruise-section-row td {
  font-weight: 600;
  background: rgba(18, 44, 79, 0.06);
  color: var(--pc-ink);
  border-color: var(--pc-accent-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}

body.pc-page-cruises .pc-cruises-book-wrap {
  margin-top: 18px;
  width: 100%;
}

body.pc-page-cruises #book-cruise-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 30px;
}

body.pc-page-cruises #book-cruise-btn:hover {
  text-decoration: none;
}

@media (max-width: 991px) {
  body.pc-page-cruises {
    --pc-search-pad-x: 20px;
    --pc-search-pad-y: 20px;
  }

  body.pc-page-cruises .pc-cruises-results-card {
    padding: 0;
  }

  body.pc-page-cruises .pc-cruises-search__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  body.pc-page-cruises .pc-cruises-field-block--port {
    max-width: none;
  }

  body.pc-page-cruises .pc-cruises-field-block--submit {
    margin-left: 0;
  }

  body.pc-page-cruises .pc-cruises-swap {
    align-self: center;
  }
}
