/* ============================================================
   Traveronto — footer.css
   ============================================================ */

.tr-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 64px;
}
.tr-footer .tr-logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.tr-footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tr-footer p { color: rgba(255, 255, 255, 0.6); font-size: 15px; margin-bottom: 12px; }

/* ── Grid ─────────────────────────────────────────────────────────
   Default (no admin widgets): brand col + 3 hardcoded cols
   When .tr-footer__grid--dynamic: brand col + N admin cols (auto-fit)
   ────────────────────────────────────────────────────────────── */
.tr-footer__grid {
  display: grid;
  /* fallback: brand + Company + Support + Quick Links + Mailing List = 5 cols */
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 48px;
}
.tr-footer__grid--dynamic {
  /* admin-driven: brand col + however many widget cols the admin configured */
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr));
}

/* ── Lists ──────────────────────────────────────────────────────── */
.tr-footer ul { list-style: none; padding: 0; margin: 0; }
.tr-footer ul li { margin-bottom: 10px; }
.tr-footer ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}
.tr-footer ul li a:hover { color: #fff; padding-left: 4px; }

/* ── Widget content (admin HTML — usually a <ul> of links) ──────── */
.tr-footer__widget-content { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.tr-footer__widget-content a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition), padding-left var(--transition);
  /* Override any Bootstrap list-group-item styles the admin may have saved */
  display: inline !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-weight: normal !important;
}
.tr-footer__widget-content a:hover {
  color: #fff;
  background: transparent !important;
  border: none !important;
}
.tr-footer__widget-content ul,
.tr-footer__widget-content .list-group {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tr-footer__widget-content li,
.tr-footer__widget-content .list-group-item {
  display: block !important;
  margin-bottom: 10px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: inherit !important;
}
.tr-footer__widget-content li:last-child,
.tr-footer__widget-content .list-group-item:last-child { margin-bottom: 0 !important; }
.tr-footer__widget-content p { color: rgba(255, 255, 255, 0.6); font-size: 14px; }

/* Subscribe form when rendered inside admin widget content */
.tr-footer__widget-content .input-group,
.tr-footer__widget-content .form-group { margin-bottom: 12px; }
.tr-footer__widget-content input[type="text"],
.tr-footer__widget-content input[type="email"] {
  width: 100% !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  height: auto !important;
}
.tr-footer__widget-content input::placeholder { color: rgba(255,255,255,0.45) !important; }
.tr-footer__widget-content input:focus { outline: none !important; border-color: var(--primary) !important; }
.tr-footer__widget-content .btn-submit,
.tr-footer__widget-content button[type="submit"] {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  height: auto !important;
  min-width: auto !important;
  display: inline-block !important;
}

/* ── Brand col: info text ───────────────────────────────────────── */
.tr-footer__info { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-top: 8px; }
.tr-footer__info a { color: rgba(255, 255, 255, 0.75); }
.tr-footer__info a:hover { color: #fff; }

/* ── Social icons (if admin puts them in footer_info_text HTML) ─── */
.tr-social { display: flex; gap: 10px; margin-top: 18px; }
.tr-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.tr-social a:hover { background: var(--primary); transform: translateY(-3px); }

/* ── Newsletter subscribe form ──────────────────────────────────── */
.tr-subscribe { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tr-subscribe input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
}
.tr-subscribe input::placeholder { color: rgba(255, 255, 255, 0.45); }
.tr-subscribe input:focus { outline: none; border-color: var(--primary); }
.tr-subscribe button { white-space: nowrap; padding: 11px 20px; }

/* ── Bottom bar ─────────────────────────────────────────────────── */
.tr-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tr-footer__bottom-left { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.tr-footer__bottom-left p { margin: 0; color: inherit; font-size: inherit; }
.tr-footer__bottom-left a { color: rgba(255, 255, 255, 0.75); }
.tr-footer__bottom-left a:hover { color: #fff; }

.tr-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-pay span {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
/* Admin can also output <img> tags for payment logos */
.tr-pay img { max-height: 24px; width: auto; opacity: 0.8; }
.tr-pay img:hover { opacity: 1; }

/* ── Toast (subscribe success) ──────────────────────────────────── */
.tr-foot-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2000;
}
.tr-foot-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tr-footer__grid,
  .tr-footer__grid--dynamic {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .tr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tr-footer__grid,
  .tr-footer__grid--dynamic {
    grid-template-columns: 1fr;
  }
  .tr-footer__bottom { flex-direction: column; align-items: flex-start; }
}
