/* Klook-style footer — Travelloo */

.site-footer {
  background: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 40px;
  padding: 56px 0 28px;
  color: #1f2933;
  box-shadow: 0 -8px 30px rgba(15, 23, 32, 0.04);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  padding-bottom: 40px;
  width: 100%;
  align-items: start;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__title {
  margin: 0 0 18px;
  color: #0f1720;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links a {
  position: relative;
  display: inline-block;
  color: #52606d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease;
}

.site-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-blue, #00b5fc);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--brand-blue, #00b5fc);
}

.site-footer__links a:hover::after {
  transform: scaleX(1);
}

.site-footer__payments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.site-footer__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 4px 6px;
  border: 1px solid #e4e7eb;
  border-radius: 6px;
  background: #fff;
}

.site-footer__pay img {
  max-width: 100%;
  max-height: 22px;
  width: auto;
  object-fit: contain;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #eceff3;
}

.site-footer__copy {
  margin: 0;
  color: #7b8794;
  font-size: 13px;
  font-weight: 500;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #1f2933;
  font-size: 18px;
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-footer__social a:hover {
  color: var(--brand-blue, #00b5fc);
  background: rgba(0, 181, 252, 0.1);
  transform: translateY(-1px);
}

/* Back-to-top uses existing #back-top — tint with brand */
.progressParent {
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(15, 23, 32, 0.14) !important;
}

.progressParent .backCircle path {
  stroke: var(--brand-blue, #00b5fc) !important;
}

@media (max-width: 991.98px) {
  .site-footer {
    border-radius: 18px 18px 0 0;
    padding: 40px 0 24px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .site-footer__payments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__payments {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 320px;
  }
}

@media (max-width: 575.98px) {
  .site-footer__payments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-theme="dark"] .site-footer {
  background: #161b22;
  color: #e6edf3;
}

[data-theme="dark"] .site-footer__title {
  color: #f4f5f6;
}

[data-theme="dark"] .site-footer__links a,
[data-theme="dark"] .site-footer__copy {
  color: #9aa4b2;
}

[data-theme="dark"] .site-footer__links a:hover {
  color: var(--brand-blue, #00b5fc);
}

[data-theme="dark"] .site-footer__pay {
  background: #0d1117;
  border-color: rgba(248, 250, 252, 0.12);
}

[data-theme="dark"] .site-footer__bottom {
  border-top-color: rgba(248, 250, 252, 0.12);
}

[data-theme="dark"] .site-footer__social a {
  color: #e6edf3;
}
