.ferry-search-strip {
  padding: 80px 0 64px;
  min-height: 320px;
  background: linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.08)), url('/images/backgrounds/tct-banner-ferry-ship.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.ferry-strip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 150px auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 42, 35, .06);
}

.ferry-strip-field { display: block; min-width: 0; font-size: 12px; font-weight: 700; color: #596460; }
.ferry-strip-field span { display: block; margin-bottom: 6px; }
.ferry-strip-field select, .ferry-strip-field input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #dbe2de; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.ferry-swap-btn { width: 38px; height: 38px; padding: 0; border: 1px solid #dbe2de; border-radius: 50%; background: #fff; color: var(--teal); font-size: 20px; cursor: pointer; }
.ferry-strip-submit { white-space: nowrap; }

.ferry-results-page { padding: 42px 0 80px; background: #f6f8f7; }
.ferry-results-page .container { max-width: 980px; }
.ferry-results-header { margin-bottom: 24px; }
.ferry-results-header h1 { margin: 3px 0 8px; font-size: 34px; }
.ferry-card-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ferry-card { display: grid; grid-template-columns: minmax(190px, .85fr) minmax(250px, 1.25fr) minmax(185px, .7fr); gap: 22px; align-items: center; padding: 22px; border: 1px solid #dfe7e2; border-radius: 14px; background: #fff; box-shadow: 0 2px 5px rgba(28, 53, 43, .04); }
.ferry-card-operator { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ferry-card-operator img, .ferry-card-operator-icon { flex: none; width: 56px; height: 56px; border: 1px solid #e1e8e3; border-radius: 10px; background: #f5f8f6; object-fit: contain; }
.ferry-card-operator-icon { display: grid; place-items: center; font-size: 28px; }
.ferry-card-operator-info { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ferry-card-operator-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ferry-card-ports { display: flex; align-items: center; gap: 12px; font-weight: 750; }
.ferry-card-arrow { color: var(--brand); font-size: 22px; }
.ferry-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ferry-tag { padding: 5px 9px; border-radius: 20px; background: #eef7f2; color: #276044; font-size: 12px; font-weight: 650; }
.ferry-card-pricing { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ferry-price-original { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.ferry-price-final { color: var(--brand); font-size: 21px; font-weight: 800; }
.ferry-price-note { margin-top: 2px; color: var(--muted); font-size: 12px; }
.ferry-card-btn { margin-top: 15px; }
.ferry-empty-state, .ferry-alert { margin: 0; padding: 42px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.ferry-empty-icon { margin-bottom: 10px; font-size: 36px; }
.ferry-empty-state h2 { margin: 0 0 8px; font-size: 28px; }
.ferry-empty-state p { margin: 0; color: var(--muted); }
.ferry-alert { margin-bottom: 16px; padding: 14px 18px; text-align: left; }

@media (max-width: 850px) {
  .ferry-strip-form { grid-template-columns: 1fr 42px 1fr; }
  .ferry-strip-pax { grid-column: 1 / 2; }
  .ferry-strip-submit { grid-column: 2 / -1; }
  .ferry-card { grid-template-columns: 1fr 1fr; }
  .ferry-card-pricing { grid-column: 1 / -1; align-items: flex-start; text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
}

@media (max-width: 540px) {
  .ferry-search-strip { padding: 40px 0 32px; min-height: 0; }
  .ferry-strip-form { grid-template-columns: 1fr; }
  .ferry-swap-btn, .ferry-strip-pax, .ferry-strip-submit { grid-column: auto; }
  .ferry-swap-btn { justify-self: center; transform: rotate(90deg); }
  .ferry-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .ferry-card-pricing { grid-column: auto; }
  .ferry-results-page { padding-top: 28px; padding-bottom: 64px; }
}
