/* Trip Shortcode Styles */
.yatra-tour-shortcode {
    margin: 30px 0;
    position: relative;
}

.yatra-tour-shortcode.yatra-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.yatra-tour-shortcode.yatra-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--yatra-primary, #3b82f6);
    border-radius: 50%;
    animation: yatra-spin 1s linear infinite;
    z-index: 11;
}

.yatra-tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.yatra-tour-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 600;
}

.yatra-tour-count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Scoped to shortcode/block so listing.css archive grids never override column counts */
.yatra-tour-shortcode .yatra-tour-grid {
    display: grid;
    gap: 30px;
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-1 {
    grid-template-columns: 1fr;
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.yatra-tour-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.yatra-empty-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.yatra-empty-icon-svg {
    width: 64px;
    height: 64px;
}

.yatra-tour-empty h3 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
}

.yatra-tour-empty p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.yatra-tour-empty-page {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.yatra-tour-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.yatra-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.yatra-pagination-link:hover {
    background: #f9fafb;
    border-color: color-mix(in srgb, var(--yatra-primary, #3b82f6) 35%, #d1d5db);
    color: var(--yatra-primary, #3b82f6);
}

.yatra-pagination-current {
    background: var(--yatra-primary, #3b82f6);
    border-color: var(--yatra-primary, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--yatra-primary, #3b82f6) 35%, transparent);
}

.yatra-pagination-current:hover {
    background: var(--yatra-primary-dark, #2563eb);
    border-color: var(--yatra-primary-dark, #2563eb);
    transform: scale(1.05);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--yatra-primary-dark, #2563eb) 40%, transparent);
}

.yatra-pagination-ellipsis {
    color: #9ca3af;
    padding: 0 8px;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-3,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-4,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-5,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yatra-tour-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-2,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-3,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-4,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-5,
    .yatra-tour-shortcode .yatra-tour-grid.yatra-tour-grid-6 {
        grid-template-columns: 1fr;
    }
    
    .yatra-tour-pagination {
        gap: 5px;
    }
    
    .yatra-pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 8px;
    }
}
