.saved-tours-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

#tour-favourites-loading.hidden,
#tour-favourites-grid.hidden,
#tour-favourites-empty.hidden,
#tour-favourites-error.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .saved-tours-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.saved-tours-count {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.saved-tours-state {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .saved-tours-state {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .saved-tours-state {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.saved-tours-skeleton {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.saved-tours-skeleton__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, hsl(var(--muted) / 0.45) 0%, hsl(var(--muted) / 0.2) 50%, hsl(var(--muted) / 0.45) 100%);
    background-size: 200% 100%;
    animation: saved-tours-shimmer 1.4s ease-in-out infinite;
}

.saved-tours-skeleton__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.saved-tours-skeleton__line {
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, hsl(var(--muted) / 0.45) 0%, hsl(var(--muted) / 0.2) 50%, hsl(var(--muted) / 0.45) 100%);
    background-size: 200% 100%;
    animation: saved-tours-shimmer 1.4s ease-in-out infinite;
}

.saved-tours-skeleton__line--short {
    width: 42%;
}

.saved-tours-skeleton__line--medium {
    width: 72%;
}

@keyframes saved-tours-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.saved-tours-empty,
.saved-tours-error {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.saved-tours-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.12);
    color: #d97706;
}

.saved-tours-empty__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading, inherit);
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.saved-tours-empty__copy,
.saved-tours-error__copy {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.saved-tours-error {
    border-color: #fecaca;
    background: #fff1f2;
}

.saved-tours-error__copy {
    color: #9f1239;
}

.saved-tours-card-actions {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.saved-tours-card-actions__book {
    display: inline-flex;
    height: 2.5rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: hsl(var(--primary));
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.saved-tours-card-actions__book:hover {
    background: hsl(var(--primary) / 0.9);
    color: #fff;
}

.saved-tours-card-actions__remove {
    display: inline-flex;
    height: 2.25rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.saved-tours-card-actions__remove:hover {
    border-color: hsl(var(--primary) / 0.35);
    color: hsl(var(--foreground));
}

.saved-tours-note {
    margin: 2rem 0 0;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.25);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: hsl(var(--muted-foreground));
}

.saved-tours-card-placeholder {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    background: hsl(var(--muted) / 0.35);
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 500;
}
