/* ============================================================
   Commercial Connection — Town Slider
   ============================================================ */

.ccts-widget { font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Header / Tabs ──────────────────────────────────────────── */
.ccts-header { display: flex; align-items: center; margin-bottom: 20px; }
.ccts-tabs { display: flex; gap: 24px; }
.ccts-tab {
  background: none; border: none; border-bottom: 3px solid transparent !important;
  padding: 8px 4px; font-family: inherit; font-size: 16px; font-weight: 500;
  color: #8595ae; cursor: pointer; transition: color .2s, border-color .2s, background .2s; outline: none;
}
.ccts-tab:hover { color: #1c2b3a; }
.ccts-tab.is-active { color: #0f1e35; font-weight: 700; border-bottom-color: #0f1e35 !important; }

/* ── Slider ─────────────────────────────────────────────────── */
.ccts-slider { position: relative; }

.ccts-viewport {
  overflow: hidden;
  width: 100%;
}

.ccts-track {
  display: flex;
  gap: 16px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.ccts-card {
  flex: 0 0 calc((100% - (var(--ccts-vis, 5) - 1) * 16px) / var(--ccts-vis, 5));
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease;
}
@media (max-width: 1024px) {
  .ccts-card { flex: 0 0 calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 767px) {
  .ccts-card { flex: 0 0 calc((100% - 1 * 16px) / 2); }
}

/* ── Card Image ─────────────────────────────────────────────── */
.ccts-card-img {
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  background: #edf0f5;
  display: flex;
}
.ccts-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  flex: 1 1 auto; min-height: 0;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.ccts-card:hover .ccts-card-img img { transform: scale(1.05); }

/* ── Name ───────────────────────────────────────────────────── */
.ccts-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1c2b3a;
  transition: color .2s;
}

/* ── Arrows ─────────────────────────────────────────────────── */
.ccts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 10;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid #e2e6ef;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,30,53,.1);
  transition: background .2s, box-shadow .2s, opacity .3s;
  opacity: 1;
  outline: none;
}
.ccts-arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(15,30,53,.15); }
.ccts-arrow svg { flex-shrink: 0; }
.ccts-arrow--left { left: -20px; }
.ccts-arrow--right { right: -20px; }

/* Hidden state */
.ccts-arrow[style*="display: none"] { opacity: 0; pointer-events: none; }
