/* Out and Away: deep black navy, rich purple, ocean teal, restrained champagne gold. */
:root {
  --bg: #070a16;
  --surface: #0d1328;
  --surface-2: #131b3a;
  --ink: #f4f1fb;
  --muted: #b9b3d6;
  --faint: #7e78a0;
  --purple: #5b2a7b;
  --purple-lt: #9a6bc4;
  --teal: #006e96;
  --teal-lt: #35a8cc;
  --gold: #d9b96a;
  --gold-lt: #eed9a4;
  --line: rgba(154, 107, 196, 0.22);
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-lt); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: linear-gradient(180deg, #0b1024 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 6px;
}
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.brand p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: thin;
}
.tabs a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.tabs a.active {
  background: var(--purple);
  border-color: var(--purple-lt);
  color: #fff;
}

/* Generic */
h2.section-title {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.6rem;
  margin: 28px 0 6px;
}
.section-sub { color: var(--muted); margin: 0 0 18px; max-width: 640px; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #0a7fae; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.gold { background: linear-gradient(135deg, var(--gold), #b98f3e); color: #1a1206; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 2px 4px 2px 0;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 110, 150, 0.25);
  border: 1px solid rgba(53, 168, 204, 0.5);
  color: #bfe6f5;
}
.badge.hosted {
  background: rgba(217, 185, 106, 0.16);
  border-color: rgba(217, 185, 106, 0.65);
  color: var(--gold-lt);
}
.badge.date {
  background: rgba(7, 10, 22, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

/* Hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.hero img { width: 100%; height: 340px; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 22, 0.92));
}
.hero-overlay h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0;
  font-weight: normal;
}
.hero-overlay p { margin: 4px 0 0; color: var(--gold-lt); letter-spacing: 0.06em; }
.hero-intro { color: var(--muted); max-width: 640px; margin: 16px 0 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin: 18px 0 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.hosted { border-color: rgba(217, 185, 106, 0.55); }
.card-img { position: relative; }
.card-img img { width: 100%; height: 180px; object-fit: cover; background: var(--surface-2); }
.card-img .badge.date { position: absolute; left: 10px; bottom: 10px; }
.card-img .badge.hosted { position: absolute; right: 10px; top: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: var(--serif); font-weight: normal; font-size: 1.15rem; margin: 0; }
.card-meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.card-desc { color: var(--muted); font-size: 0.92rem; margin: 0; }
.card-ports { color: var(--faint); font-size: 0.82rem; margin: 0; }
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.heart {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.1rem;
  width: 40px;
  height: 38px;
  cursor: pointer;
}
.heart.on { color: #ff7ab8; border-color: #ff7ab8; }
.compare-toggle { color: var(--muted); font-size: 0.85rem; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.details-link { margin-left: auto; }

/* Filters */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.filters input[type="search"], .filters select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.95rem;
}
.filters input[type="search"] { flex: 1 1 200px; }
.filters label.check { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.result-count { color: var(--faint); font-size: 0.9rem; margin: 12px 0; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* Detail */
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.detail-hero img { width: 100%; height: 300px; object-fit: cover; }
.back-link { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; }
.detail h2 { font-family: var(--serif); font-weight: normal; font-size: 2rem; margin: 14px 0 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
@media (min-width: 760px) { .detail-grid.two { grid-template-columns: 1.4fr 1fr; } }
.detail h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.25rem;
  color: var(--gold-lt);
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.detail p { color: #d9d5ec; }
.detail ul { margin: 6px 0 0; padding-left: 20px; color: #d9d5ec; }
.detail li { margin-bottom: 6px; }
.carlos-note {
  background: rgba(91, 42, 123, 0.18);
  border-left: 3px solid var(--purple-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
}
.carlos-note p { margin: 0; font-style: italic; }
.carlos-note .by { display: block; margin-top: 8px; font-style: normal; color: var(--muted); font-size: 0.85rem; }
.itinerary li::marker { color: var(--teal-lt); }
.overnight-star { color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; }

/* Calendar */
.cal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.cal-controls select, .cal-controls button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}
.cal-title { font-family: var(--serif); font-size: 1.5rem; margin: 0 6px; min-width: 200px; text-align: center; }
.cal-legend { display: flex; gap: 16px; color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; flex-wrap: wrap; }
.cal-legend .swatch { display: inline-block; width: 26px; height: 12px; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.cal-week { border-bottom: 1px solid var(--line); }
.cal-week:last-child { border-bottom: none; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { background: var(--surface-2); }
.cal-dow div { padding: 8px 4px; text-align: center; font-size: 0.75rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.cal-day {
  min-height: 34px;
  border-right: 1px solid rgba(154, 107, 196, 0.1);
  padding: 4px 6px;
  font-size: 0.8rem;
  color: var(--faint);
}
.cal-day:last-child { border-right: none; }
.cal-day.dim { opacity: 0.35; }
.cal-day.today .dnum {
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-lanes { position: relative; padding: 4px 0 6px; }
.cal-bar {
  position: absolute;
  height: 24px;
  border-radius: 7px;
  background: rgba(0, 110, 150, 0.55);
  border: 1px solid rgba(53, 168, 204, 0.6);
  color: #eaf6fc;
  font-size: 0.72rem;
  line-height: 22px;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
}
.cal-bar.hosted {
  background: linear-gradient(135deg, rgba(217, 185, 106, 0.85), rgba(185, 143, 62, 0.85));
  border-color: var(--gold-lt);
  color: #1a1206;
  font-weight: 600;
}

/* Compare */
.compare-table-wrap { overflow-x: auto; margin: 16px 0 40px; }
.compare-table { border-collapse: collapse; min-width: 560px; width: 100%; }
.compare-table th, .compare-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  font-size: 0.9rem;
  text-align: left;
}
.compare-table th { background: var(--surface-2); font-family: var(--serif); font-weight: normal; }
.compare-table td.rowlabel { color: var(--muted); background: var(--surface); white-space: nowrap; }
.compare-table ul { margin: 0; padding-left: 18px; }

/* Read */
.edition-card, .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.edition-card h3, .article-card h3 { font-family: var(--serif); font-weight: normal; margin: 0 0 6px; font-size: 1.2rem; }
.edition-card p, .article-card p { color: var(--muted); margin: 6px 0 10px; }
.article-body p { color: #d9d5ec; }

/* Forms */
.field { margin: 12px 0; }
.field input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 1rem;
  width: 100%;
  max-width: 340px;
}
.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
  background: rgba(0, 110, 150, 0.14);
  border: 1px solid rgba(53, 168, 204, 0.4);
}
.notice.gold {
  background: rgba(217, 185, 106, 0.1);
  border-color: rgba(217, 185, 106, 0.5);
}
.notice.error {
  background: rgba(200, 60, 80, 0.12);
  border-color: rgba(200, 60, 80, 0.5);
}

/* Today */
.today-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--ink);
}
.today-row .when { color: var(--teal-lt); font-size: 0.85rem; white-space: nowrap; }
.today-row h4 { margin: 0; font-family: var(--serif); font-weight: normal; }

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 18px 0 40px;
  text-align: center;
}
.contact-card .big { font-size: 1.3rem; margin: 10px 0; }
.contact-card .big a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--teal-lt); }
.tagline { color: var(--gold-lt); font-family: var(--serif); font-size: 1.15rem; margin-top: 18px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 22px 0 60px;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
}
