/* Cities / Bundesländer – Figma design (Ecom / Product cards) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Inter:wght@400;600;800&display=swap');

/* Main page container – Ecom / Product cards 1 outside */
.cities-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 120px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 1500px;
  background: #FFFFFF;
  box-sizing: border-box;
}

/* Frame 307 – Header (title + subtitle) */
.cities-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
}

.cities-title {
  font-family: 'Cairo', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 48px;
  line-height: 56px;
  color: #000000;
  margin: 0;
}

.cities-subtitle {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #000000;
  margin: 0;
}

/* Frame 306 – Search row */
.cities-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  height: 60px;
}

.cities-search-row .cities-search-input-wrap {
  flex: 1;
  min-width: 0;
}

.cities-search-row .cities-search-input,.cities-search-row .cities-search-input:focus,.cities-search-row .cities-search-input:hover,
.cities-search-row .header-search input.cities-search-input,.cities-search-row .header-search input.cities-search-input:focus,.cities-search-row .header-search input.cities-search-input:hover {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  outline: none;
}

/* إبقاء نفس المظهر عند hover و focus – لا يرجع للستايل العام */
.cities-search-row .cities-search-input:hover,
.cities-search-row .cities-search-input:focus,
.cities-search-row .header-search input.cities-search-input:hover,
.cities-search-row .header-search input.cities-search-input:focus {
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  padding: 0 20px;
  outline: none;
  box-shadow: none;
}

.cities-search-row .cities-search-input::placeholder {
  color: #000000;
}

.cities-search-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20.5px 20px;
  gap: 4px;
  width: 196px;
  height: 60px;
  background: #ACAE36;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}

.cities-search-btn:hover {
  background: #9a9c2e;
  color: #FFFFFF;
}

.cities-search-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Set – Cards grid */
.cities-cards-set {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  padding: 0;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  min-width: 240px;
}

/* Card outer wrapper (for heart + link) */
.cities-card-outer {
  position: relative;
  width: calc((100% - 32px) / 3);
  min-width: 350px;
  height: 264px;
  flex-grow: 1;
}

/* Ecom / Category – Single card */
.cities-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 40px;
  gap: 30px;
  isolation: isolate;
  width: 100%;
  height: 100%;
  background: #F1F1F1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.cities-card-image {
  position: absolute;
  width: calc(100% + 8px);
  left: -4px;
  top: 0;
  height: 264px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.cities-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.cities-card-title {
  font-family: 'Inter', 'NeoSansArabic', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
}

/* City suggestions dropdown (keep for search) */
.cities-page-wrap .city_suggestions {
  position: absolute;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.cities-page-wrap .city_suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cities-page-wrap .city_suggestions li {
  padding: 12px 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.cities-page-wrap .city_suggestions li:last-child {
  border-bottom: none;
}

.cities-page-wrap .city_suggestions li:hover {
  background: #f5f5f5;
}

/* Pagination */
.cities-pagination {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.cities-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cities-pagination a,
.cities-pagination li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.cities-pagination li.active a {
  background: #ACAE36;
  color: #fff;
}

.cities-pagination a:hover:not(.active) {
  background: #f1f1f1;
}

/* Favorite heart on card (when cities list) */
.cities-card-outer .product_fav1 {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}

.cities-card-outer .product_fav1.active,
.cities-card-outer .product_fav1.active i,
.cities-card-outer .product_fav1.active .fa-heart {
  color: #acae36 !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .cities-page-wrap {
    padding: 40px 60px;
  }
  .cities-card-outer {
    width: calc((100% - 16px) / 2);
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .cities-page-wrap {
    padding: 24px 20px;
    gap: 40px;
  }
  .cities-title {
    font-size: 36px;
    line-height: 44px;
  }
  .cities-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  .cities-search-row {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .cities-search-row .cities-search-input {
    height: 52px;
  }
  .cities-search-btn {
    width: 100%;
    height: 52px;
  }
  .cities-card-outer {
    width: 100%;
    min-width: 240px;
    height: 240px;
  }
  .cities-card-image {
    height: 240px;
  }
}
