.city-wrap {
  padding: 60px 0;
  background: #f1f5f9;
}

.city-container {
  width: 90%;
  margin: auto;
}

.city-top {
  text-align: center;
  margin-bottom: 40px;
}

.city-top h2 {
  font-size: 30px;
  font-weight: 700;
}

.city-top p {
  color: #64748b;
}
/* ===== MAIN WRAPPER ===== */
.city-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== BIG CARD ===== */
.city-flex .city-box.big {
  flex: 1 1 40%;
  height: 420px;
}

/* ===== GRID ===== */
.city-flex .city-side {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== CARD ===== */
.city-flex .city-box {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ===== IMAGE ===== */
.city-flex .city-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
  filter: brightness(1); /* FULL BRIGHT */
}

/* ===== OVERLAY ===== */
.city-flex .city-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.6) 20%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 1;
}

/* ===== CONTENT ===== */
.city-flex .city-content {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  color: #fff;
}

/* ===== TITLE ===== */
.city-flex .city-content h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* ===== SUBTITLE ===== */
.city-flex .city-content p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* ===== BIG CARD TEXT ===== */
.city-flex .city-box.big .city-content h3 {
  font-size: 26px;
}

.city-flex .city-box.big .city-content p {
  font-size: 14px;
}

/* ===== HOVER ===== */
.city-flex .city-box:hover img {
  transform: scale(1.1);
}

.city-flex .city-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .city-flex .city-side {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* MOBILE FIX */
/* ===== MOBILE PERFECT GRID ===== */
@media (max-width: 768px) {

  /* FLEX REMOVE → GRID USE */
  .city-flex {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* BIG CARD NORMAL */
  .city-flex .city-box.big {
    flex: unset !important;
    height: 160px !important;
  }

  /* ALL CARDS SAME */
  .city-flex .city-box {
    height: 160px !important;
  }

  /* REMOVE SIDE GRID CONFLICT */
  .city-flex .city-side {
    display: contents; /* IMPORTANT 🔥 */
  }

  /* TEXT */
  .city-content h3 {
    font-size: 14px;
  }

  .city-content p {
    font-size: 10px;
  }
}

/* EXTRA SMALL */
@media (max-width: 480px) {

  .city-flex {
    grid-template-columns: 1fr;
  }

  .city-flex .city-box,
  .city-flex .city-box.big {
    height: 150px !important;
  }
}

/*---------------------------------------------------*/

/* GRID FIX (MAIN ISSUE SOLVED) */
.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.fx-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

/* IMAGE */
.fx-img {
  position: relative;
  height: 180px;
  cursor: pointer;
}

.fx-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ID */
.fx-id {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
}

/* BODY */
.fx-body {
  padding: 12px;
}

.fx-body h3 {
  font-size: 15px;
  margin: 0;
}

/* LOC */
.fx-loc {
  font-size: 12px;
  color: #64748b;
}

/* DESC */
.fx-desc {
  font-size: 12px;
  margin-top: 5px;
  color: #475569;
}

/* CONTACT */
.fx-contact {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.fx-call {
  background: #e6f9f0;
  padding: 5px 10px;
  border-radius: 20px;
}

.fx-wa {
  background: #25d366;
  color: #fff;
  padding: 6px;
  border-radius: 50%;
}

/* SHARE */
.fx-share {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #eee;
}

/* HOVER */
.fx-card:hover {
  transform: translateY(-6px);
}

/* RESPONSIVE */
@media(max-width:992px){
  .fx-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:576px){
  .fx-grid {
    grid-template-columns: 1fr;
  }
}