/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery .isotope-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

.gallery .isotope-filters li {
  cursor: pointer;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.gallery .isotope-filters li:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.gallery .isotope-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 576px) {
  .gallery .isotope-filters li {
    margin-bottom: 5px;
  }
}

/* .gallery .gallery-item {
  margin-bottom: 30px;
} */

.gallery .gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery .gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery .gallery-card:hover .gallery-overlay {
  opacity: 1;
  visibility: visible;
}

.gallery .gallery-card:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery .gallery-img {
  position: relative;
  overflow: hidden;
}

.gallery .gallery-img img {
  transition: transform 0.6s ease;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery .gallery-img:hover img {
  transform: scale(1.05);
}

.gallery .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.gallery .gallery-info {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.gallery .gallery-info h4 {
  color: var(--contrast-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gallery .gallery-info p {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  font-size: 14px;
  margin-bottom: 15px;
}

.gallery .gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gallery .gallery-link i {
  font-size: 20px;
}

.gallery .gallery-link:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: scale(1.1);
}

.property-switcher {
  flex-wrap: wrap;
}

.switcher-btn {
  padding: 6px 12px;
  /* border: 2px solid #407F68; */
  border-radius: 50px;
  font-weight: 500;
  color: #407F68;
  background-color: #fff;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  line-height: 1;
}

.switcher-btn:hover {
  background-color: #EFE7C5;
  color: #407F68;
  text-decoration: none;
}

.switcher-btn.active {
  background-color: #407F68;
  color: #fff;
}

.switcher-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .switcher-btn {
    padding: 5px 12px;
    font-size: 0.85rem;
  }

  .switcher-img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 992px) {
  .gallery .gallery-info h4 {
    font-size: 16px;
  }

  .gallery .gallery-info p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .gallery .isotope-filters li {
    padding: 6px 14px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .gallery .gallery-overlay {
    padding: 15px;
  }

  .gallery .gallery-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .gallery .gallery-info p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .gallery .gallery-link {
    width: 35px;
    height: 35px;
  }

  .gallery .gallery-link i {
    font-size: 18px;
  }
}