/* Base container styles */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
}

.spots-container {
  padding: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Filter buttons wrapper and indicators */
.spots-filter-wrapper {
  position: relative;
  margin-bottom: 24px;
}

/* Filter buttons */
.spots-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 0 0.5rem 0.5rem;
}

.filter-btn {
  padding: 10px 20px;
  background-color: #ebebeb !important;
  border: 1px solid lightgrey;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 400 !important;
  color: #1c1c1e;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
  transform: none !important;
}

.filter-btn:hover {
  background-color: #e5e5ea;
}

.filter-btn.active,
.filter-btn:active,
.filter-btn:focus {
  background-color: #28a745 !important;
  color: #fff !important;
  border: 1.5px solid #28a745 !important;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* Filter buttons wrapper and indicators */
.spots-filter-wrapper {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden; /* Important for the fog effect */
}

/* Filter buttons */
.spots-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 0 0.5rem 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.spots-filter::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Fog indicators */
.filter-indicator {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-indicator.left {
  left: 0;
  background: linear-gradient(to right, rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0));
}

.filter-indicator.right {
  right: 0;
  background: linear-gradient(to left, rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0));
}

.filter-indicator.visible {
  opacity: 1;
  display: block;
}


/* Grid layout */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Tablet breakpoint: 2 columns for 992px–1199px */
@media (max-width: 1199px) {
  .spots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile breakpoint: 1 column for <= 991px */
@media (max-width: 991px) and (min-width: 767px) {
  .spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 766px) {
  .spots-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Card styles */
.adriasee-card-link {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSpots 0.6s forwards;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInSpots 0.6s forwards;
  pointer-events: auto;
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.3s;
  pointer-events: none;
}

@keyframes fadeInSpots {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adriasee-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.img-wrapper {
  position: relative;
  padding: 10px 10px 0;
  max-height: 180px;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrapper img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 12px !important;
  transition: opacity 0.3s ease;
  opacity: 0;
  aspect-ratio: 16/9;
}

.img-wrapper img.loaded {
  opacity: 1;
}

.img-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 0;
  background-color: #28a745;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  pointer-events: none;
}

.adriasee-card-link:hover .img-overlay {
  opacity: 0.18;
}

/* Card content styles */
.content {
  padding: 15px 25px 20px !important;
}

.title {
  position: relative;
  display: block;
  font-size: 19px !important;
  font-weight: 600 !important;
  margin: 6px 0 6px !important;
  color: #1c1c1e;
  word-break: break-word;
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 0 !important;
}

.title span {
  display: inline-block;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(to right, #28a745 100%, transparent 0);
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: left 100%;
  padding-bottom: 0px;
  transition: background-size 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .adriasee-card-link:hover .title span {
    background-size: 100% 2px;
  }
}

@media (hover: none), (pointer: coarse) {
  .title span {
    background-size: 100% 2px;
  }
}

.description {
  color: #665;
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.6em * 3);
  min-height: unset;
  white-space: normal;
  margin-bottom: 0px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400;
  padding: 0;
}

/* Load more button */
.spots-load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  margin-bottom: 40px;
  transition: opacity 0.5s;
}

.spots-load-more-container.smooth-up {
  opacity: 0;
  pointer-events: none;
}

.spots-load-more-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 400 !important;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out, box-shadow 0.3s;
}

.spots-load-more-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.spots-load-more-btn:active,
.spots-load-more-container button:active,
#spots-load-more-btn:active {
  background: #28a745 !important;
  color: #fff !important;
  /* keep transform and other effects */
}

.spots-load-more-btn.hidden {
  display: none;
}

.spots-load-more-container button,
#spots-load-more-btn {
  color: #fff !important;
  background: #28a745 !important;
  font-weight: 400 !important;
  font-family: 'Poppins', sans-serif !important;
}

#spots-load-more-btn:hover,
.spots-load-more-container button:hover {
  color: #ffffff !important;
  background: #218838 !important;
}

#spots-load-more-btn:focus,
.spots-load-more-container button:focus {
  color: #fff !important;
  background: #28a745 !important;
  outline: none;
}

#spots-load-more-btn:active,
.spots-load-more-container button:active {
  color: #fff !important;
  background: #28a745 !important;
}

#spots-load-more-btn:visited,
.spots-load-more-container button:visited {
  color: #fff !important;
  background: #28a745 !important;
}

#spots-load-more-btn:focus-visible,
.spots-load-more-container button:focus-visible {
  color: #fff !important;
  background: #28a745 !important;
}

#spots-load-more-btn:target,
.spots-load-more-container button:target {
  color: #fff !important;
  background: #28a745 !important;
}

/* Desktop hover effects */
@media (min-width: 769px) {
  .adriasee-card-link {
    will-change: transform, box-shadow;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  }
  .adriasee-card-link:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  .adriasee-card-link:hover .img-overlay {
    opacity: 0.35;
  }
  .adriasee-card-link:hover .title::after {
    width: 100%;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .container {
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
  }
  
  .card{
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  }
  
  .spots-container {
    padding: 1rem 0;
  }
  
  .spots-filter-wrapper {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .spots-filter {
    justify-content: flex-start;
    padding: 8px 0;
    gap: 12px !important; /* Restore gap to 12px */
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
  }
  
  .spots-filter::-webkit-scrollbar {
    display: none;
  }
  
  .filter-indicator {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .filter-indicator.left {
    left: 0;
    background: linear-gradient(to right, rgba(245,245,245,0.95), rgba(245,245,245,0));
  }
  
  .filter-indicator.right {
    right: 0;
    background: linear-gradient(to left, rgba(245,245,245,0.95), rgba(245,245,245,0));
  }
  
  .filter-indicator.visible {
    opacity: 1;
    display: block;
  }
  
  .img-wrapper {
    height: 150px;
    width: 100%;
    aspect-ratio: auto;
  }
  .img-wrapper img {
    width: 100%;
    height: 140px !important;
    border-radius: 12px !important;
  }
  .content {
    padding: 15px 25px 15px !important;
  }
  .title {
    margin: 0 0 5px !important;
    font-size: 16px !important;
  }
  .title::after {
    width: 100%;
    transition: none;
  }
  .description {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.6em * 3);
    font-size: 14px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* Premium gray message style for 'No spots matching your filter' */
.no-spots-found.spots-premium {
    all: revert; /* Sometimes better depending on needs */
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background-color: #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    color: #667;
}

.no-spots-found.spots-premium p{
  margin-bottom: 0 !important;
}




