/* =============================================================================
   Know.Travel — Footer
   Theme pill switcher, footer structure, responsive
   ============================================================================= */

/* ============================================
   THEME PILL SWITCHER (3-way: light / sunset / dark)
   ============================================ */
.theme-pill {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
}

.theme-pill-opt {
  width: 32px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.theme-pill-opt:hover {
  background: var(--bg-hover);
}

.theme-pill-opt.active {
  background: var(--bg-surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ============================================
   FOOTER STRUCTURE
   ============================================ */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--header-border);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
  position: relative;
  z-index: 1;
}

.footer-inner {
  width: 100%;
  padding: 40px 40px 28px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Brand */
.footer-brand {
  flex: 1;
  margin-left: -12px;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.footer-logo-wrap:hover {
  opacity: 0.8;
}

.footer-logo-svg {
  display: block;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.footer-copy-notice {
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.7;
  margin-bottom: 14px;
}

.footer-contact {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-contact a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--accent-blue);
}

.footer-contact-link {
  padding: 4px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 12px !important;
}

.footer-contact-link:hover {
  border-color: var(--border-strong);
}

/* Link groups */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.footer-theme-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-links-cols {
  display: flex;
  gap: 48px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

/* Bottom */
.footer-bottom {
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .footer-inner {
    padding: 32px 20px 24px;
  }

  .footer-brand {
    margin-left: 0;
  }

  .footer-main {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-links-cols {
    flex-direction: column;
    gap: 20px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}