/* ============================================================
   travels.luckycommons.com — Shared Design System
   Based on parislondon2026/assets/styles.css
   Extended for multi-trip central app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:          #FBF6EC;
  --bg-raised:   #F3EAD6;
  --bg-inset:    #EDE5CF;

  /* Type */
  --ink:         #241F1B;
  --ink-soft:    #6B6156;
  --ink-faint:   #A69C89;

  /* Rules */
  --rule:        #E6DCC8;
  --rule-strong: #D6C7A8;

  /* Brand */
  --navy:        #1D4E89;
  --brass:       #D9A441;
  --brass-dark:  #B8842E;

  /* City */
  --paris:       #E1512B;
  --paris-soft:  #FBE3DA;
  --london:      #1D4E89;
  --london-soft: #DCE6F2;
  --toronto:     #1B7A5C;
  --toronto-soft:#DCEDE3;
  --travel:      #B8842E;
  --travel-soft: #F3E4C4;

  /* Tokyo / KL / Singapore (asia-2026-27) */
  --tokyo:       #C0392B;
  --tokyo-soft:  #F9DFDB;
  --kuala-lumpur:#8E44AD;
  --kuala-lumpur-soft: #F0E5F9;
  --singapore:   #16A085;
  --singapore-soft: #D5F0EB;

  /* Typography */
  --display: 'Big Shoulders Display', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'Space Mono', monospace;

  /* Layout */
  --max-w:   920px;
  --radius:  6px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(36,31,27,0.08), 0 1px 2px rgba(36,31,27,0.06);
  --shadow-md: 0 4px 12px rgba(36,31,27,0.10), 0 2px 6px rgba(36,31,27,0.06);
  --shadow-lg: 0 8px 24px rgba(36,31,27,0.12), 0 4px 10px rgba(36,31,27,0.08);
}

/* ── Reset ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ──────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1.5px solid var(--rule-strong);
  padding: 0 1rem;
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 52px;
}

.site-nav__wordmark {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__wordmark span { color: var(--brass-dark); }

.site-nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex: 1;
}

.site-nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav__links a:hover,
.site-nav__links a.active { color: var(--ink); }

.site-nav__trip-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  white-space: nowrap;
}

/* ── Page wrap ──────────────────────────────────────────────────── */

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ── Section headings ─────────────────────────────────────────────── */

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h1,
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-head h1 { font-size: 2.4rem; }
.section-head h2 { font-size: 1.8rem; }

.section-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
  display: block;
}

/* ── Tabs ──────────────────────────────────────────────────── */

.tab-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 2rem;
}

.tab-btn {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── Trip card (homepage) ───────────────────────────────────────────── */

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trip-card {
  background: var(--bg-raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.trip-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  align-self: flex-start;
}

.trip-card__status.planning { background: var(--travel-soft); color: var(--travel); }
.trip-card__status.active   { background: #DCFCE7; color: #166534; }
.trip-card__status.complete { background: var(--bg-inset); color: var(--ink-faint); }

.trip-card__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.trip-card__status.active::before { animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.trip-card__title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.trip-card__dates {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.trip-card__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.city-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.city-pill.paris    { background: var(--paris-soft);   color: var(--paris); }
.city-pill.london   { background: var(--london-soft);  color: var(--london); }
.city-pill.toronto  { background: var(--toronto-soft); color: var(--toronto); }
.city-pill.travel   { background: var(--travel-soft);  color: var(--travel); }
.city-pill.tokyo    { background: var(--tokyo-soft);   color: var(--tokyo); }
.city-pill.kuala-lumpur   { background: var(--kuala-lumpur-soft);  color: var(--kuala-lumpur); }
.city-pill.singapore { background: var(--singapore-soft); color: var(--singapore); }

.trip-card__travelers {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

/* ── Day cards (trip view) ───────────────────────────────────────────── */

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.day-card {
  background: var(--bg-raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transform: rotate(-0.5deg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.day-card:nth-child(even) { transform: rotate(0.4deg); }

.day-card:hover {
  box-shadow: var(--shadow-md);
  transform: rotate(0deg) translateY(-2px);
  text-decoration: none;
}

.day-card.is-travel { background: var(--travel-soft); }
.day-card.paris     { border-left: 3px solid var(--paris); }
.day-card.london    { border-left: 3px solid var(--london); }
.day-card.toronto   { border-left: 3px solid var(--toronto); }
.day-card.tokyo     { border-left: 3px solid var(--tokyo); }
.day-card.kuala-lumpur  { border-left: 3px solid var(--kuala-lumpur); }
.day-card.singapore { border-left: 3px solid var(--singapore); }

.day-card__weekday {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.day-card__date {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.15rem 0;
}

.day-card__kicker {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.day-card__events {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ── Events timeline (day view) ───────────────────────────────────────── */

.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 4.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1.5px;
  background: var(--rule);
}

.event-row {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
  position: relative;
}

.event-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  width: 4rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
  text-align: right;
}

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--rule-strong);
  flex-shrink: 0;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}

.event-content {
  flex: 1;
}

.event-title {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

.event-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ── Restaurant cards ──────────────────────────────────────────────── */

.rest-list-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rest-row {
  background: var(--bg-raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rest-row.reserved { border-left: 3px solid var(--brass-dark); }
.rest-row.cancelled { opacity: 0.5; }

.rest-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  min-width: 2rem;
  padding-top: 0.1rem;
}

.rest-info { flex: 1; }

.rest-name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.rest-addr {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.rest-visit {
  font-size: 0.78rem;
  color: var(--brass-dark);
  font-weight: 500;
  margin-top: 0.3rem;
}

.rest-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.rest-link {
  font-size: 0.72rem;
  color: var(--navy);
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}

.rest-link:hover { background: var(--bg-inset); text-decoration: none; }

/* ── Activity cards ────────────────────────────────────────────────── */

.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.act-card {
  background: var(--bg-raised);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.act-card.planned { border-left: 3px solid var(--navy); }

.act-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.act-addr, .act-hours, .act-fee {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.act-fee { color: var(--ink); font-weight: 500; }

.act-facts {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.act-fact {
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.6rem;
  background: var(--bg-inset);
  border-radius: 4px;
  line-height: 1.4;
}

.act-fact-label {
  font-weight: 600;
  color: var(--ink);
  margin-right: 0.25rem;
}

/* ── Badges / pills ──────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  vertical-align: middle;
}

.badge-reserved  { background: var(--travel-soft); color: var(--travel); }
.badge-planned   { background: var(--london-soft); color: var(--london); }
.badge-cancelled { background: var(--bg-inset); color: var(--ink-faint); }

/* ── Filter bar ──────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-btn {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--rule);
  border-radius: 99px;
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--rule-strong); color: var(--ink); }

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.filter-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-left: auto;
}

/* ── Loading / empty states ──────────────────────────────────────────── */

.loading-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-faint);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--rule);
  border-top-color: var(--brass-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1.5px solid var(--rule);
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-nav__links { display: none; }
  .section-head h1 { font-size: 1.8rem; }
  .days-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .events-timeline::before { left: 3.5rem; }
  .event-time { width: 3rem; font-size: 0.65rem; }
  .trip-grid { grid-template-columns: 1fr; }
}
