/* ==========================================================================
   Components — shared across every page of the site
   ========================================================================== */

/* ------------------------- Buttons ------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  transition: background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  color: var(--color-navy);
  padding: 8px 24px;
}

.btn-ghost:hover {
  background: rgba(0, 33, 85, 0.06);
}

.btn-primary {
  background: var(--color-navy-cta);
  color: var(--color-white);
  padding: 8px 24px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--color-navy-cta-hover);
}

/* Nav "Sign Up" button uses the brand accent color instead of navy */
.nav-auth-slot .btn-primary {
  background: var(--color-accent);
  color: var(--color-navy);
}

.nav-auth-slot .btn-primary:hover {
  background: #f0ad0e;
}

.btn-cta {
  width: 100%;
  background: var(--color-navy-cta);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
}

.btn-cta:hover {
  background: var(--color-navy-cta-hover);
  transform: translateY(-1px);
}

.btn-outline {
  width: 100%;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 9px 0;
  border-radius: var(--radius-md);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
}

.btn-dark:hover {
  background: var(--color-navy-dark-btn);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(13, 35, 64, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition: background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast);
}

.btn-icon:hover {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(13, 35, 64, 0.24);
}

.btn-icon:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ------------------------- Header / Nav ------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-4) 40px;
}

.site-header.header-solid {
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
}

.site-header.header-glass {
  background: rgba(247, 249, 251, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(0, 33, 85, 0.1);
}

.site-header.header-glass .nav-link:not(.active),
.site-header.header-glass .nav-dropdown-btn {
  color: var(--color-navy);
}

.site-header.header-solid .nav-link:not(.active),
.site-header.header-solid .nav-dropdown-btn {
  color: var(--color-navy);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-img {
  width: 42px;
  height: 40px;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.7px;
  color: var(--color-navy);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-bottom: 6px;
  transition: opacity var(--duration-fast);
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  color: var(--color-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--color-navy);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  color: var(--color-white);
}

.nav-chevron {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  min-width: 200px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear var(--duration-fast);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear 0s;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-small);
  color: var(--color-text-body);
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-section);
  color: var(--color-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  color: var(--color-white);
  background: var(--color-white);
  border-radius: 2px;
  transition: background var(--duration-fast);
}

.site-header.header-solid .menu-toggle span,
.site-header.header-glass .menu-toggle span {
  background: var(--color-navy);
}

/* Auth-state nav slot (populated by js/auth.js later) */
.nav-auth-slot {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header {
    padding: var(--space-4) 20px;
  }

  .site-header.nav-open {
    background: var(--color-navy);
    padding-bottom: var(--space-4);
    max-height: 100vh;
    overflow-y: auto;
  }

  .site-header.header-solid.nav-open {
    background: var(--color-navy);
  }

  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    width: 100%;
    order: 3;
    margin-top: var(--space-4);
  }

  .site-header.nav-open .main-nav .nav-link,
  .site-header.nav-open .main-nav .nav-dropdown-btn {
    color: var(--color-white) !important;
  }

  .site-header.nav-open .header-actions {
    display: flex;
    order: 4;
    margin-top: var(--space-4);
  }

  .site-header.nav-open .btn-ghost {
    color: var(--color-white);
  }

  .site-header.nav-open .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .site-header.nav-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: var(--space-2);
    display: none;
  }

  .site-header.nav-open .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}

/* ------------------------- Footer ------------------------- */

.site-footer {
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.footer-grid {
  display: flex;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-col {
  flex: 1 0 0;
  min-width: 0;
}

.footer-brand h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  margin-bottom: var(--space-4);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 33, 85, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.social-icon:hover {
  background: rgba(0, 33, 85, 0.12);
}

.footer-col h6 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col ul a {
  font-weight: 300;
  font-size: var(--fs-xs);
  letter-spacing: 0.6px;
  color: var(--color-text-body);
  display: inline-block;
  padding: 5.5px 0 2.5px;
  transition: color var(--duration-fast);
}

.footer-col ul a:hover {
  color: var(--color-navy);
}

.footer-sub-text {
  font-weight: 300;
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.6px;
  color: var(--color-text-body);
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  width: 100%;
}

.newsletter-form input {
  flex: 1 0 0;
  min-width: 0;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 10px 17px 11px;
  color: #1f2937;
}

.newsletter-form input::placeholder {
  color: var(--color-text-placeholder);
}

.newsletter-form button {
  background: var(--color-navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 6px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.newsletter-form button:hover {
  background: var(--color-navy-dark-btn);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 25px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-text-body);
}

@media (max-width: 1024px) {
  .footer-grid {
    flex-wrap: wrap;
  }

  .footer-col {
    flex: 1 1 45%;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
  }

  .footer-col {
    flex: 1 1 100%;
  }
}

/* ------------------------- Cards & tags ------------------------- */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.tag {
  background: var(--color-tag-bg);
  color: var(--color-text-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.badge-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ------------------------- Route card (shared: landing + Popular Routes) ------------------------- */

.route-grid {
  display: flex;
  gap: var(--space-6);
}

.route-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-route-card);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: start;
}

.route-image {
  position: relative;
  height: 192px;
  width: 100%;
}

.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.route-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 7.5px;
}

.route-body h4 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.route-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-duration {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-muted);
}

.route-price {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.route-price strong {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-navy);
}

.route-tags {
  display: flex;
  gap: var(--space-2);
  padding: 8.5px 0;
}

/* ------------------------- Form fields ------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-text-body);
}

.field-input {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text-body);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.field-input::placeholder {
  color: var(--color-text-placeholder);
}

.field-input:focus {
  outline: none;
  border-color: var(--color-navy-cta);
  box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.12);
}

/* ------------------------- Skeleton shimmer ------------------------- */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-skeleton-base);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-skeleton-base) 25%,
    var(--color-skeleton-shine) 50%,
    var(--color-skeleton-base) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shine 1.6s ease-in-out infinite;
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

/* ------------------------- Date picker ------------------------- */

.dp-trigger {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dp-display {
  flex: 1 0 0;
  min-width: 0;
  color: var(--color-text-body);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-display.dp-placeholder {
  color: var(--color-text-placeholder);
}

.dp-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 500;
  width: 280px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateY(-6px);
  transform-origin: top left;
  transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear var(--duration-fast);
}

.dp-popup.dp-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s linear 0s;
}

.dp-popup.dp-flip-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom left;
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 13px;
  border-bottom: 1px solid var(--color-border);
}

.dp-month-label {
  display: flex;
  gap: var(--space-1);
  align-items: baseline;
  font-family: var(--font-body);
}

.dp-month-name {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-navy-strong);
}

.dp-year {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-muted);
}

.dp-nav {
  display: flex;
  gap: var(--space-2);
}

.dp-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-body);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.dp-nav-btn:hover:not(:disabled) {
  background: var(--color-navy);
  color: var(--color-white);
}

.dp-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dp-body {
  padding: 12px;
}

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: var(--space-2);
}

.dp-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.dp-weekday.dp-sunday {
  color: var(--color-navy);
}

.dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-body);
  transition: background var(--duration-fast), color var(--duration-fast);
  position: relative;
}

.dp-day:hover:not(:disabled):not(.dp-selected) {
  background: var(--color-bg-section);
}

.dp-day.dp-muted {
  color: var(--color-text-disabled);
}

.dp-day.dp-sunday:not(.dp-selected) {
  color: var(--color-navy);
}

.dp-day.dp-selected {
  background: var(--color-navy);
  color: var(--color-white);
}

.dp-day.dp-today:not(.dp-selected)::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-navy);
}

.dp-day.dp-today.dp-selected::after {
  background: var(--color-white);
}

.dp-day:disabled {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.dp-day.dp-empty {
  visibility: hidden;
  pointer-events: none;
}

.dp-footer {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  padding: 10px 12px 12px;
}

.dp-today-btn {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-navy-cta);
  padding: 4px 14px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.dp-today-btn:hover {
  background: var(--color-bg-section);
}

@media (max-width: 520px) {
  .dp-popup {
    width: min(280px, calc(100vw - 32px));
  }
}

/* ------------------------- Carousel ------------------------- */

.carousel-wrapper {
  position: relative;
  padding: 0 28px;
  margin: 0 -28px;
}

.carousel-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-arrow.arrow-left {
  left: 0;
}

.carousel-arrow.arrow-right {
  right: 0;
}

.carousel-arrow.arrow-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------- FAQ accordion ------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--color-navy);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-standard);
  color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-standard);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ------------------------- Toast notifications ------------------------- */

#toast-container {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  top: 20px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 24px);
}

@media (max-width: 480px) {
  #toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  padding: 13px 14px 13px 16px;
  border-left: 4px solid transparent;
  pointer-events: auto;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-text-body);
  animation: toast-in 0.28s cubic-bezier(0.22, 0.68, 0, 1.2) both;
}

.toast.toast-leaving {
  animation: toast-out 0.22s ease forwards;
}

.toast-success {
  border-left-color: #22c55e;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-info {
  border-left-color: var(--color-navy);
}

.toast-loading {
  border-left-color: #94a3b8;
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-msg {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  color: #94a3b8;
  line-height: 0;
  transition: color var(--duration-fast);
  align-self: flex-start;
}

.toast-close:hover {
  color: var(--color-text-body);
}

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

.toast-spinner {
  animation: toast-spin 0.75s linear infinite;
  display: block;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 120px;
    margin-bottom: 0;
  }
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
    max-height: 0;
    margin-bottom: -10px;
  }
}

/* ------------------------- Utility ------------------------- */

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-header {
    padding: var(--space-4) 24px;
  }
}
