/* ============================================================
   Sun & Sand Tours — Website styles
   Links AFTER styles.css (tokens). Pure CSS, mirrors the DS components.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-base);
  line-height: 1; letter-spacing: .01em; padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn--sm { padding: 9px 18px; font-size: var(--fs-sm); }
.btn--lg { padding: 17px 34px; font-size: var(--fs-md); }
.btn--full { width: 100%; }
.btn i { width: 18px; height: 18px; }
.btn--primary { background: var(--cta-bg); color: var(--cta-text); box-shadow: var(--shadow-gold); }
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-text); }
.btn--secondary { background: var(--nile-800); color: var(--papyrus-50); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--nile-700); color: var(--papyrus-50); }
.btn--ghost { background: transparent; color: var(--nile-700); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--surface-sand); color: var(--nile-800); }
.btn--light { background: transparent; color: var(--papyrus-50); border-color: var(--border-on-dark); }
.btn--light:hover { background: rgba(250,246,238,.10); color: var(--papyrus-50); }

/* ---------- Badges / Tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; font-weight: var(--fw-bold);
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius-pill); line-height: 1.4; }
.badge i { width: 13px; height: 13px; }
.badge--solid { background: var(--gold-500); color: var(--nile-950); }
.badge--gold { background: var(--gold-200); color: var(--gold-700); }
.badge--teal { background: var(--info-bg); color: var(--nile-700); }
.badge--terra { background: #F3DDCF; color: var(--terra-700); }
.badge--success { background: var(--success-bg); color: var(--success-600); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-sand); color: var(--ink-700);
  border: 1px solid var(--border-subtle); padding: 6px 12px; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  border-radius: var(--radius-pill); line-height: 1.3; white-space: nowrap; }
.tag i { width: 14px; height: 14px; color: var(--gold-600); }

/* ---------- Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.rating__stars i { width: 16px; height: 16px; fill: var(--gold-500); }
.rating__stars i.empty { fill: transparent; color: var(--sand-300); }
.rating b { font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--ink-800); }
.rating span { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Image placeholder ---------- */
.imgph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sand-200), var(--sand-300));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-400); }
.imgph i { width: 30px; height: 30px; }
.imgph span { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; }
.imgph--dark { background: linear-gradient(135deg, var(--nile-700), var(--nile-900)); color: rgba(250,246,238,.5); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,238,.86);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow var(--dur), border-color var(--dur); }
.site-header.is-scrolled { border-bottom-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.site-header__logo { display: inline-flex; }
.site-nav { display: flex; gap: var(--space-6); margin-left: auto; }
.site-nav a { font-weight: var(--fw-semibold); font-size: var(--fs-base); color: var(--ink-700); position: relative; padding: 4px 0; }
.site-nav a:hover { color: var(--nile-800); }
.site-nav a.is-active { color: var(--nile-800); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.site-header__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: var(--fw-bold); font-size: var(--fs-sm); color: var(--nile-800); white-space: nowrap; }
.site-header__phone i { width: 16px; height: 16px; color: var(--gold-600); }
.site-header__burger { display: none; background: none; border: 0; color: var(--nile-800); cursor: pointer; padding: 6px; }
.site-header__burger i { width: 26px; height: 26px; }
.site-nav-mobile { display: none; flex-direction: column; gap: 4px; padding: var(--space-4) var(--gutter) var(--space-5); background: var(--papyrus-50); border-bottom: 1px solid var(--border-subtle); }
.site-nav-mobile a { padding: 12px 8px; font-weight: var(--fw-semibold); color: var(--ink-800); border-radius: var(--radius-sm); }
.site-nav-mobile a:hover { background: var(--surface-sand); }
.site-nav-mobile .btn { margin-top: 8px; }
.site-nav-mobile.is-open { display: flex; }

/* ---------- Generic section bits ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 720px; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; font-size: var(--fs-md); color: var(--text-muted); }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.on-dark { color: var(--gold-400); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.eyebrow.no-rule::before { display: none; }

/* ---------- Countdown / FOMO ---------- */
.cd { display: inline-flex; align-items: center; gap: 5px; }
.cd__cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; padding: 6px 8px;
  background: var(--nile-800); color: var(--gold-400); border-radius: var(--radius-sm); }
.cd__cell b { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1; }
.cd__cell i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sand-300); margin-top: 3px; }
.cd__sep { display: none; }
.cd--dark .cd__cell { background: rgba(250,246,238,.10); }
.cd--dark .cd__cell i { color: var(--text-on-dark-muted); }

.scarcity { display: inline-flex; align-items: center; gap: 7px; background: var(--gold-200); color: var(--gold-700);
  padding: 6px 12px; border-radius: var(--radius-pill); font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: 1.3; }
.scarcity i { width: 15px; height: 15px; }
.scarcity--critical { background: #F3DDCF; color: var(--terra-700); }

.viewing { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); }
.viewing.on-dark { color: var(--text-on-dark-muted); }
.viewing b { color: var(--ink-800); font-weight: 800; }
.viewing.on-dark b { color: var(--gold-400); }
.viewing__dot { position: relative; width: 9px; height: 9px; display: inline-flex; flex: none; }
.viewing__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success-500); opacity: .45; animation: ssPulse 1.8s var(--ease-out) infinite; }
.viewing__dot::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--success-500); }
@keyframes ssPulse { 0%{transform:scale(1);opacity:.45} 70%{transform:scale(2.4);opacity:0} 100%{opacity:0} }

/* ---------- Tour card ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.tour-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); text-decoration: none; color: var(--text-body);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tour-card__media { position: relative; aspect-ratio: 4/3; }
.tour-card__media .imgph { position: absolute; inset: 0; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__flag { position: absolute; top: 14px; left: 14px; }
.tour-card__fav { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,246,238,.9); display: flex; align-items: center; justify-content: center; color: var(--ink-700); border: 0; cursor: pointer; }
.tour-card__fav i { width: 18px; height: 18px; }
.tour-card__fav.is-saved { background: var(--gold-500); color: var(--nile-950); }
.tour-card__fav.is-saved i { fill: var(--nile-950); }
.tour-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.tour-card__body h3 { font-size: var(--fs-lg); margin: 0; line-height: 1.2; color: var(--text-strong); }
.tour-card__blurb { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.tour-card__price small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.tour-card__price .amt { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--text-strong); }
.tour-card__price .old { font-size: var(--fs-sm); color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.tour-card__cta { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-600); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.tour-card__cta i { width: 16px; height: 16px; }

/* ---------- Cards (generic) ---------- */
.card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: var(--space-6); }
.card--dark { background: var(--surface-dark); color: var(--text-on-dark); border-color: var(--border-on-dark); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--ink-800); }
.field .control { position: relative; display: flex; align-items: center; }
.field .control > i { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--ink-400); pointer-events: none; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font-body); font-size: var(--fs-base);
  color: var(--text-strong); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 12px 14px; line-height: 1.4; outline: none; transition: border-color var(--dur), box-shadow var(--dur); }
.field .control.has-icon input, .field .control.has-icon select { padding-left: 42px; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer; background-image: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(232,179,61,.22); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-dark-deep); color: var(--text-on-dark); padding-block: var(--space-9) var(--space-6); margin-top: var(--space-10); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-7); padding-bottom: var(--space-8); border-bottom: 1px solid var(--border-on-dark); }
.site-footer__brand p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); line-height: 1.6; max-width: 38ch; margin: var(--space-4) 0; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-on-dark); display: flex; align-items: center; justify-content: center; color: var(--papyrus-50); }
.site-footer__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--nile-950); }
.site-footer__social i { width: 18px; height: 18px; }
.site-footer__col h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 var(--space-4); }
.site-footer__col a, .site-footer__contact span { display: flex; align-items: center; gap: 8px; color: var(--text-on-dark-muted); font-size: var(--fs-sm); padding: 5px 0; }
.site-footer__col a:hover { color: var(--papyrus-50); }
.site-footer__contact i { width: 16px; height: 16px; color: var(--gold-400); }
.site-footer__badge { margin-top: var(--space-3); color: var(--gold-300) !important; font-weight: 700; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-5); color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.site-footer__legal { display: flex; gap: var(--space-5); }
.site-footer__legal a { color: var(--text-on-dark-muted); }
.site-footer__legal a:hover { color: var(--papyrus-50); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav, .site-header__phone { display: none; }
  .site-header__burger { display: inline-flex; }
  .tour-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: var(--space-6); }
  .site-footer__bottom { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .viewing__dot::before { animation: none; }
  * { scroll-behavior: auto; }
}
