.hero-slidercx {
  position: relative;
  padding: 0;
  height: 60vh; /* adjust if too tall */
  display: flex;
  align-items: center;
  overflow: hidden; /* prevent extra height */
}

.slidercx-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}

.slides-cx {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.slide-cx {
  position: absolute;
  inset: 0;
  background-size: cover; /* keeps full container but crops nicely */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .4s, transform .4s;
  z-index: 1;
}

.slide-cx.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay-cx {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-overlay-cx h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 50%;
}

.hero-cta-cx {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.6rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-nav-cx {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-nav-btn-cx {
  pointer-events: auto;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 1.2rem;
}

.hero-dots-cx {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}

.dot-cx {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}

.dot-cx.active {
  background: #fff;
  border-color: #fff;
}

.city-tabs-cx {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  justify-content: center;
}

.city-tabs-bottom { margin-top: 0.5rem; }

.city-tab-cx {
  border: none;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--dark);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.city-tab-cx.active {
  background: var(--gradient);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-slidercx { height: 50vh; background-color: #f0f0f0; }
  .city-tabs-cx { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .city-tab-cx { padding: .55rem .95rem; }
  .hero-overlay-cx h1 { font-size: 2rem; }
  .hero-overlay-cx p { font-size: 1rem; }
  .hero-cta-cx { padding: .7rem 1.3rem; font-size: .95rem; }
  .hero-nav-btn-cx { width: 36px; height: 36px; font-size: 1rem; }
  .hero-dots-cx { bottom: 10px; }
}

@media (max-width: 480px) {
  .hero-slidercx { height: 40vh; }
  .hero-overlay-cx h1 { font-size: 1.7rem; }
  .hero-overlay-cx p { font-size: .95rem; }
}
