/* ───────────────────────────────────────────────────────────────
   YouTravel.me — Colors & Type Tokens
   Foundation tokens for the brand. Import this into any artifact.
   ─────────────────────────────────────────────────────────────── */

/* Type — SF Pro is the brand system, loaded from local font files. */
@font-face { font-family: "SF Pro Display"; src: url("./assets/fonts/SF-Pro-Display-Regular.otf")    format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("./assets/fonts/SF-Pro-Display-Semibold.otf")   format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("./assets/fonts/SF-Pro-Display-Bold.otf")       format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "SF Pro Text"; src: url("./assets/fonts/SF-Pro-Text-Regular.otf")    format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Text"; src: url("./assets/fonts/SF-Pro-Text-Semibold.otf")   format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Text"; src: url("./assets/fonts/SF-Pro-Text-Bold.otf")       format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ────── Brand color ────── */
  --yt-purple-50:  #F4ECFA;
  --yt-purple-100: #E4CCF3;
  --yt-purple-300: #B772D4;
  --yt-purple-500: #8600EF;   /* electric purple — accents, active state */
  --yt-purple-600: #771F96;   /* primary brand purple — wordmark, CTAs */
  --yt-purple-700: #5D16B9;
  --yt-purple-800: #4A0E92;
  --yt-purple-grad-from: #7D20B8;
  --yt-purple-grad-to:   #5D16B9;

  /* ────── Citron (the lime mark) ────── */
  --yt-citron-50:  #F2F7E5;
  --yt-citron-100: #E8F1CC;
  --yt-citron-200: #D9E8A4;
  --yt-citron-300: #C6D97A;
  --yt-citron-400: #B2C850;
  --yt-citron-500: #ABC232;   /* tag fills, success */
  --yt-citron-600: #9DB319;   /* base */
  --yt-citron-700: #7FA40C;
  --yt-citron-800: #647300;
  --yt-citron-mark: #B0CB1F;  /* the iconic logo triangle */

  /* ────── Neutrals (dark to light) ────── */
  --yt-ink:        #121212;   /* deepest ink, used on captions */
  --yt-ink-2:      #222222;   /* badge text */
  --yt-fg-1:       #242A37;   /* primary text — used everywhere */
  --yt-fg-2:       #727281;   /* secondary text */
  --yt-fg-3:       #828296;   /* tertiary / labels */
  --yt-fg-4:       #9999A9;   /* placeholder / disabled */
  --yt-fg-5:       #B6B6BF;   /* very soft, chrome */
  --yt-bd-strong:  #D7DBE2;   /* strong borders */
  --yt-bd:         #DBDFE9;   /* default border */
  --yt-bd-soft:    #E2E6EC;   /* soft separator */
  --yt-bg-soft:    #EBEEF4;   /* subtle wash */
  --yt-bg-1:       #F0F2F5;   /* page background */
  --yt-bg-2:       #F6F7FA;   /* surface background */
  --yt-surface:    #FFFFFF;   /* cards, sheets */

  /* ────── Semantic ────── */
  --yt-danger:     #F84565;   /* errors, destructive */
  --yt-danger-bg:  #FEE7EC;
  --yt-success:    #ABC232;   /* uses citron */
  --yt-success-bg: #F2F7E5;
  --yt-warning:    #DE8706;
  --yt-warning-bg: #FFF4E0;
  --yt-info:       #8600EF;
  --yt-info-bg:    #F4ECFA;

  /* ────── Shadows (the soft gray cast pattern) ────── */
  --yt-shadow-card:    1px 3px 60px 0 rgba(153,153,169,0.35);
  --yt-shadow-pop:     1px 2px 45px 0 rgba(153,153,169,0.22);
  --yt-shadow-press:   0 2px 8px 0 rgba(153,153,169,0.30);
  --yt-shadow-purple:  0 17px 47px 0 rgba(123,32,185,0.28);
  --yt-shadow-input:   0 0 0 3px rgba(134,0,239,0.15);

  /* ────── Radii ────── */
  --yt-r-xs: 4px;
  --yt-r-sm: 6px;
  --yt-r-md: 8px;
  --yt-r-lg: 12px;
  --yt-r-xl: 16px;
  --yt-r-2xl: 24px;
  --yt-r-pill: 999px;

  /* ────── Spacing scale (4-pt) ────── */
  --yt-s-1: 4px;
  --yt-s-2: 8px;
  --yt-s-3: 12px;
  --yt-s-4: 16px;
  --yt-s-5: 20px;
  --yt-s-6: 24px;
  --yt-s-8: 32px;
  --yt-s-10: 40px;
  --yt-s-12: 48px;
  --yt-s-16: 64px;

  /* ────── Type families ────── */
  --yt-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --yt-text:    "SF Pro Text",    -apple-system, BlinkMacSystemFont, sans-serif;
  --yt-mono:    ui-monospace, "SF Mono", Menlo, monospace;

  /* ────── Semantic type vars ────── */
  --yt-h1-size: 48px; --yt-h1-lh: 56px; --yt-h1-tracking: 0.010em; --yt-h1-weight: 700;
  --yt-h2-size: 24px; --yt-h2-lh: 28px; --yt-h2-tracking:-0.010em; --yt-h2-weight: 700;
  --yt-h3-size: 20px; --yt-h3-lh: 24px; --yt-h3-tracking:-0.010em; --yt-h3-weight: 600;
  --yt-h4-size: 18px; --yt-h4-lh: 22px; --yt-h4-tracking: 0;       --yt-h4-weight: 600;
  --yt-h5-size: 15px; --yt-h5-lh: 18px; --yt-h5-tracking: 0;       --yt-h5-weight: 700;

  --yt-body-l-size: 15px; --yt-body-l-lh: 22px; --yt-body-tracking: -0.016em;
  --yt-body-m-size: 14px; --yt-body-m-lh: 18px;
  --yt-body-s-size: 13px; --yt-body-s-lh: 17px;
  --yt-body-xs-size:12px; --yt-body-xs-lh:16px;
  --yt-body-xxs-size:11px;--yt-body-xxs-lh: 14px;
  --yt-caps-size: 11px; --yt-caps-lh: 12px; --yt-caps-tracking: 0.030em;
}

/* ───── Element styles (use on real elements or apply via class) ───── */
.yt-h1, h1.yt { font-family: var(--yt-display); font-weight: var(--yt-h1-weight); font-size: var(--yt-h1-size); line-height: var(--yt-h1-lh); letter-spacing: var(--yt-h1-tracking); color: var(--yt-fg-1); }
.yt-h2, h2.yt { font-family: var(--yt-display); font-weight: var(--yt-h2-weight); font-size: var(--yt-h2-size); line-height: var(--yt-h2-lh); letter-spacing: var(--yt-h2-tracking); color: var(--yt-fg-1); }
.yt-h3, h3.yt { font-family: var(--yt-display); font-weight: var(--yt-h3-weight); font-size: var(--yt-h3-size); line-height: var(--yt-h3-lh); letter-spacing: var(--yt-h3-tracking); color: var(--yt-fg-1); }
.yt-h4, h4.yt { font-family: var(--yt-display); font-weight: var(--yt-h4-weight); font-size: var(--yt-h4-size); line-height: var(--yt-h4-lh); color: var(--yt-fg-1); }
.yt-h5, h5.yt { font-family: var(--yt-display); font-weight: var(--yt-h5-weight); font-size: var(--yt-h5-size); line-height: var(--yt-h5-lh); color: var(--yt-fg-1); }

.yt-body-l   { font-family: var(--yt-text); font-size: 15px; line-height: 22px; letter-spacing: -0.016em; color: var(--yt-fg-1); }
.yt-body-m   { font-family: var(--yt-text); font-size: 14px; line-height: 18px; letter-spacing: -0.016em; color: var(--yt-fg-1); }
.yt-body-s   { font-family: var(--yt-text); font-size: 13px; line-height: 17px; letter-spacing: -0.016em; color: var(--yt-fg-1); }
.yt-body-xs  { font-family: var(--yt-text); font-size: 12px; line-height: 16px; letter-spacing: -0.016em; color: var(--yt-fg-1); }
.yt-body-xxs { font-family: var(--yt-text); font-size: 11px; line-height: 14px; letter-spacing: -0.006em; color: var(--yt-fg-1); }

.yt-caps     { font-family: var(--yt-text); font-weight: 700; font-size: 11px; line-height: 12px; letter-spacing: 0.030em; text-transform: uppercase; color: var(--yt-fg-3); }

.yt-semibold { font-weight: 600; }
.yt-bold     { font-weight: 700; }

/* base */
.yt-root, body.yt {
  font-family: var(--yt-text);
  color: var(--yt-fg-1);
  background: var(--yt-bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol { margin: 0; }
ol { list-style: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
summary { display: list-item; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hero, .payment-timeline, .tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-photo > img, .photo-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .payment-timeline, .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

html { scroll-behavior: smooth; }
a { text-decoration: none; }
a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--yt-purple-500);
  outline-offset: 4px;
}
.wrap {
  width: min(1120px, calc(100% - 2 * var(--yt-s-6)));
  margin-inline: auto;
}
.site-header { background: var(--yt-surface); border-bottom: 1px solid var(--yt-bd-soft); }
.header-inner { min-height: 76px; gap: var(--yt-s-4); padding-block: var(--yt-s-3); }
.logo { display: inline-flex; flex: none; }
.logo img { width: 142px; height: auto; }
summary:hover { color: var(--yt-purple-600); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: var(--yt-r-md);
  font: 600 var(--yt-body-m-size)/1 var(--yt-text);
  letter-spacing: -.01em;
  transition: background-color .12s, border-color .12s;
}
.button-outline { background: var(--yt-surface); color: var(--yt-fg-1); border-color: var(--yt-bd); }
.button-outline:hover { background: var(--yt-bg-2); border-color: var(--yt-fg-5); }

.hero {
  margin-top: var(--yt-s-8);
  border-radius: var(--yt-r-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--yt-purple-grad-from), var(--yt-purple-grad-to));
  box-shadow: var(--yt-shadow-purple);
}
.hero-copy { padding: var(--yt-s-8) var(--yt-s-6); align-self: center; }
.hero-copy .yt-h1, .hero-copy .hero-description { color: var(--yt-surface); }
.hero-copy .yt-h1 { font-size: clamp(22px, 3.35vw, 40px); line-height: 1.12; }
.hero-description { max-width: 40ch; margin-top: var(--yt-s-4); }
.hero-photo, .tour-photo { position: relative; }
.hero-photo { min-height: 168px; }
.hero-photo img, .tour-photo img { object-fit: cover; }
.section { margin-top: var(--yt-s-16); scroll-margin-top: var(--yt-s-6); }
.section-grid { gap: var(--yt-s-6); margin-top: var(--yt-s-6); align-items: start; }
.muted { color: var(--yt-fg-2); }
.tour-grid { align-items: stretch; }
.tour-grid-item { display: flex; min-width: 0; }
.tour-grid-item .tour-card { width: 100%; }
.tour-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--yt-s-3);
  margin-top: var(--yt-s-4);
  scroll-margin-top: var(--yt-s-6);
}
.tour-filter select {
  appearance: auto;
  min-height: 40px;
  max-width: 100%;
  padding-inline: var(--yt-s-3);
  border: 1px solid var(--yt-bd);
  border-radius: var(--yt-r-md);
  background: var(--yt-surface);
  font: var(--yt-body-m-size)/var(--yt-body-m-lh) var(--yt-text);
}
.tour-filter select:focus-visible { outline: 2px solid var(--yt-purple-500); outline-offset: 2px; }
main.wrap { padding-bottom: var(--yt-s-12); }
.tour-load-more { text-align: center; margin-top: var(--yt-s-8); }
.payment-timeline { gap: var(--yt-s-6); }
.payment-step { position: relative; display: flex; gap: var(--yt-s-3); }
.payment-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 32px auto calc(-1 * var(--yt-s-6)) 15px;
  width: 2px;
  background: var(--yt-purple-300);
}
.payment-number {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: var(--yt-r-pill);
  background: var(--yt-purple-600);
  color: var(--yt-surface);
  font-weight: 700;
}
.payment-step p { margin-top: var(--yt-s-2); }
.tour-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--yt-surface);
  border-radius: var(--yt-r-lg);
  box-shadow: var(--yt-shadow-pop);
}
.tour-photo {
  aspect-ratio: 1.08;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--yt-s-3) var(--yt-s-3) 0;
  isolation: isolate;
}
.tour-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--yt-ink) 57%, transparent), transparent 38%, transparent 53%, color-mix(in srgb, var(--yt-ink) 82%, transparent));
  pointer-events: none;
}
.tour-photo:focus-visible { outline-offset: -4px; }
.tour-photo-top, .tour-photo-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--yt-s-1);
}
.tour-photo-top { align-items: flex-start; }
.tour-photo-bottom { align-items: flex-end; }
.tour-badges { display: flex; flex-wrap: wrap; gap: var(--yt-s-1); }
.badge {
  background: var(--yt-surface);
  color: var(--yt-ink-2);
  border-radius: var(--yt-r-sm);
  font: 700 var(--yt-body-xs-size)/var(--yt-body-xs-lh) var(--yt-text);
  padding: var(--yt-s-1) 6px;
}
.tour-guide {
  display: flex;
  align-items: center;
  gap: var(--yt-s-2);
  padding-bottom: var(--yt-s-3);
  color: var(--yt-surface);
  font: 700 var(--yt-body-s-size)/var(--yt-body-s-lh) var(--yt-text);
}
.tour-guide .avatar { width: 32px; height: 32px; font-size: var(--yt-body-xs-size); }
.tour-guide-avatar { flex: none; width: 32px; height: 32px; border-radius: var(--yt-r-pill); }
.tour-discount {
  padding: var(--yt-s-2) var(--yt-s-3);
  border-radius: var(--yt-r-md) var(--yt-r-md) 0 0;
  background: var(--yt-danger);
  color: var(--yt-surface);
  font: 700 var(--yt-body-xs-size)/var(--yt-body-xs-lh) var(--yt-text);
}
.tour-body { flex: 1; display: flex; flex-direction: column; gap: var(--yt-s-2); padding: var(--yt-s-3) var(--yt-s-4) var(--yt-s-4); }
.tour-meta { color: var(--yt-fg-2); }
.tour-meta span { color: var(--yt-citron-800); }
.tour-meta strong { color: var(--yt-fg-1); }
.tour-title { font-weight: 600; }
.tour-title a:hover, .tour-dates a:hover { color: var(--yt-purple-600); text-decoration: underline; }
.tour-description summary { list-style: none; color: var(--yt-fg-2); cursor: pointer; }
.tour-description summary::-webkit-details-marker { display: none; }
.tour-description:not([open]) summary span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tour-description summary:hover { color: var(--yt-purple-600); }
.tour-booking { margin-top: auto; padding-top: var(--yt-s-2); }
.tour-actions { display: grid; gap: var(--yt-s-2); margin-top: var(--yt-s-3); }
.tour-actions .tour-prepayment {
  padding: var(--yt-s-2) var(--yt-s-3);
  border-radius: var(--yt-r-md);
  background: var(--yt-citron-50);
  color: var(--yt-fg-1);
  text-align: center;
}
.tour-view { background: var(--yt-citron-600); color: var(--yt-surface); }
.tour-view:hover { background: var(--yt-citron-700); }
.tour-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--yt-s-1); color: var(--yt-fg-2); }
.tour-price strong { color: var(--yt-fg-1); font-size: var(--yt-h4-size); line-height: var(--yt-h4-lh); margin-right: var(--yt-s-1); }
.tour-body .tour-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--yt-s-1);
  color: var(--yt-fg-2);
  font-weight: 500;
}
.tour-dates a {
  display: block;
  padding: 1px var(--yt-s-1);
  border: 1px solid var(--yt-bd);
  border-radius: var(--yt-r-xs);
}
.tour-dates .tour-more-dates {
  padding-inline: 6px;
  border-color: transparent;
  background: var(--yt-bg-soft);
}

.panel { background: var(--yt-purple-50); border-radius: var(--yt-r-2xl); padding: var(--yt-s-8); }
.avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--yt-r-pill); font-weight: 700; color: var(--yt-surface); background: linear-gradient(135deg, var(--yt-purple-grad-from), var(--yt-purple-grad-to)); }

@media (max-width: 767px) {
  .section { margin-top: var(--yt-s-12); }
}
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: var(--yt-s-8) var(--yt-s-10); }
  .hero-photo { min-height: 272px; }
  .payment-step { flex-direction: column; }
  .payment-number { flex: none; width: 32px; }
  .payment-step:not(:last-child)::after {
    inset: 15px calc(-1 * var(--yt-s-6)) auto 40px;
    width: auto;
    height: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
