/* Valaam Cruise Core 0.1.3 — isolated, Reboot-compatible catalogue styles. */
.vcc-catalog,
.vcc-list--single {
  --vcc-accent: #176b72;
  --vcc-accent-hover: #10535a;
  --vcc-accent-soft: #e8f3f2;
  --vcc-line: #dce7e7;
  --vcc-muted: #536a70;
  text-align: left;
  color: #20343a;
}
.vcc-catalog {
  margin: 1.5rem 0;
  container-type: inline-size;
  container-name: vcc-catalog;
}
.vcc-catalog *, .vcc-list--single * { box-sizing: border-box; }
.vcc-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  align-items: end;
  gap: 14px;
  padding: 19px;
  margin: 0 0 19px;
  border: 1px solid var(--vcc-line);
  border-radius: 13px;
  background: #f5f9f8;
  text-align: left;
}
.vcc-filter__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.vcc-filter__field > span { color: #25464b; }
.vcc-filter__field input,
.vcc-filter__field select {
  appearance: auto;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #cbdada;
  border-radius: 7px;
  background: #fff;
  color: #20343a;
  font-size: 14px;
  font-family: inherit;
  line-height: normal;
}
.vcc-filter__field input:focus-visible,
.vcc-filter__field select:focus-visible,
.vcc-filter__submit:focus-visible,
.vcc-button:focus-visible,
.vcc-pagination a:focus-visible,
.vcc-card__route-details summary:focus-visible {
  outline: 3px solid #9cced0;
  outline-offset: 2px;
}
.vcc-filter__submit,
.vcc-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--vcc-accent);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .16s ease;
}
.vcc-filter__submit:hover,
.vcc-button:hover { background: var(--vcc-accent-hover); color: #fff !important; }
.vcc-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  color: var(--vcc-accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcc-count { margin: 0 0 16px; font-size: 14px; color: #456167; }
.vcc-count strong { color: #16383c; }
.vcc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  width: 100%;
  min-width: 0;
  text-align: left;
}
.vcc-list--single { grid-template-columns: minmax(0, 1fr); }
.vcc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  padding: 20px;
  margin: 0;
  border: 1px solid var(--vcc-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 11px rgba(24, 65, 70, .045);
  overflow-wrap: break-word;
}
.vcc-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: var(--vcc-muted);
  font-size: 12px;
  line-height: 1.4;
}
.vcc-card__date { color: #1a4f56; font-weight: 750; }
.vcc-card__duration {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--vcc-accent-soft);
  color: #22565b;
  font-size: 11px;
  white-space: nowrap;
}
.vcc-card__title {
  padding: 0 !important;
  margin: 1px 0 0 !important;
  color: #18353b;
  font-size: clamp(18px, 1.9vw, 21px) !important;
  line-height: 1.25 !important;
  font-weight: 750;
}
.vcc-card__cities {
  margin: 0 !important;
  color: #2d4a50;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.vcc-card__route {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e8eeee;
  border-radius: 9px;
  background: #fafcfc;
  color: #40575d;
  font-size: 13px;
  line-height: 1.55;
}
.vcc-card__route-label {
  display: block;
  margin-bottom: 5px;
  color: #5d777b;
  font-size: 11px;
  font-weight: 750;
}
.vcc-card__route-summary,
.vcc-card__route-details p { margin: 0 !important; line-height: 1.55; overflow-wrap: anywhere; }
.vcc-card__route-details { margin-top: 7px; }
.vcc-card__route-details summary {
  display: list-item;
  width: fit-content;
  color: var(--vcc-accent);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vcc-card__route-details[open] summary { margin-bottom: 7px; }
.vcc-card__route-details p { padding-top: 4px; }
.vcc-card__transfer {
  margin: 0 !important;
  padding: 6px 0;
  color: #795f2a;
  font-size: 12px;
  line-height: 1.5;
}
.vcc-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 !important; }
.vcc-card__tag {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #e0ebeb;
  border-radius: 5px;
  background: #f2f8f7;
  color: #305d61;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.vcc-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e8eeee;
}
.vcc-card__price { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vcc-card__price span { color: #63787d; font-size: 12px; line-height: 1.3; }
.vcc-card__price strong { color: #143d43; font-size: 21px; font-weight: 750; line-height: 1.15; }
.vcc-card__price del { color: #78898d; font-size: 12px; line-height: 1.3; }
.vcc-button { flex-shrink: 0; max-width: 100%; min-width: 143px; font-size: 13px; }
.vcc-button--disabled,
.vcc-button--disabled:hover {
  background: #e9eeee !important;
  color: #68797e !important;
  border-color: #e9eeee;
  cursor: default;
  font-weight: 650;
}
.vcc-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin: 25px 0; font-size: 14px; }
.vcc-pagination a { color: var(--vcc-accent); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.vcc-pagination span { color: #5a7075; }
.vcc-note { margin: 15px 0; color: #697f83; font-size: 12px; line-height: 1.5; }
.vcc-empty { padding: 20px; border-radius: 10px; background: #f3f8f8; color: #38595e; }
/* Reboot content columns may be narrow even on a desktop-size viewport. */
@container vcc-catalog (max-width: 780px) {
  .vcc-list { grid-template-columns: minmax(0, 1fr); }
}
@container vcc-catalog (max-width: 520px) {
  .vcc-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; gap: 11px; }
  .vcc-card { padding: 16px; }
}
@container vcc-catalog (max-width: 360px) {
  .vcc-filter { grid-template-columns: minmax(0, 1fr); }
  .vcc-card__bottom { align-items: stretch; }
  .vcc-button { width: 100%; }
}
/* Fallback for older browsers without CSS container queries. */
@media (max-width: 900px) {
  .vcc-catalog .vcc-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .vcc-catalog .vcc-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; gap: 11px; }
  .vcc-catalog .vcc-card { padding: 16px; }
}
@media (max-width: 390px) {
  .vcc-catalog .vcc-filter { grid-template-columns: minmax(0, 1fr); }
  .vcc-catalog .vcc-card__bottom { align-items: stretch; }
  .vcc-catalog .vcc-button { width: 100%; }
}
