/* Scoped to itinerary-teaser-cards */
.itinerary-teaser-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
    padding: 0;

    @media (max-width: 1400px) {
        grid-template-columns: repeat(2, auto);
        justify-content: center;
    }

    @media (max-width: 500px) {
        grid-template-columns: 1fr;
    }
}

.itinerary-teaser-cards-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }
}

/* Image wrapper + image */
.itinerary-teaser-cards-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid #ddd;

    @media (max-width: 768px) {
        aspect-ratio: 3 / 2;
    }
}

.itinerary-teaser-cards-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* Header */
.itinerary-teaser-cards-header {
    padding: 1rem 1rem 0;
    border-bottom: 1px solid var(--bs-primary-dark);
    margin-bottom: 1rem;
    text-align: center;

    h3 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--bs-primary-dark);
        font-weight: 800;
        margin-top: 10px;
    }
}

.itinerary-teaser-cards-title {
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

/* Description */
.itinerary-teaser-cards-description {
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Collapsible */
.itinerary-teaser-cards-collapsible {
    padding: 0;
    cursor: pointer;
    border-top: 1px solid #eee;
    margin-top: 0;

    summary {
        font-weight: 600;
        color: var(--bs-primary-dark);
        cursor: pointer;
        margin-bottom: 0.5rem;
        list-style: none;
        padding: 0 1rem;

        &::marker {
            display: none;
        }
    }

    &[open] .itinerary-teaser-cards-description {
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Dot navigation */
.itinerary-teaser-cards-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0.5rem;
    min-height: 20px;
}
.itinerary-teaser-cards-image-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;          /* consistent spacing */
  padding-top: 10px; /* move the whole row down */
}

.itinerary-teaser-cards-dot-wrapper {
  display: flex;     /* keep each wrapper flexible */
  align-items: center;
  justify-content: center;
}

.itinerary-teaser-cards-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.itinerary-teaser-cards-dot.active {
  background: var(--bs-primary-dark);
}


.itinerary-teaser-cards-img {
  transition: opacity 0.3s ease-in-out;
}

.itinerary-teaser-cards-img.swiping {
  opacity: 0.5;
}
