:root {
  --color-bg: #fff7e8;
  --color-surface: #ffffff;
  --color-surface-soft: #fff0d5;
  --color-border: #ffd69c;
  --color-text: #311423;
  --color-text-muted: #6b4158;
  --color-primary: #ff6b35;
  --color-primary-strong: #d9480f;
  --color-accent: #00b894;
  --color-danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 20px;
  --space-5: 28px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top right, rgba(255, 107, 53, 0.18), transparent 45%),
              radial-gradient(circle at 18% 20%, rgba(0, 184, 148, 0.16), transparent 40%),
              var(--color-bg);
  line-height: 1.5;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  background: linear-gradient(90deg, #00b894, #ffd166 45%, #ff6b35 90%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.brand { font-weight: 800; letter-spacing: .2px; font-size: 1.15rem; }

.topbar nav,
.topbar-actions,
.user-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.sub { color: var(--color-text-muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #b8c8df; }
.card .title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.excursion-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
  background: #fff4e3;
}

.btn,
.link-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn,
.link-btn {
  color: #fff;
  background: linear-gradient(180deg, #ff8f5a, var(--color-primary));
}

.btn.ghost,
.link-btn.ghost {
  color: var(--color-primary-strong);
  background: #fff9f0;
  border: 1px solid #ffc67f;
}

.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.pill,
.tag {
  background: #fff2e0;
  color: var(--color-primary-strong);
  border: 1px solid #ffcf9a;
  border-radius: 999px;
  font-size: .8rem;
  padding: 2px 8px;
  display: inline-block;
}

.toolbar,
.section-header,
.stack-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hidden { display: none !important; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.star { cursor: pointer; font-size: 1.25rem; color: #c7d2e2; }
.star.on { color: #f59e0b; }
.favorite { cursor: pointer; color: #9aa8bc; font-size: 1.2rem; }
.favorite.on { color: var(--color-danger); }
.comment { min-width: 220px; }

.user-chip {
  background: #ffe8c8;
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: .9rem;
}
.user-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary-strong); }

.page-hero,
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.ship-list { list-style: none; padding-left: 0; }
.ship-list li { margin: 10px 0; padding-left: 30px; position: relative; }
.ship-list li::before { content: "🚢"; position: absolute; left: 0; top: 0; }

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  background: #fffdfa;
}
.table th, .table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.alert-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.alert { border-radius: var(--radius-sm); padding: 10px 12px; border: 1px solid var(--color-border); background: #fff4e3; }
.alert.error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert.success { background: #ecfdf5; border-color: #bbf7d0; color: #14532d; }
.form-field { display: grid; gap: 6px; margin-bottom: 10px; }
.site-footer { margin-top: 24px; padding-bottom: 24px; }
.site-footer .container { margin-top: 0; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; }
  .container { width: min(1200px, calc(100% - 20px)); }
  .comment { min-width: 100%; }
}
