/* ============================================================
   SAILORY — layout & screen styles
   ============================================================ */

/* ── Header ─────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 200;
  background: var(--ink-deep);
  color: #fff;
}
.hdr-inner {
  max-width: 1240px; margin: 0 auto; height: var(--header-h);
  padding: 0 1.5rem; display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; user-select: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; line-height: 1;
}
.hdr-nav { display: flex; gap: 0.25rem; margin-left: 0.5rem; }
.hdr-nav a {
  font-size: 0.86rem; font-weight: 500; color: rgba(255,255,255,0.7);
  text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 7px; cursor: pointer;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.hdr-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.hdr-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.curr-group { display: flex; background: rgba(255,255,255,0.08); border-radius: 8px; padding: 2px; }
.curr-group button {
  background: none; border: none; color: rgba(255,255,255,0.6); font: inherit;
  font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 6px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.curr-group button.active { background: rgba(255,255,255,0.18); color: #fff; }
.icon-btn {
  position: relative; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.18); }
.notif-dot {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--signal); color: #fff; font-size: 0.62rem; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink-deep);
}

/* notification dropdown */
.notif-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px;
  background: var(--surface); color: var(--text); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 400; border: 1px solid var(--border);
}
.notif-pop-head { padding: 0.85rem 1.1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.notif-pop-head h4 { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.notif-row { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; transition: background 0.12s; }
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.unread { border-left: 3px solid var(--signal); }
.notif-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--positive-100); color: var(--positive); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-ic.up { background: var(--signal-100); color: var(--signal); }
.notif-txt { font-size: 0.84rem; line-height: 1.4; }
.notif-time { font-size: 0.72rem; color: var(--faint); margin-top: 0.15rem; font-family: var(--font-mono); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,28,46,0.42) 0%, rgba(13,28,46,0.62) 60%, rgba(13,28,46,0.92) 100%);
}
.hero-inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem; text-align: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.95;
  letter-spacing: 0.01em; text-transform: uppercase; margin: 0.6rem 0 0.5rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.8rem; line-height: 1.5; }
.hero-search {
  display: flex; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 13px;
  padding: 5px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); align-items: center;
}
.hero-search input {
  flex: 1; border: none; outline: none; background: none; font: inherit; font-size: 1rem;
  color: var(--text); padding: 0.7rem 0.4rem 0.7rem 1rem;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { border-radius: 9px; padding: 0.7rem 1.3rem; }
.hero-stats { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-stat { text-align: center; }
.hero-stat b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; }
.hero-stat span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); font-family: var(--font-mono); }

/* ── Section heading ───────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sec-title { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; }
.sec-coord { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.04em; }

/* ── Filter bar ────────────────────────────────────────── */
.filterbar { position: sticky; top: var(--header-h); z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 var(--border); }
.filterbar-inner { max-width: 1240px; margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.line-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 0.38rem 0.7rem; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all 0.13s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-sep { width: 1px; height: 24px; background: var(--border); margin: 0 0.2rem; }
.filterbar .field { width: auto; padding: 0.45rem 0.7rem; font-size: 0.84rem; }
.filterbar select.field { padding-right: 1.9rem; }
.filter-clear { font-size: 0.82rem; color: var(--muted); background: none; border: none; cursor: pointer; font-weight: 600; padding: 0.4rem 0.6rem; border-radius: 7px; }
.filter-clear:hover { color: var(--signal); }

/* ── Results header ────────────────────────────────────── */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 1rem; flex-wrap: wrap; }
.results-count { font-size: 0.9rem; color: var(--muted); }
.results-count b { color: var(--text); font-weight: 700; }

/* ── Cruise grid ───────────────────────────────────────── */
.cruise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding-bottom: 4rem; }
@media (max-width: 980px) { .cruise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cruise-grid { grid-template-columns: 1fr; } }

.ccard {
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; box-shadow: var(--shadow);
}
.ccard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.ccard-img { height: 188px; position: relative; }
.ccard-nights { position: absolute; top: 12px; left: 12px; background: var(--ink-deep); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 7px; white-space: nowrap; }
.ccard-save { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(13,28,46,0.5); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background 0.15s, transform 0.15s; }
.ccard-save:hover { background: var(--signal); }
.ccard-save.on { background: var(--signal); }
.ccard-save.on svg { animation: floatUp 0.3s ease; }
.ccard-line { position: absolute; bottom: 12px; left: 12px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.35); padding: 0.2rem 0.5rem; border-radius: 5px; backdrop-filter: blur(4px); }
.ccard-body { padding: 1rem 1.1rem 0.6rem; flex: 1; }
.ccard-title { font-weight: 700; font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.ccard-ship { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.7rem; }
.ccard-meta { display: flex; gap: 0.9rem; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.7rem; }
.ccard-meta span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.ccard-ports { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.port-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.02em; color: var(--sea-700); background: var(--sea-100); padding: 0.18rem 0.45rem; border-radius: 5px; }
.ccard-foot { padding: 0.85rem 1.1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ccard-from { font-size: 0.72rem; color: var(--faint); }
.ccard-from b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.ccard-savings { font-size: 0.72rem; color: var(--positive); font-weight: 700; text-align: right; }
.ccard-savings span { display: block; font-size: 0.66rem; color: var(--muted); font-weight: 500; }

/* ── Price comparison block ────────────────────────────── */
.pcompare {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 0.6rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 0.7rem 0.9rem;
}
.pcompare[data-big] { padding: 1.1rem 1.3rem; gap: 1rem; border-radius: var(--r-lg); }
.pcompare-col { min-width: 0; }
.pcompare-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-family: var(--font-mono); margin-bottom: 0.15rem; }
.pcompare-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.pcompare[data-big] .pcompare-price { font-size: 2rem; }
.pcompare-indie .pcompare-price { color: var(--text); }
.pcompare-prov { font-size: 0.68rem; color: var(--muted); }
.pcompare-arrow { color: var(--faint); display: flex; }
.pcompare-save { text-align: center; background: var(--positive-100); border-radius: var(--r); padding: 0.5rem 0.7rem; }
.pcompare[data-big] .pcompare-save { padding: 0.7rem 1.1rem; }
.pcompare-save-amt { font-family: var(--font-display); font-weight: 700; color: var(--positive); font-size: 1.15rem; letter-spacing: 0.01em; }
.pcompare[data-big] .pcompare-save-amt { font-size: 1.6rem; }
.pcompare-save-pct { font-size: 0.66rem; color: var(--positive); font-weight: 600; }
@media (max-width: 560px) {
  .pcompare { grid-template-columns: 1fr 1fr; }
  .pcompare-arrow { display: none; }
  .pcompare-save { grid-column: 1 / -1; }
}

/* ── Empty state ───────────────────────────────────────── */
.empty { text-align: center; padding: 4rem 1rem; }
.empty-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--faint); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.empty h3 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.empty p { color: var(--muted); margin-bottom: 1.2rem; }

/* ── Footer ────────────────────────────────────────────── */
.ftr { background: var(--ink-deepest); color: rgba(255,255,255,0.7); margin-top: 2rem; }
.ftr-inner { max-width: 1240px; margin: 0 auto; padding: 2.6rem 1.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .ftr-inner { grid-template-columns: 1fr 1fr; } }
.ftr h5 { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.45); margin-bottom: 0.8rem; }
.ftr a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.86rem; padding: 0.2rem 0; cursor: pointer; }
.ftr a:hover { color: #fff; }
.ftr-brand .brand-name { font-size: 1.6rem; }
.ftr-tag { font-size: 0.86rem; line-height: 1.5; margin-top: 0.7rem; max-width: 280px; }
.ftr-bot { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.1rem 1.5rem; font-size: 0.76rem; color: rgba(255,255,255,0.4); text-align: center; }
