.activities {
  text-align: center;
  padding: 50px 20px;
}

.activities h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #4e342e;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  width: 250px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 88px rgba(0, 0, 0, 1);
}

:has(.card:hover) .card:not(:hover) {
  opacity: 0.8;
  scale: 0.8;
}
.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-radius: 10px;
}

.card h2 {
  margin: 15px 0 5px;
  color: #5d4037;
}

.card p {
  font-size: 12px;
  color: #777;
}

.city-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.city-tag {
  background: #efebe9;
  border-radius: 10px;
  padding: 6px 15px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .activities {
    padding: 30px 10px;
  }

  .activities h2 {
    font-size: 22px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .card img {
    height: 200px;
  }

  .card h2 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }
}
@media (max-width: 1024px) {
  .activities h2 {
    font-size: 18px;
  }

  .card img {
    height: 150px;
  }

  .card h2 {
    font-size: 16px;
  }

  .card p {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .activities h2 {
    font-size: 16px;
  }

  .card img {
    height: 120px;
  }

  .card h2 {
    font-size: 14px;
  }

  .card p {
    font-size: 10px;
  }
}

.city-tag {
  text-decoration: none; /* Bach t7iydi l-khatt */
  color: #333; /* Bedliha l-loun li bghiti */
  display: inline-block;
  padding: 5px 10px;
  background-color: #f0f0f0; /* Ila bghiti t-khlihoum ibano b7al chi button sghira */
  border-radius: 5px;
  margin: 2px;
}

.city-tag:hover {
    background-color: #e0e0e0; /* Bach t-beddel loun fach idouz l-la souris */
}
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

.theme-btn { 
  background: none; 
  border: none; 
  cursor: pointer; 
  font-size: 20px; 
  margin-left: 15px; 
  transition: transform 0.3s; 
}
.theme-btn:hover { 
  transform: scale(1.2); 
}
body.dark-theme {
  background-color: #121212 !important;
  color: #f5f5f5 !important;
}
body.dark-theme header,
body.dark-theme nav.header {
  background-color: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
}
body.dark-theme nav.header a {
  color: #f5f5f5 !important;
}
body.dark-theme .search-box {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}
body.dark-theme .guide-box,
body.dark-theme .card,
body.dark-theme .activities {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
}
body.dark-theme .info-section h2,
body.dark-theme .info-section h4,
body.dark-theme .guide-content h3,
body.dark-theme .guide-content ul li a,
body.dark-theme .activities h2,
body.dark-theme .card h2,
body.dark-theme .card p {
  color: #f5f5f5 !important;
}
body.dark-theme .city-tag {
  background-color: #333 !important;
  color: #f5f5f5 !important;
}
.features {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5;
}

.features h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #4e342e;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: white;
  width: 260px;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

.card h3 {
  margin-bottom: 10px;
  color: #6d4c41;
}

.card p {
  color: #555;
}
.card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards;
}

.card:nth-child(2) {
  animation-delay: 0.3s;
}
.card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}