/* Traveler.is landing — Travelik template visual system */

:root {
  --ink: #122327;
  --ink-soft: #1c2d31;
  --muted: #909da1;
  --paper: #edf5f6;
  --paper-2: #d6eef3;
  --foam: #f8fbfc;
  --line: rgba(18, 35, 39, 0.12);
  --accent: #0cb2db;
  --accent-deep: #0896b8;
  --glow: #0cb2db;
  --sand: #c4a574;
  --shadow: 0 18px 50px rgba(18, 35, 39, 0.18);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-script: "Satisfy", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 90rem;
  --header-h: 5.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.traveler-site {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: clip;
}

a { color: var(--accent-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.site-main { min-height: 50vh; }

/* ---- Travelik header (adapted) ---- */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(28, 45, 49, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}

.site-header-bar .header-wrap { min-height: 3.25rem; }

.header-logo .brand-text,
.site-footer-bar .brand-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.header-logo .brand-text span,
.site-footer-bar .brand-text span { color: var(--accent); }

.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}
.header-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.header-menu a:hover { color: var(--accent); }

.header-right-wrapper { display: flex; align-items: center; }
.header-btn a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.35rem;
  border-radius: 2rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.header-btn a:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ---- Hero (Travelik classic vibe) ---- */
.hero-section-traveler {
  position: relative;
  min-height: min(92vh, 54rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=2400&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 22s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(18, 35, 39, 0.88) 0%, rgba(18, 35, 39, 0.45) 48%, rgba(28, 45, 49, 0.72) 100%);
}

.hero-inner {
  width: min(100%, 90rem);
  padding: clamp(5rem, 14vh, 8rem) 1.25rem clamp(2.75rem, 7vh, 4.25rem);
}

.hero-eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-transform: uppercase;
  animation: riseIn 0.9s var(--ease) 0.06s both;
}
.hero-brand span { color: var(--accent); }

.hero-lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.search-bar {
  display: flex;
  gap: 0.55rem;
  max-width: 36rem;
  animation: riseIn 0.9s var(--ease) 0.18s both;
}
.search-field { position: relative; flex: 1; min-width: 0; }
.search-bar input {
  width: 100%;
  border: 0;
  border-radius: 2rem;
  padding: 0.95rem 1.25rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search-bar input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-btn-cyan {
  border: 0;
  border-radius: 2rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-btn-cyan:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  max-height: 22rem;
  overflow: auto;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 0.35rem;
}
.search-suggest[hidden] { display: none; }
.search-suggest__item {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.search-suggest__item:hover,
.search-suggest__item.is-active { background: rgba(12, 178, 219, 0.1); }
.search-suggest__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.search-suggest__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.search-suggest__empty {
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Stories / sections ---- */
.stories-section,
.panel {
  width: min(100%, 90rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}

.section-title {
  margin-bottom: 1.75rem;
}
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.section-title h2 span {
  font-family: var(--font-script);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 1.1rem;
  border-radius: 2rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
  position: relative;
  top: -0.55rem;
  letter-spacing: 0.08em;
}
.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.panel-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.story-grid {
  display: grid;
  gap: 0.85rem;
}

.story-card,
.story-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(18, 35, 39, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.story-card:hover,
.story-row:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 178, 219, 0.45);
  box-shadow: 0 18px 40px rgba(18, 35, 39, 0.12);
  color: inherit;
}

.story-card__index,
.story-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.story-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.story-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
}
.story-summary {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48rem;
}
.story-card__go {
  color: var(--accent);
  align-self: center;
  font-size: 1.1rem;
}
.empty { color: var(--muted); padding: 1rem 0 0; }

/* ---- Profile / trip / invite ---- */
.page-hero {
  width: min(100%, 90rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4rem) 1.25rem 1.25rem;
  animation: riseIn 0.7s var(--ease) both;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.page-hero .lede {
  margin: 0 0 0.75rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}
.page-hero .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-block + .section-block { margin-top: 2.25rem; }

.story-list {
  display: grid;
  gap: 0.85rem;
}

.itinerary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: stop;
}
.itinerary li {
  counter-increment: stop;
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.itinerary li::before {
  content: counter(stop, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}
.itinerary strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.photo-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-rail a,
.photo-rail span {
  display: block;
  padding: 1rem;
  min-height: 6.5rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(12, 178, 219, 0.12), rgba(28, 45, 49, 0.08)), #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.photo-rail a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.invite-card {
  width: min(100%, 28rem);
  margin: 1rem auto 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.invite-card label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.invite-card input {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--foam);
}
.invite-card button {
  width: 100%;
  border: 0;
  border-radius: 2rem;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.invite-card button:hover { background: var(--accent-deep); }

/* ---- Footer ---- */
.site-footer-bar {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
}
.site-footer-bar .footer-top {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer-bar .footer-top p { margin: 0; max-width: 28rem; }
.site-footer-bar .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.footer-meta { color: var(--accent); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .hero-eyebrow, .hero-brand, .hero-lede, .search-bar, .page-hero { animation: none; }
}

@media (max-width: 575.98px) {
  .search-bar { flex-direction: column; }
  .theme-btn-cyan { width: 100%; }
  .story-card { grid-template-columns: auto 1fr; }
  .story-card__go { display: none; }
}
