/* Camptime.ca Sponsors — banner + sidebar styles */

/* ---- BANNER (top of page) ---- */
.ct-sponsor-banner {
  position: relative;
  width: 100%;
  height: 90px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.ct-sponsor-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px 0 20px; /* extra right padding for close + tag */
  position: relative;
}
.ct-sponsor-banner-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 6px 10px;
}
.ct-sponsor-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.ct-sponsor-banner-text strong {
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-sponsor-banner-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-sponsor-banner-cta {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.ct-sponsor-banner-cta:hover { transform: translateY(-1px); }
.ct-sponsor-banner-close {
  position: absolute;
  top: 8px; right: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ct-sponsor-banner-close:hover { background: rgba(0, 0, 0, 0.32); }

/* "Sponsored" tag */
.ct-sponsor-tag {
  position: absolute;
  top: 6px; right: 44px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ---- BANNER mobile ---- */
@media (max-width: 768px) {
  .ct-sponsor-banner { height: 60px; }
  .ct-sponsor-banner-inner { padding: 0 50px 0 12px; gap: 10px; }
  .ct-sponsor-banner-logo { height: 36px; padding: 4px 6px; }
  .ct-sponsor-banner-text strong { font-size: 0.85rem; }
  .ct-sponsor-banner-sub { display: none; }
  .ct-sponsor-banner-cta { padding: 7px 12px; font-size: 0.8rem; }
  .ct-sponsor-banner-close { top: 6px; right: 8px; width: 22px; height: 22px; font-size: 15px; }
  .ct-sponsor-tag { top: 4px; right: 36px; font-size: 9px; padding: 1px 6px; }
}

/* ---- SIDEBAR (right rail under fuel cost) ---- */
.ct-sponsor-sidebar {
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fafbf7 0%, #f4f6ee 100%);
  border: 1px solid #e3e7d8;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.ct-sponsor-sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a3e;
  margin: 0 0 12px 0;
}
.ct-sponsor-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e8ebde;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ct-sponsor-card:hover {
  transform: translateY(-1px);
  border-color: #c9d1b3;
  box-shadow: 0 4px 12px rgba(60, 80, 30, 0.08);
}
.ct-sponsor-card:last-of-type { margin-bottom: 0; }
.ct-sponsor-card .ct-sponsor-tag {
  position: absolute;
  top: 8px; right: 10px;
  background: #f0f2e8;
  color: #6a7848;
}
.ct-sponsor-card-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f8faf3;
}
.ct-sponsor-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ct-sponsor-card-body strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2a3a18;
  padding-right: 70px; /* space for "Sponsored" tag */
  line-height: 1.3;
}
.ct-sponsor-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #4a5a3a;
  line-height: 1.4;
}
.ct-sponsor-card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3f6e3f;
  margin-top: 4px;
}
.ct-sponsor-disclosure {
  font-size: 0.7rem;
  color: #7a8268;
  font-style: italic;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

/* ---- SIDEBAR mobile (collapsed accordion-style) ---- */
@media (max-width: 768px) {
  .ct-sponsor-sidebar { padding: 10px; }
  .ct-sponsor-card { padding: 10px; gap: 10px; }
  .ct-sponsor-card-logo { width: 36px; height: 36px; }
  .ct-sponsor-card-body strong { font-size: 0.85rem; padding-right: 60px; }
  .ct-sponsor-card-body p { font-size: 0.78rem; }
}

/* ================================================================
   OVERLAY-MODE: TINY CHIP (2026-05-06)
   Single-line translucent chip floating on the map. Tapping the
   text opens the link; × dismisses for 24h. No logo, no subhead,
   no CTA button — just a one-liner and a close icon.
   ================================================================ */
.map-area .ct-sponsor-banner {
    position: absolute;
    bottom: 42px;  /* above the expand button */
    left: 10px;
    right: auto;
    width: auto;
    max-width: calc(100% - 20px);
    height: auto;
    z-index: 6;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    overflow: hidden;
    background: rgba(26, 46, 31, 0.82) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.map-area .ct-sponsor-banner-inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    max-width: none;
    height: auto;
}
/* Hide the logo, subhead, CTA button, and tag — chip is text-only. */
.map-area .ct-sponsor-banner-logo,
.map-area .ct-sponsor-banner-sub,
.map-area .ct-sponsor-banner-cta,
.map-area .ct-sponsor-tag {
    display: none !important;
}
/* The headline IS the entire chip — make it a tappable link-style line. */
.map-area .ct-sponsor-banner-text {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    cursor: pointer;
}
.map-area .ct-sponsor-banner-text strong {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: #fff;
}
/* Tiny × flush right */
.map-area .ct-sponsor-banner-close {
    position: static;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    background: transparent;
    border-left: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    color: rgba(255,255,255,0.7);
}
.map-area .ct-sponsor-banner-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
