/* PortCrowds ship pages — loaded after style.css on ship pages only.
   Uses the site palette variables defined in style.css :root. */

.ship-specs, .ship-map, .ship-itin, .ship-deck, .ship-data {
  margin: 2.2rem 0;
}
.ship-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 0;
}
.ship-dl > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.ship-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ship-dl dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.ship-src {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.ship-lead, .ship-note {
  color: var(--muted);
  max-width: 65ch;
}
.ship-map-img, .ship-deck-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
}
.ship-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  padding: 0;
  margin: 0.9rem 0 0.3rem;
}
.ship-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}
.ship-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  flex: none;
}
.ship-small {
  font-size: 0.8rem;
  color: var(--muted);
}
.ship-sailings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.ship-sailing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.ship-sailing h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}
.t2-badge {
  display: inline-block;
  background: #fdf3d8;
  color: #7a5b00;
  border: 1px solid #ecd27a;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.ship-route {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ship-route li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  padding: 0.42rem 0;
  border-top: 1px dashed var(--line);
}
.ship-route li:first-child {
  border-top: none;
}
.ship-when {
  color: var(--muted);
  font-size: 0.88rem;
}
.ship-port {
  font-weight: 600;
  text-align: right;
}
.ship-sea .ship-port {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}
.ship-deck-link {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
}
.ship-deck-link:hover {
  background: var(--teal-dark);
}
.ship-deck-name {
  font-weight: 700;
  color: var(--ink);
  margin: 1.1rem 0 0.4rem;
}
.ship-index-group {
  margin: 2rem 0;
}
.ship-index-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem 1.4rem;
}
.ship-index-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}
.ship-index-list a {
  font-weight: 700;
}
.ship-index-meta {
  color: var(--muted);
  font-size: 0.98rem;
  text-align: right;
  white-space: nowrap;
}

/* /ships/ index name filter */
.ship-filter-row input {
  width: 100%;
  max-width: 540px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  color: var(--ink, #14232e);
  background: #fff;
  border: 1px solid #b9cdd6;
  border-radius: 10px;
}

/* Cabins & staterooms table (ships with official fact-sheet data) */
.cabins-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.cabins-table th, .cabins-table td { padding: .4rem .6rem; border-bottom: 1px solid #dbe7eb; text-align: left; }
.cabins-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cabins-table tr.cabins-fam td { background: #eef6f7; font-weight: 700; border-bottom: 1px solid #bcd8dd; }
.cabins-table tr.cabins-total td { font-weight: 700; border-top: 2px solid #7fb3ba; }

/* Common questions (FAQ) block on ship pages */
.ship-faq { margin-top: 2rem; }

/* Cruise-line logo chips on the /ships/ index group headers (2026-11-06) */
.ship-index-group h2 { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.line-logo-chip { display:inline-flex; align-items:center; background:#fff; border:1px solid #dbe4ea; border-radius:9px; padding:.45rem .7rem; }
.line-logo-chip img { height:36px; width:auto; max-width:180px; object-fit:contain; display:block; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.line-logo-chip { flex:none; }
