/* CSS Document */
/* Container for the cards */

.destination-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}
.destination-filter__element-two {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    animation: leftToRightsubdep 4000ms 
ease-in-out infinite;
}
 @keyframes leftToRightsubdep {
0% {
    transform: translateX(0);
}
50% {
    transform: translateX(15px);
}
100% {
    transform: translateX(0);
}
}
/* Card sizing and positioning */
.destination-card-one {
  position: relative;
  z-index: 1;
  width: 300px; /* Fixed width for cards */
  margin-bottom: 20px;
	height: 400px;
}

.destination-card-one__thumb {
  overflow: hidden;
  border-radius: 1000px;
  border: 5px solid transparent;
  position: relative;
  transition: all 0.4s ease-in-out;
  width: 100%;
  aspect-ratio: 1; /* Make it square */
	height: 400px
}

.destination-card-one__thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: all 0.4s ease-in-out;
}

.destination-card-one__thumb .destination-card-one__overly {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--gotur-black-rgb, 29, 35, 31), 0.6);
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(-20%);
  z-index: 1;
  transition: opacity 500ms ease, transform 500ms ease;
}

.destination-card-one__content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  height: 106px;
  width: 129px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.destination-card-one__content::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 123px;
  height: 101px;
  transition: all 0.4s ease-in-out;
  z-index: -1;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 126.000000 103.000000"  preserveAspectRatio="xMidYMid meet">  <g transform="translate(0.000000,103.000000) scale(0.100000,-0.100000)"> <path d="M635 1023 c-171 -24 -340 -114 -461 -247 -137 -149 -194 -308 -164 -458 64 -326 410 -412 825 -205 246 122 407 300 422 467 20 219 -113 384 -353 435 -64 14 -199 18 -269 8z"/> </g> </svg>');
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 126.000000 103.000000"  preserveAspectRatio="xMidYMid meet">  <g transform="translate(0.000000,103.000000) scale(0.100000,-0.100000)"> <path d="M635 1023 c-171 -24 -340 -114 -461 -247 -137 -149 -194 -308 -164 -458 64 -326 410 -412 825 -205 246 122 407 300 422 467 20 219 -113 384 -353 435 -64 14 -199 18 -269 8z"/> </g> </svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top center;
  mask-position: top center;
  -webkit-mask-size: auto;
  mask-size: auto;
  background-color: var(--gotur-white, #fff);
}

.destination-card-one__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 106px;
  width: 129px;
  z-index: -1;
  transition: all 0.4s ease-in-out;
  -webkit-mask: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134.000000 109.000000"  preserveAspectRatio="xMidYMid meet">  <g transform="translate(0.000000,109.000000) scale(0.100000,-0.100000)" > <path d="M617 1070 c-283 -60 -535 -288 -602 -545 -51 -196 45 -410 216 -483 180 -77 415 -46 679 89 252 129 410 308 427 483 7 78 -10 172 -42 237 -97 190 -381 282 -678 219z m338 -5 c110 -20 210 -71 273 -140 115 -125 133 -322 45 -473 -141 -241 -579 -462 -871 -439 -218 17 -349 134 -385 343 -38 219 146 506 408 637 157 78 348 104 530 72z"/> </g> </svg>');
  mask: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 134.000000 109.000000"  preserveAspectRatio="xMidYMid meet">  <g transform="translate(0.000000,109.000000) scale(0.100000,-0.100000)" > <path d="M617 1070 c-283 -60 -535 -288 -602 -545 -51 -196 45 -410 216 -483 180 -77 415 -46 679 89 252 129 410 308 427 483 7 78 -10 172 -42 237 -97 190 -381 282 -678 219z m338 -5 c110 -20 210 -71 273 -140 115 -125 133 -322 45 -473 -141 -241 -579 -462 -871 -439 -218 17 -349 134 -385 343 -38 219 146 506 408 637 157 78 348 104 530 72z"/> </g> </svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: top center;
  mask-position: top center;
  -webkit-mask-size: auto;
  mask-size: auto;
  background-color: var(--gotur-white, #fff);
}

.destination-card-one__title {
  transform: rotate(-15deg);
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 70%;
  text-transform: capitalize;
  color: var(--primary-color, #F7921E);
  font-family: var(--gotur-font2, "Just Another Hand", serif);
  position: relative;
}

.destination-card-one__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(to right, currentcolor 0%, currentcolor 100%) 0% 100% / 0% 2px no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 2px; /* Add space for the underline */
}

.destination-card-one__title a:hover {
  background-size: 100% 2px;
}

.destination-card-one:hover .destination-card-one__overly {
  opacity: 1;
  transform: translateY(0);
}

.destination-card-one:hover .destination-card-one__thumb {
  border-color: var(--primary-color, #F7921E);
}

.destination-card-one:hover img {
  transform: scale(1.1);
}

.destination-card-one:hover .destination-card-one__content::before, .destination-card-one:hover .destination-card-one__content::after {
  background-color: var(--primary-color, #F7921E);
}

.destination-card-one:hover .destination-card-one__title {
  color: var(--gotur-white, #fff);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .destination-cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .destination-card-one {
    width: 80%;
    max-width: 300px;
  }
}
