/* Dynamic content styles — only for API-loaded sections */

/* Vessel cards (loaded by loadVessels) */
.fleet-grid .card {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, rgba(31,44,67,0.09));
  border-radius: var(--r-lg, 24px);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.fleet-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(31,44,67,0.10);
  border-color: var(--border-2, rgba(31,44,67,0.16));
}
.card__img {
  aspect-ratio: 4/3;
  background: var(--bg-card, #E8EEF4);
  overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
}
.card__title {
  font-size: 0.92rem; font-weight: 700;
  color: var(--accent, #1F2C43); margin-bottom: 4px;
}
.card__text {
  font-size: 0.76rem; color: var(--text-2, #4B5563);
  margin-bottom: auto; padding-bottom: 12px;
}
.card__btn {
  display: block; padding: 10px 0; text-align: center;
  background: var(--accent, #1F2C43); color: #fff;
  border-radius: var(--r-sm, 10px);
  font-size: 0.78rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.16s;
}
.card__btn:hover { opacity: 0.85; }

/* Schedule board (loaded by loadSchedules) */
.board-row {
  display: grid;
  grid-template-columns: 55px 1.5fr 80px 90px 85px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(31,44,67,0.05);
  gap: 12px;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: rgba(31,44,67,0.02); }
.b-time { font-size: 0.95rem; font-weight: 700; color: var(--accent, #1F2C43); }
.b-vessel-name { font-weight: 600; font-size: 0.82rem; color: var(--accent, #1F2C43); }
.b-vessel-type { font-size: 0.68rem; color: var(--text-3, #9CA3AF); }
.b-duration { font-size: 0.75rem; color: var(--text-2, #4B5563); }
.b-seats { display: flex; flex-direction: column; gap: 3px; }
.b-seats-bar { height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; }
.b-seats-fill { height: 100%; border-radius: 2px; }
.b-seats-fill.many { background: #22c55e; }
.b-seats-fill.few { background: #f59e0b; }
.b-seats-fill.last { background: #ef4444; }
.b-seats-label { font-size: 0.68rem; font-weight: 700; }
.b-seats-label.many { color: #15803d; }
.b-seats-label.few { color: #b45309; }
.b-seats-label.last { color: #b91c1c; }
.b-action { text-align: right; }
.btn-ticket {
  display: inline-block; padding: 7px 16px;
  background: var(--accent, #1F2C43); color: #fff;
  border-radius: 9999px;
  font-size: 0.73rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.16s;
  box-shadow: 0 1px 4px rgba(31,44,67,0.2);
}
.btn-ticket:hover { opacity: 0.85; }

/* Route cards (loaded by loadRoutes) */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Social link icons */
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(31,44,67,0.06); border: 1px solid var(--border, rgba(31,44,67,0.09));
  border-radius: var(--r-sm, 10px);
  color: var(--text-2, #4B5563);
  text-decoration: none; transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Empty state */
.empty-state { text-align: center; color: var(--text-3, #9CA3AF); padding: 2rem; font-size: 0.82rem; }

/* Mobile */
@media (max-width: 768px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .board-row { grid-template-columns: 50px 1fr 80px; }
  .board-row .b-duration, .board-row .b-seats { display: none; }
  .routes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .routes-grid { grid-template-columns: 1fr; }
}
